818 - Cannot run app but can run in debug
When I try to run any class with a main method I get this:
java.lang.ClassNotFoundException: com.db.oms.temp.Test
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at com.intellij.rt.execution.application.AppMain$2.run(AppMain.java:81)
But if I run the class under the debugger it works OK
Please sign in to leave a comment.
It seems that this is restricted to JDK 1.3.1 as with JDK 1.4.1 and 1.4.2 it runs fine. I have tried various builds of 1.3.1 e.g. 03, 06 and 07 and none of them run.
I have also tried renaming JNIWrap.dll which I read about in an earlier post but that makes no difference.
jdk 1.3.0_02 has the same problem.
Sincerely
Jens Peter Grosen