aspose 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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 3169
    
  10
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: 36579
    
  16
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"?
 
Similar Threads
(new to java)variables might not have been initialized
Using super keyword
I need help on an equals method
Question regarding Inheritance
Triangle Problem