-
Bug
-
Resolution: Fixed
-
P3
-
7
-
b130
-
generic
-
generic
-
Verified
The launcher tends to print the entire exception trace when it cannot find
the necessary class etc. Though it is somewhat useful for debugging it is
much too verbose, for the average user.
% java MissingClass
Exception in thread "main" java.lang.NoClassDefFoundError: MissingClass
Caused by: java.lang.ClassNotFoundException: MissingClass
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: MissingClass. Program will exit.
the necessary class etc. Though it is somewhat useful for debugging it is
much too verbose, for the average user.
% java MissingClass
Exception in thread "main" java.lang.NoClassDefFoundError: MissingClass
Caused by: java.lang.ClassNotFoundException: MissingClass
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: MissingClass. Program will exit.
- relates to
-
JDK-6765774 new launcher behavior in jdk 7 b38
- Resolved