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:

  1.    as an environment variable in the operating system
  2.    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

Popular posts from this blog

defining functions clojure

Integrating Struts2 with Spring Security using Custom Login Form