Apr 222012

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.

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>
© Incase of any copyright infringements please check copyrights page for faster resolutions.

Leave a Reply

Show Buttons
Hide Buttons