using the jre/lib/ext directory and your own directory
I usually do not use the $JAVA_HOME/jre/lib/ext directory for 3rd party jars, preferring instead to specify jars via a carefully controlled CLASSPATH. But ...
I'm using a 3rd party API, writing my own classes on top of it. I place the 3rd party jar in
the $JAVA_HOME/jre/lib/ext directory, and keep my classes in another directory. I set my classpath
to include the top level directory where my classes can be found. Everything compiles fiine.
When I go to run, I keep my CLASSPATH setting, but I get ClassNotFoundExceptions from the JVM when it tries to load my classes. It find the 3rd party classes just fine, but cannot find mine.
When I jar up my classes and put that jar in the $JAVA_HOME/jre/lib/ext directory and unset my classpath, everything compiles AND runs.
When I move the 3rd Party jar to another directory and set my classpath to include the 3rd party directory and my directory, everything comiples and runs.
So, the question is, if you insist on putting your jars into $JAVA_HOME/jre/lib/ext, must you then put all code there? Is this a security issue?

