• 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

exception error

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have the following error: Exception in thread "main" java.lang.NoClassDefFoundError: Test
Test is the name of my java file.
I have no idea with it means.
so please help
 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kneecap (I hope that was an intended joke, if Patel a is your real name I'm sorry for calling you Kneecap).
I think the solution to your problem lies in one of two spots. The first possible solution is to make sure you are in the same folder as Test.class (the file created when you compiled your java file) when you run java (using "java Test").
The second possible solution is that you are missing a dot and semicolon at the beginning of your classpath in your autoexec.bat file. If this is all greek to you please let me know and I'll do what I can to expand on this one a little more.
Hope that helps.
Paul
 
We're being followed by intergalactic spies! Quick! Take this tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic