Re: How to set classpath in Linux??
Saturday, December 11, 2004 09:26 AM
If you are just talking about Java .class files, put them in the WEB-INF of your web app WAR file (under the package name subdirs), or put them in a Jar file and then put the Jar file in the WEB-INF/lib.
But are you perhaps talking about compiled native code, either in ".so" dynamic library files for Unix, or ".dll"'s for Windows?
If so, then you have to add them to the process's LD_LIBRARY_PATH (for Unix) or PATH (for Windows), where the "process" is the JVM of the web server. Either add to the LD_LIBRARY_PATH (or PATH) in the environment before running the process, or else in the startup script that runs the process.