Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[solved] java.lang.NoSuchMethodError

 
L Willie
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.lang.NoSuchMethodError: main

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?
 
L Willie
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank,i asking 1st stupid question
2nd que,problem solved
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic