• 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: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Im trying to compile and run a program which is a .bat executeable which uses a locally compiled class. The problem is that when I try to run I get the above mentioned NoClassDefFoundError, and it tells me it cant find the class...even though its in the same folder.

ARGH. Ive had this problem before, but I dont know how to fix it. Any ideas?
 
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please post the full error message. Without it, I can only guess what the problem my be. My first guess is that the CLASSPATH variable does not include the location of the class you are trying to execute. You should run "echo %CLASSPATH%" from the command line and paste the output here.

Layne
 
Brendan Fosberry
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
MY HERO!

I added the path to my classpath and it worked! thanks !
 
reply
    Bookmark Topic Watch Topic
  • New Topic