Classpath vs java.class.path

Jeff Sturm jsturm@one-point.com
Wed Jul 16 20:05:00 GMT 2003


On Wed, 16 Jul 2003, Steve Pribyl wrote:
>      public static void  main(String[] args) {
>          try {
>
> System.setProperty("java.class.path","/var/netfuel/lib/mysql-connector-java-3.0.8-stable-bin.jar");

When you reach the main() method of your program, VMClassLoader has
already been initialized and it is probably too late to redefine
java.class.path.

You can also set properties on the gcj command line:

gcj -Djava.class.path=...

Jeff



More information about the Java mailing list