• 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

problem running JDK

 
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I seem to have trouble running my classes. I compile a class, but when I run it, I get error message: "java.lang.NoClassDefFoundError". I get this error even with classes that I know for sure worked before. All of the sudden I started to get this message. What's wrong here?
thanks,
Alex
 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Alex,
Possible causes of your problem.
1) you might have changed your classpath.
2) if you declare package statement in your class coding, you need to invoke with qualified class name (full package name + class name).
3) do not put ".class" when you run with Java.exe command.
Hope it helps.
reply
    Bookmark Topic Watch Topic
  • New Topic