Latest News

 










Packages and the CLASSPATH

Previous slide Next slide Back to first slide View graphic version


Packages and the CLASSPATH


 
My other sites

Latest News

 










Packages and the CLASSPATH

  • CLASSPATH is a environmental variable that holds directory paths to java classes.

  • To execute a class file that belongs to a package,

    • a. Put the class file in an appropriate directory,
      • i.e. if package cm.cmd.tool; then ../cm/cmd/tool/
    • b. make sure that CLASSPATH knows the path to the classes in need,
      • i.e. if package cm.cmd.tool; then ../cm/cmd/tool/

    CLASSPATH

Previous slide Next slide Back to first slide View graphic version