• 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

ridiculous NoClassDefFoundError

 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I know this sounds stupid guys but it's getting on my nerves :

I am preparing a production machine with Windows2000 Server as the OS for the eventual deployment of some web applications we've been working on for ages on development and staging.

Now I can't seem to get Java to work right !!!

Installed the JDK 1.4.2_05 from java.sun.com like a good boy, all seems well .. have my JAVA_HOME environment variable in place and the path points to where the java and javac commands sit tightly under the %JAVA_HOME%\bin folder ....

Now if i try to compile a simple Hello World program it works fine .. now to run it i get this :

Exception in thread "main" java.lang.NoClassDefFoundError: TestConnection


I urgently need some tips here!

Merci beaucoup in advance.

kiko :roll: :roll:
 
Kareem Gad
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
anyone ? I'm kinda waiting here ?
 
Kareem Gad
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you very much for everyone i just found the culprit ... i missed out the . in my classpath to denote current directory too !!!


cheers
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for sharing what you learned!
 
reply
    Bookmark Topic Watch Topic
  • New Topic