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 wrot
>
> jclass cls = env->FindClass("Main");
> jmethodID mid = env->GetStaticMethodID(cls, "main", "()V");
>
I'm no expert, but your problem appears to be right
above. You are trying to locate a main method that
takes no args, but your main method in your java program
takes an arr
Hi,
Thanks for the reply.
Nathan Meyers wrote:
>
> Is the classfile for the remote stub in your
> program's classpath?
Yep. I have another class to just check the
rmi side of things. When I run this class all
works as expected, and I can get the remote
object and see the remote methods exec
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 li
wrote:
>
> Jean-Pierre Fournier wrote:
>
> > Hi Folks,
> >
> > I'm hoping that some RMI guru can help
> > me get started. I'm trying to create a
> > simple RMI client/server on a single computer,
> > but something is choking in the rebind() call.
Hi Folks,
I'm hoping that some RMI guru can help
me get started. I'm trying to create a
simple RMI client/server on a single computer,
but something is choking in the rebind() call.
linux 2.0.38
java "1.1.7B"
in window 1:
[jape@jaguar jape]$ echo $CLASSPATH
[jape@jaguar jape]$ rmiregistr