Finding class files / classpath issues

Suppose I have a JNI project that's run from:

C:\foo\apiDemos\C++

and a class file that I'd like to load in:

C:\foo\build\com\bar\oneloan\util\myClass.class

How do I load a reference to myClass? Java can't seem to find this class file. When I create the JVM, I use:

#define PATH_SEPARATOR';';

#define USER_CLASSPATH".;../../build/com/bar/oneloan/util"

JavaVMInitArgs vmArgs;

JavaVMOption options[1];

options[0].optionString ="-DJava.class.path=" USER_CLASSPATH;

It looks right I go up two directories and then down to util.Am I not setting the class path correctly?

[716 byte] By [caffeinea] at [2007-11-26 13:37:18]
# 1

If your myClass class (by convention all Java classes should start with an uppercase letter) belongs to the com.ar.oneloan.util package then your class path entry should point to the root of the package (not the leaf).

It should be:#define USER_CLASSPATH ".;../../build"

Regards

jfbrierea at 2007-7-7 22:24:00 > top of Java-index,Java HotSpot Virtual Machine,Specifications...