next up previous contents
Next: Security Up: Java Previous: Downloading and Installation   Contents

CLASSPATH and other configuration tweaks

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:

  1. Traverse into the j2sdk1.4.0_1/jre/lib directory.
  2. Once here, make a directory called "JKWORK" or something similar.
  3. Copy jk.jar over to your newly created directory and unjar it using `jar xvf jk.jar`
  4. Move over the ``ann" and ``hoj" directories to this directory.
  5. Move jk.jar to jk-backup.jar (just in case)
  6. Rejar up the new information using `jar cvf0 rt.jar ann com hoj java javax META-INF org sun sunw`
  7. Keep in mind you are creating a jar file with no compression (the 0 option).
  8. The resulting .jar should be close to the same size as your backup .jar file.
  9. Copy this jk.jar one directory below (should reside in the j2sdk1.4.0/jre/lib directory)


next up previous contents
Next: Security Up: Java Previous: Downloading and Installation   Contents
2003-08-28