Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JNI: How to specify classpath?

843811Dec 14 2004 — edited Dec 15 2004
Currently I have a working C app that calls a function in a java class whose .class file is in the same directory as the C executable. I would like to place the class file in another directory and still be able to run the C code. How is this done? I have tried setting the classpath environment variable and have also tried specifying the -Djava.class.path option in the JavaVMOption array. Neither method has been successful. Has anyone gotten this to work on a linux machine?

Thanks, Andreas
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 12 2005
Added on Dec 14 2004
1 comment
853 views