Java/J2SE
Wolfgang Hebold

Home

Content

Material

Downloads

Contact

Development

Environment Variables

CLASSPATH
This variable contains a list of paths tools like javac, java etc search for class- and - by default - sourcefiles. The search path for sourcefiles can be changed by the sourcepath variable.

Note: CLASSPATH defines root paths for packages not the exact path of the classfiles.

SOURCEPATH
This variable contains a list of paths tools like javac, java etc search for sourcefiles. If the sourcefile contains a class without package specification the sourcepath is the location of the sourcefile given as argument. If the specified class is part of a package, the subdirectory of sourcepath reflects the package structure. That is, there must be directories named like the package.

Note: SOURCEPATH defines root paths for packages.not the exact path of the sourcefiles.

Important packages

  • java.applet
  • java.awt
  • java.awt.datatransfer
  • java.awt.event
  • java.awt.image
  • java.awt.peer
  • java.beans
  • java.io
  • java.lang
  • java.lang.reflect
  • java.math
  • java.net
  • java.rmi
  • java.rmi.doc
  • java.rmi.registry
  • java.rmi.server
  • java.security
  • java.security.acl
  • java.security.interfaces
  • java.sql
  • java.text
  • java.util
  • java.util.zip