• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java interpreter giving strange error!!

 
Karunakar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I wrote a simple helloworld and put that file in bin directory.I compiled the program.But while executing that program Java interpreter is giving
the following error.


Exception in thread "main" java.lang.NoSuchMethodError: main


Can anybody throw some light on this..

I think some classpath and environment variables have been modified.I am not sure.I had installed Tomcat last week n working on Servlets.
 
jefff willis
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, this is simply a classpath problem.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!