File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 39548
    
  27

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 - updated with new look and Ping home screen widget
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
Swing repaint() not working / might be a case of RFM / tried a few things but can't get it to work
Opening a new window.
Creating one class from another
JMenu Construction problem
JFrame and JMenu