I'd like to be able to programically find a class without having to set the
classpath variable. For example, I know i'm going to have a /lib directory with
an arbitary number of jar files in it. I'd like to NOT set each jar file with
the -classpath switch when I run my application. Instead I want the application
to look in the lib directory and get what's there.
My first thought was to try to change the value of
System.getProperty("java.class.path"). Although I can change the value, the
classes are not found. Anyone have a small example of how to do this?