Re: segmentation violation when invoking JVM

1999-12-21 Thread Jean-Pierre Fournier
> > 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

segmentation violation when invoking JVM

1999-12-21 Thread benito . meeuwis
Hi, I'm using the code below to invoke the JVM. The code compiles and links Ok. When I try to run the code, the CallStaticVoidMethod(cls,mid) returns an error (segmentation violation). I'm using JDK1.1.7 version 3 and Linux 6.1 (SUSE). Does anybody know what causes this error ??? Thanks !! E-Ma