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


Thats that makes sence.

Now here is my real problem.

How do I set java.class.path when starting the vm using JvCreateJavaVM.
Or better yet what is the proper way to set the Classpath in CNI when using JvCreateJavaVM to start the VM.


Thanks
Steve

Jeff Sturm wrote:
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



-- Steve Pribyl Steve AT NetFuel dot com Computer Infrastructure Practitioner

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


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