• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

NoClassDefFoundError

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ***
set CLASSPATH=.;D:\VisualCafeTrial\BIN\COMPONENTS\SYMBEANS.JAR;D:\VisualCafeTrial\BIN\COMPONENTS\DATABIND.JAR;D:\VisualCafeTrial\JAVA\LIB\CLASSES.ZIP;D:\VisualCafeTrial\JAVA\LIB;D:\Vis ualCafeTrial\BIN\COMPONENTS\DBAW_AWT.JAR;D:\VisualCafeTrial\BIN\COMPONENTS\SFC.JAR;D:\VisualCafeTrial\JAVA\LIB\DBAW.ZIP;D:\VisualCafeTrial\JFC\Swingall.jar;%CLASSPATH%
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.
Sabbir
 
Trailboss
Posts: 23778
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
With javac? It seems to me that you would only want to pass .java files to javac, not .class files.
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the class with the main-method has been compiled to a .class file named StartMain.class, type:
java StartMain
to run the app.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic