Next: Security
Up: Java
Previous: Downloading and Installation
  Contents
Do not add a global $CLASSPATH variable to any computers if you need to include a different classpath, say, for example, /export/home/public/Java.
The problem here is that when including a different classpath, java won't initialize it's internal classpath structure.
Lets assume we have two added class library folders that we want to add.
One is named ``ann" and the other ``hoj" (which is the case currently in the CIS labs) lets take the following steps to get this into the classpath:
- Traverse into the j2sdk1.4.0_1/jre/lib directory.
- Once here, make a directory called "JKWORK" or something similar.
- Copy jk.jar over to your newly created directory and unjar it using `jar xvf jk.jar`
- Move over the ``ann" and ``hoj" directories to this directory.
- Move jk.jar to jk-backup.jar (just in case)
- Rejar up the new information using `jar cvf0 rt.jar ann com hoj java javax META-INF org sun sunw`
- Keep in mind you are creating a jar file with no compression (the 0 option).
- The resulting .jar should be close to the same size as your backup .jar file.
- Copy this jk.jar one directory below (should reside in the j2sdk1.4.0/jre/lib directory)
Next: Security
Up: Java
Previous: Downloading and Installation
  Contents
2003-08-28