Small LS logo

Managing third party jar files

If you use Java a lot or are a Java developer, you may want to try the following approach to managing jar files.

DON'T put 3rd party jar files in /usr/java/sdk/jre/lib/ext where they're sure to be lost each time you upgrade Java. Instead, I put privately developed jar files as well as third party jar files in /home/java/jarlib and define CLASSPATH in /etc/profile.d/ to include them all.