On 4/24/07, Greg Guerin <email@hidden> wrote:
> Nima Tiran wrote:
>
> >I have a part of code ported from CodeWarrior to Xcode 2.4.1. In the
> >code I setup the JVM and other things that works fine, but when I
> >debug the app in the same target the line below causes exception.I
> >don't know what causes this in debugging mode.
> >
> >f_cls = f_env->FindClass(inMyClassName);
>
> What exception does it cause?
It says:
Exception in thread "main" java.lang.NoClassDefFoundError: my path to
the javaClass.jar
> What is the contents of inMyClassName when the exception occurs?
the same above path
A path to jar? It should look like "com/mypackage/myclass" (e.g.
"java/util/ArrayList") with no concept of a jar in it. If it looks
like that and you still have an issue then likely the JVM doesn't know
about that class and/or the jar that contains that class.
So is your class packaged in a jar?
Is that jar specified on the class path of JVM? Using relative or absolute path?
Does the jar exist at the path specified?
etc.
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden