Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jdk install  RSS feed

 
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!