• Post Reply Bookmark Topic Watch Topic
  • New Topic

jdk install  RSS feed

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I installed jdk-1.2.2 from blackdown.org. After running one of the demo programs I get an error:
Exception in thread "main" java.lang.NoSuchMethodError: main
I'm running RedHat 6.1, please help.
thanks in advanced
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a chance that the example program you've tried uses static methods to explain their functionality. In this scenario, the main method will not be in the code. Please check this.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!