I eventually found a "solution" to this problem.
I never could get it to work under linux jdk1.1.7,
however, when I upgraded java to 1.1.8 ( and
to glibc2.1.2 ) the NoClassDefFoundError
problem went away.
Thanks to all who had suggestions.
regards
jp
Jean-Pierre Fournier wrote:
>
> Hi,
>
> linux 2.0.38
> java 1.1.7B
>
> I am trying to get a handle to a remote
> object from C. In my C program, I create
> a VM, find the class I want, find the method
> and then call CallStaticIntMethod(). It
> appears that Naming.lookup() is the cause
> of my NoClassDefFoundError, since if I
> comment this line out in the java code
> things seem to work.
>
> Digging around on the JDC the only similar
> problem I found involved applets in browsers.
> In this case the conclusion was that the
> browser didn't support rmi.
>
> Does anyone know of any limitations on VMs
> created via JNI_CreateJavaVM()?
>
> I will append some code below, in case I am
> doing something obviously wrong.
>
> thanks,
>
> jp
>
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]