File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Whyis the error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Whyis the error "Exception in thread "main" java.lang.NoSuchMethodError: main"?" Watch "Whyis the error "Exception in thread "main" java.lang.NoSuchMethodError: main"?" New topic
Author

Whyis the error "Exception in thread "main" java.lang.NoSuchMethodError: main"?

Varuna Seneviratna
Ranch Hand

Joined: Jan 15, 2007
Posts: 167


The above class compiles but can not be run


Regards Varuna


Varuna Seneviratna
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3534
    
  15
How are you trying to run it ?


Joanne
Varuna Seneviratna
Ranch Hand

Joined: Jan 15, 2007
Posts: 167
Originally posted by Joanne Neal:
How are you trying to run it ?


Yes Thanks I found it, I was running Triangle not TriangleTest

Varuna
Varuna Seneviratna
Ranch Hand

Joined: Jan 15, 2007
Posts: 167
What is the need for the semicolon at the end of the classes Triangle and TriangleTest?


Regards Varuna
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38805
    
  23
The final semicolon is not necessary; most people would leave it out.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Whyis the error "Exception in thread "main" java.lang.NoSuchMethodError: main"?