Results 1 to 6 of 6
- 06-22-2010, 08:26 AM #1
Member
- Join Date
- Jun 2010
- Posts
- 12
- Rep Power
- 0
Question about error "Exception in thread "main" java.lang.NoSuchMethodError: main
Hi all,
I was wondering what this error message meant
Exception in thread "main" java.lang.NoSuchMethodError: main
...
My program compiles fine but it always gives me this error at run time,
Here is my main method
If someone can help me out with this issue, it'd be greatly appreciated ! :DJava Code:public static void main(String[] args) { new Thread(new Runnable(){ public void run(){ Minesweeper panel = new Minesweeper(20,20,50); JFrame frame = new JFrame("Minesweeper"); frame.validate(); frame.pack(); frame.setContentPane(panel); frame.setVisible(true); } }).start(); }Last edited by Eranga; 06-22-2010 at 12:11 PM. Reason: code tags added
- 06-22-2010, 09:51 AM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,460
- Rep Power
- 16
How are you running this?
What's the command?
- 06-22-2010, 12:18 PM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Can you post the complete error message here to see?
- 06-22-2010, 01:06 PM #4
Also show the command that was issued and the contents of the folder where the command was issued.
- 06-22-2010, 03:33 PM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 06-22-2010, 03:51 PM #6
Member
- Join Date
- Jun 2010
- Posts
- 12
- Rep Power
- 0
Similar Threads
-
getting an error Exception in thread "main" java.lang.UnsatisfiedLinkError: /Users/hu
By Hussain Ali in forum EclipseReplies: 8Last Post: 02-23-2010, 12:22 PM -
Runtime error "Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
By shantimudigonda in forum New To JavaReplies: 1Last Post: 11-20-2009, 07:58 PM -
Exception in thread "main" java.lang.NullPointerException at LinkedList.main(Link
By kavitha_0821 in forum New To JavaReplies: 1Last Post: 07-16-2009, 10:35 AM -
ERROR: Exception in thread "main" java.lang.NoSuchMethodError: main
By barney in forum New To JavaReplies: 1Last Post: 08-07-2007, 07:10 AM -
Error: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
By romina in forum New To JavaReplies: 1Last Post: 07-25-2007, 10:55 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks