Exception in thread “Main Thread” java.lang.NoClassDefFoundError: –XnoOpt | weblogic


I have seen many time while starting or setting up weblogic instances people see below error, so thought of posting it .

This error is a common mistake done while using the “-” symbol incorrectly.

Here in below error also you can see the noclassdeffound error is due to the invalid “–” character infront of  XnoOpt

“-” is correct and “–” is wrong. change it and it will work. Similarly for other arguments also you might see the hipen issue so its better to retype the argument again in a notepad and copy paste to avoid the error.

Exception in thread "Main Thread" java.lang.NoClassDefFoundError: –XnoOpt
Caused by: java.lang.ClassNotFoundException: –XnoOpt
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
Could not find the main class: –XnoOpt. Program will exit.
<Dec 12, 2011 9:54:43 AM> <FINEST> <NodeManager> <Waiting for the process to die: 1890>
<Dec 12, 2011 9:54:43 AM> <INFO> <NodeManager> <Server failed during startup so will not be restarted>
<Dec 12, 2011 9:54:43 AM> <FINEST> <NodeManager> <runMonitor returned, setting finished=true and notifying waiters>

In case of any ©Copyright or missing credits issue please check CopyRights page for faster resolutions.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.