This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help netbeans saying No main class found  RSS feed

 
Scott Emberson
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
i have to creat a program to convert from miles to killometer and vice versa i think i have writen all the code right. When i got to run it say no main class found ( i am useing netbeans 6.5.1) any ideas


 
Scott Emberson
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there is only one class
 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's not an application but an applet. The two have totally different entry points; applications must have a "public static void main(String[])" method.
Try to change the way you want to run your applet; in Eclipse, the Run submenu has several options. No doubt Netbeans does too.
 
Scott Emberson
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!