My JNI codes get NoSuchMethodException when release to user
1 posts in topic
Flat View  Flat View

Posted By:   lang_qiu
Posted On:   Monday, November 24, 2003 03:42 AM

My JNI codes run well in my development environment(JBuilder7),

but when they release to user, they get java.lang.NoSuchMethodException.

The error generates when the C++ code try to call the java side method.

The release package was built by my colleague. And I found that they obfuscate my codes after the normal build work.

So I wonder is this the reason I got NoSuchMethodException ?

Thanks in advance!

Re: My JNI codes get NoSuchMethodException when release to user

Posted By:   Eric_Maginniss  
Posted On:   Tuesday, November 25, 2003 10:28 AM

If they use an obfuscator, it may not recognize that your method is an external entry point. Generally, obfuscators choose the most likely entry points (public static void main() and servlets) and makes sure that their names do not get changed. Everything else is fair game. Likely, you will just need to set a config parameter with the obfuscator to tell it that your method is an API or entry point.
About | Sitemap | Contact