aspose file tools*
The moose likes Java in General and the fly likes Exception in thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Exception in thread "main" java.lang.NoClassDefFoundError " Watch "Exception in thread "main" java.lang.NoClassDefFoundError " New topic
Author

Exception in thread "main" java.lang.NoClassDefFoundError

Kowshik Nandagudi
Ranch Hand

Joined: Dec 09, 2010
Posts: 57
Hi I am trying to set up java beanshell environment and after following the steps in JavaBeanShell QuickStart i am getting

C:\Program Files\Java\jre6\lib\ext>java bsh.console
Exception in thread "main" java.lang.NoClassDefFoundError: bsh/console
Caused by: java.lang.ClassNotFoundException: bsh.console
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: bsh.console. Program will exit.


How do i fix this any idea ?

Many thanks in advance
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
Java class names are case-sensitive.


Ping & DNS - updated with new look and Ping home screen widget
Kowshik Nandagudi
Ranch Hand

Joined: Dec 09, 2010
Posts: 57
oh school boy mistake!!!

Thank you Ulf Dittmer
 
 
subject: Exception in thread "main" java.lang.NoClassDefFoundError
 
Similar Threads
ClassNotFoundException error
Getting Exception while running a class file.
Starting Websphere 6.0 in Eclipse3.3
3rd party library problem
Exception in thread "main" java.lang.NoClassDefFoundError