Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Where can I put jar files so they automatically get searched?

0
Posted

Where can I put jar files so they automatically get searched?

0

Use the java.ext.dirs property. On my machine, c:\jdk1.3\jre\lib\ext is the java.ext.dirs directory; i.e. if I put a jar in there, I don’t have to put it in the CLASSPATH. I think this is called the “Extensions directory”. Eric Burke calls this the “optional packages directory” [ Java and XSLT, p. 375]. BTW, when I do this, I have to restart Tomcat to get it to notice the new jars (otherwise, I get NoClassDefFoundError errors). You can set the java.ext.dirs from the command line too; e.g.: java -Djava.ext.dirs=DIRLIST Hello I think this was added in Java 1.5.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123