This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates 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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 42371
    
  64

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