Classpath vs java.class.path

Steve Pribyl steve@netfuel.com
Wed Jul 16 20:39:00 GMT 2003


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4269 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://gcc.gnu.org/pipermail/java/attachments/20030716/c315a776/attachment.bin>


More information about the Java mailing list