This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes [solved] java.lang.NoSuchMethodError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "[solved] java.lang.NoSuchMethodError" Watch "[solved] java.lang.NoSuchMethodError" New topic
Author

[solved] java.lang.NoSuchMethodError

L Willie
Ranch Hand

Joined: Aug 10, 2008
Posts: 51
java.lang.NoSuchMethodError: main Exception in thread "main"

1st question
i receive the message during execute the file.Why?
java.lang.NoSuchMethodError: main
Exception in thread "main"

2nd question
any lack of code for File Menu bar and its menuItem?


Sincerely,

Willie
[ October 12, 2008: Message edited by: L Willie ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41083
    
  43

The "main" method must be static (which yours is not).

any lack of code for File Menu bar and its menuItem?

I don't understand what you're asking here. Can you rephrase it and provide more detail?


Ping & DNS - my free Android networking tools app
L Willie
Ranch Hand

Joined: Aug 10, 2008
Posts: 51
thank,i asking 1st stupid question
2nd que,problem solved
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [solved] java.lang.NoSuchMethodError
 
Similar Threads
JMenu Construction problem
Opening a new window.
Creating one class from another
JFrame and JMenu
Swing repaint() not working / might be a case of RFM / tried a few things but can't get it to work