File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Java interpreter giving strange error!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java interpreter giving strange error!!" Watch "Java interpreter giving strange error!!" New topic

Java interpreter giving strange error!!


Joined: Oct 09, 2004
Posts: 2

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.

Karunakar K.H.<br /> <br /> If you love what you are doing, success will follow you ALWAYS
jefff willis
Ranch Hand

Joined: Sep 29, 2004
Posts: 113
Yes, this is simply a classpath problem.
Consider Paul's rocket mass heater.
subject: Java interpreter giving strange error!!