Java Class Path
Java class path can be thought as class search paths.Classes are searched from left to right.
Example of classpath: -classpath /com/foo
Classpaths can be declared in two places:
The classpath declared as an environment variable is a default option.The classpath declared as an systems environment variable is used by default whenever java or javac is invoked.
The classpath declared as an command line option is temporary and exists only for the length of invocation.
Example of classpath: -classpath /com/foo
Classpaths can be declared in two places:
- as an environment variable in the operating system
- as a command line option
The classpath declared as an environment variable is a default option.The classpath declared as an systems environment variable is used by default whenever java or javac is invoked.
The classpath declared as an command line option is temporary and exists only for the length of invocation.
Comments
Post a Comment