It appears that the JNI routine "FindClass()" is incapable of finding those classes that inherit from another. Is this true? If not, why would "FindClass()" return success on some classes and not others within the same directory?

Brett Adams

Make sure that you are using the fully qualified name for the class. For example, if you have a class named SomeClass in the package org.somepackage then make sure you are looking for org.somepackage.SomeClass.
Also, if the class is part of a package then make sure that the path of SomeClass is org/somepackage/SomeClass.class and check that the "org" directory resides in the "-Djava.class.path=" flag that you use when invoking the VM. Problems like this are almost always some combination of path problems.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact