• 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

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Initialy, I installed the j2sdk and try compiling and running program is ok. After installing other softwares into my computer, then it start to give me the below error message. The class file is 100 percent correct and just a simple "Hello World!" application. Can anybody figure it out for me?
C:\j2sdk1.4.1_05\bin>javac Test.java
C:\j2sdk1.4.1_05\bin>java Test
Exception in thread "main" java.lang.NoClassDefFoundError: Test
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you check out your classpath?
Cheers!
 
Peter Heng
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
CLASSPATH = C:\JRun4\lib\jrun.jar
PATH = C:\j2sdk1.4.1_05\bin
jrun.jar I use to compile servlet, it is provided by JRun 4.0 Server. And I use j2sdk1.4.1 to compile java class file. Is it something wrong here?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic