This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes NoClassDefFoundError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "NoClassDefFoundError" Watch "NoClassDefFoundError" New topic


Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I am getting the following error whenever I run any ".class" file using "javac" -
Exception in the thread "main" java.lang.NoClassDefFoundError : --------
I understand that this is with the class path. I am running windows98 and jdk 1.2.2. My classpath setting is -

rem *** Visual Cafe DE Trialsettings ***
rem *** End Visual Cafe DE Trialsettings ***
PATH D:\orawin95\bin;C:\JDK1.2.2\BIN;c:\jsdk2.0\lib\jsdk.jarD:\VisualCafeTrial\BIN;D:\VisualCafeTrial\JAVA\BIN

Any help will be highly appreciated.
paul wheaton

Joined: Dec 14, 1998
Posts: 20494

With javac? It seems to me that you would only want to pass .java files to javac, not .class files.

permaculture Wood Burning Stoves 2.0 - 4-DVD set
Jesper Ottosson
Ranch Hand

Joined: Mar 21, 2000
Posts: 51
If the class with the main-method has been compiled to a .class file named StartMain.class, type:
java StartMain
to run the app.
I agree. Here's the link:
subject: NoClassDefFoundError
Similar Threads
Intermediate/Advanced Java Users. Pl help with static profilers (PMD)
Remote Debugging the Oracle Weblogic 10.3.3
RMI connection to registry refused
Problem in setting up Classpath variable in Win ME
Starting JBoss