I'm new to UNIX. Successfully installed and ran Java programs on Solaris. But I use Jakarta HttpClient for my program which comes with additional jar files. I set my .profile as PATH=.:/usr/local/java/j2sdk1.4.2_01/bin:$PATH export PATH PS1 How and where do I add the additional jars? Thanks in advance, Divya
You will need to add the jarfile paths to the CLASSPATH environment variable, delimited by the ':' character, as in the PATH environment variable. For jar files on the CLASSPATH you will need to include the name of the jar file at the end of the path, for example if you have two jars in /usr/local/lib called aa.jar and bb.jar respectively that you want your JVM to have access to, your CLASSPATH will need to be set somthing like the following(done here in the style of your existing .profile) : CLASSPATH=/usr/local/lib/aa.jar:/usr/local/lib/bb.jar export CLASSPATH
Many complex java systems such as Tomcat have an infrastructure of some sort to add multiple JARs to the classpath. They'll either have specially-designated directories where startup scans for jars to add or there will be a script (frequently named bin/setenv) to run before starting the process.
Education won't help those who are proudly and willfully ignorant. They'll literally rather die before changing.
They worship nothing. They say it's because nothing lasts forever. Like this tiny ad:
Gift giving made easy with the permaculture playing cards