Classpath…

Index


Kawa decides the classpath for compilation, execution and debugging by combining the various classpaths. These include the system classpath, project classpath and package classpath. All classpaths are set as an environment variable before starting the process.

Project classpath = Output Directory + System classpath + Project Classpath + Package Classpath

Non-Project classpath = System classpath + Package Classpath

Where,

System Classpath -

Kawa when it first starts up reads the classpath environment variable to load all the classpath defined in the system. Kawa automatically adds the current directory path "." and the path to JDK classes.zip if not already found in the system classpath. It also adds the path to Kawa classes.zip file, which includes all the Java classes used by Kawa for various functions. This system path is decided automatically by Kawa and there is no option to change the system path from within Kawa.

Project Classpath -

Project classpath is the classpath defined by the user as part of the project. This is done by selecting Project/Classpath menu option or selecting classpath… option from the right button menu of the project item in the project tree. This classpath is applied to compilation, execution, javadoc and debugging of project files.

 

Package Classpath -

The package tree maintains package classpath when classes or added to package tree either as class files or as jar or zip files. This classpath can be edited by selecting Package/Classpath… menu option or the Classpath... option from the right button menu of the root packages item in the package tree.