Community
Participate
Working Groups
JAVAアプレット物理教材 http://www.nep.chubu.ac.jp/~nepjava/applet.htm To whom it may concern, With the following combination + Eclipse Debug Mode + Custom Dll (which is set through Path of Windows Environment Variable) + JNI jar file (which is set through Debug -> ClassPath) + J2RE1.4.1_02 in the middle of execusion we receive the following message. - Thread [main] (Suspended (exception ClassNotFoundException)) URLClassLoader$1.run() line: 198 [local variables unavailable] AccessController.doPrivileged(PrivilegedExceptionAction, AccessControlContext) line: not avialable [native method] Launcher$AppClassLoader(UrlClassLoader).findClass(String) line: 186 Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: 299 Launcher$AppClassLoader.loadClass(String, boolean) line: 265 Launcher$AppClassLoader(ClassLoader).loadClass(String) line: 255 Launcher$AppClassLoader(ClassLoader).loadClassInternal(String) line: 315 RecognizerFactory.construct(ObjectInputStream) line: not avialable [native method] Tester.main(String[]) line:29 When I run the same program with Eclipse's Run mode with the same configuration the program executes without a problem. I have also checked that it works with the following combination. The following is received when trying to load a DLL while my app is running: + CommandPrompt (java) + Custom Dll (which is set through Path of Windows Environment Variable) + JNI jar file (which is set through ClassPath of Windows Environment Variable) + J2RE1.4.1_02 Could it be a Eclipse's Debug Mode bug?
It's nobody's bug ... :( We ask the VM to stop for uncaught exception, but in some cases the VM stop for a caught exception too, thinking it's a uncaught exception. The specs says it's OK for the VM to do that, but we have no way to know if the VM is right or not. You can disable 'suspend execution on uncaught exception' in window>preferences>java>debug. We have a feature request to try to improve the debugger in this case (bug 52063). More details in bug 47023. *** This bug has been marked as a duplicate of 47023 ***