Add To Classpath
Kojo allows you to experiment with any code that is written for the JVM (and is available within a jar file). To make such code available to Kojo, you need to do one of the following:
- Determine your Kojo install dir (this is the location where you installed Kojo).
- Locate a directory called kojo under the install dir.
- Create a dir called libk under the kojo dir (if it does not already exist), and copy the external jar file in there.
- Start Kojo. The external jar will now be on Kojo's classpath. As it starts up, Kojo will print a message in the Output window telling you that the jar is available for use.
OR
- Determine your Userdir. If you run Kojo and click on the Help -> About menuitem, you will see your Userdir right at the bottom of the About dialog.
- Create a dir called libk under your Userdir (if it does not already exist), and copy the external jar file in there.
- Restart Kojo. The external jar will now be on Kojo's classpath. As it starts up, Kojo will print a message in the Output window telling you that the jar is available for use.
Now you can start playing with the new code…
PS. Kojo also honors the CLASSPATH and KOJO_CLASSPATH environment variables.