This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Classpath vs java.class.path
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Steve Pribyl <steve at netfuel dot com>
- Cc: tromey at redhat dot com, gcj mail list <java at gcc dot gnu dot org>
- Date: Wed, 16 Jul 2003 16:05:01 -0400 (EDT)
- Subject: 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