TABLE OF CONTENTS
java.cygclass
[ Top ] [ Cygclasses ] [ Cygclasses ]
SYNOPSIS
inherit java
DESCRIPTION
GNU Classpath provides an open-source implementation of a Java runtime which is mostly compatibly with JDK 1.5. Driven by a compatible Java Virtual Machine, its runtime and tools together with the OpenJDK and Eclipse compiler tools provide a Java environment which can build and run a wide variety of Java programs.
This cygclass provides definitions and functions for building packages which use the GNU Classpath Java environment.
INHERITED BY
REQUIRES
gij/jamvm, ecj/jdk6-langtools/classpath-tools, fastjar, gcc4-java.
JAR
[ Top ] [ java.cygclass ] [ Definitions ]
DESCRIPTION
Absolute path to a 'jar' de/compression tool, provided by fastjar or gjar.
JAVA
[ Top ] [ java.cygclass ] [ Definitions ]
DESCRIPTION
Absolute path to a Java interpreter, provided by jamvm or gij-4.
JAVAC
[ Top ] [ java.cygclass ] [ Definitions ]
DESCRIPTION
Absolute path to a Java compiler, provided by javac or ecj.
JAVADOC
[ Top ] [ java.cygclass ] [ Definitions ]
DESCRIPTION
Absolute path to a Java API documentation generator, provided by javadoc or gjdoc.
JAVAH
[ Top ] [ java.cygclass ] [ Definitions ]
DESCRIPTION
Absolute path to a JNI header generator, provided by javah or gjavah.
JAVA_HOME
[ Top ] [ java.cygclass ] [ Definitions ]
DESCRIPTION
Prefix of the Java installation.
JAVA_DIR
[ Top ] [ java.cygclass ] [ Definitions ]
DESCRIPTION
Installation path for Java .jar files.
JAVADOC_DIR
[ Top ] [ java.cygclass ] [ Definitions ]
DESCRIPTION
Installation path for Javadoc API documentation.
JAVA_CLASSPATH
[ Top ] [ java.cygclass ] [ Variables ]
DESCRIPTION
A colon-separated list of directories and .jar files to pass to Java's CLASSPATH environment variable. Any .jar files which are listed by basename only are assumed to be installed in JAVA_DIR.
NOTE
The user CLASSPATH variable is ignored so as to prevent interference from a native Windows installation of Java.
cygjar
[ Top ] [ java.cygclass ] [ Compile Functions ]
SYNOPSIS
cygjar OPTIONS JAR_FILE [MANIFEST_FILE] [-C DIRECTORY] [FILES] ...
DESCRIPTION
Runs the JAR command with the provided options, catching any errors if they occur. Please see the JAR --help text for a complete list of options.
cygjava
[ Top ] [ java.cygclass ] [ General Functions ]
SYNOPSIS
cygjava [-jar JAR_FILE] [-classpath CLASSPATH] [OPTIONS] CLASS [ARGUMENTS]
DESCRIPTION
Runs the JAVA command with the provided options, catching any errors if they occur. Please see the JAVA -help text for a complete list of options.
cygjavac
[ Top ] [ java.cygclass ] [ Compile Functions ]
SYNOPSIS
cygjavac [-classpath CLASSPATH] [OPTIONS] SOURCE_FILES|DIRECTORIES
DESCRIPTION
Runs the JAVAC command with the provided options, catching any errors if they occur. Please see the JAVAC -help text for a complete list of options.
cygjavadoc
[ Top ] [ java.cygclass ] [ Compile Functions ]
SYNOPSIS
cygjavadoc [OPTIONS] [-d OUTPUT_PATH] PACKAGES
DESCRIPTION
Runs the JAVADOC command with the provided options, catching any errors if they occur. Please see the JAVADOC -help text for a complete list of options.
cygjavah
[ Top ] [ java.cygclass ] [ Compile Functions ]
SYNOPSIS
cygjavah [-classpath CLASSPATH] [-d OUTPUT_PATH] [-jni] CLASSES
DESCRIPTION
Runs the JAVAH command with the provided options, catching any errors if they occur. Please see the JAVAH -help text for a complete list of options.
cygjunit
[ Top ] [ java.cygclass ] [ Testsuite Functions ]
SYNOPSIS
cygjunit [-classpath CLASSPATH] CLASSES
DESCRIPTION
Runs the JUnit tests defined in the given class(es).
dojar
[ Top ] [ java.cygclass ] [ Install Functions ]
SYNOPSIS
dojar JAR_FILES
DESCRIPTION
Installs the given .jar files into JAVA_DIR under $D. If the name of the .jar includes a version number, an unversioned symlink is created alongside the .jar file.
newjar
[ Top ] [ java.cygclass ] [ Install Functions ]
SYNOPSIS
newjar JAR_FILE NEW_JAR_FILE_NAME
DESCRIPTION
Installs the given .jar file into JAVA_DIR under $D, renaming it per the second argument. If the new name of the .jar includes a version number, an unversioned symlink is created alongside the .jar file.
dojavadoc
[ Top ] [ java.cygclass ] [ Install Functions ]
SYNOPSIS
dojavadoc DIRECTORY
DESCRIPTION
Installs the Javadoc documentation in the given directory into a subdirectory of JAVADOC_DIR based on the name of the package.
newjavadoc
[ Top ] [ java.cygclass ] [ Install Functions ]
SYNOPSIS
newjavadoc DIRECTORY DESTINATION_SUBDIR
DESCRIPTION
Installs the Javadoc documentation in the given directory into a subdirectory of JAVADOC_DIR based on DESTINATION_SUBDIR. This is useful if a package builds more than one set of Javadocs.
java_wrapper
[ Top ] [ java.cygclass ] [ Install Functions ]
SYNOPSIS
java_wrapper [JAVA_OPTIONS] WRAPPER_NAME JAR_FILE [MAIN_CLASS]
DESCRIPTION
Creates a wrapper script for the given .jar file. If the .jar file is installed into JAVA_DIR, its basename can be used instead of a path. If the jar file manifest defines a Main-Class, then the third argument (the class providing the main() function) can be omitted.
Options to be passed to the JAVA runtime (rather than the Java program) can be added before the wrapper name. These arguments must begin with a hyphen.