Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

FindClass() fails on non-system classes

cowwoc-JavaNetJun 28 2004 — edited Jun 28 2004
Hi,

I'm trying to env->FindClass() on a user-class I placed inside a JAR file. This JAR file is in the classpath. My code successfully loads other (system) classes, but when it comes to loading my own classes it fails. According to http://java.sun.com/j2se/1.5.0/docs/guide/jni/spec/functions.html#wp16027 system and non-system classes are treated differently by FindClass().

I don't understand, how is one supposed to get FindClass() to load a non-system class using the JAR classloader?

Thanks,
Gili
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 26 2004
Added on Jun 28 2004
6 comments
367 views