Beruflich Dokumente
Kultur Dokumente
1 of 4
http://docs.oracle.com/javase/8/docs/technotes/tools/findingclasses.html#...
1/24/2015 5:50 PM
2 of 4
http://docs.oracle.com/javase/8/docs/technotes/tools/findingclasses.html#...
1/24/2015 5:50 PM
3 of 4
http://docs.oracle.com/javase/8/docs/technotes/tools/findingclasses.html#...
package).
The value of the CLASSPATH environment variable, which overrides the default value.
The value of the -cp or -classpath command line option, which overrides both the default value and the
CLASSPATH value.
The JAR archive specified by the -jar option, which overrides all other values. If this option is used, all user classes
must come from the specified archive.
1/24/2015 5:50 PM
4 of 4
http://docs.oracle.com/javase/8/docs/technotes/tools/findingclasses.html#...
these options does not modify the set of class files used to run the javac or javadoc tools themselves.
If a referenced class is defined in both a class file and source file, javadoc always uses the source file (javadoc never
compiles source files). In the same situation javac uses class files, but automatically recompiles any class files it
determines to be out of date. The rules for automatic recompilation are documented in the javac document for Windows
or Unix.
By default, javac and javadoc search the user class path for both class files and source code files. If the -sourcepath
option is specified, javac and javadoc search for source files only on the specified source file path, while still searching
the user class path for class files.
Copyright 1993, 2014, Oracle and/or its affiliates. All rights reserved.
Contact Us
1/24/2015 5:50 PM