This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Classpath vs java.class.path


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]