wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Help netbeans saying No main class found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Help netbeans saying No main class found" Watch "Help netbeans saying No main class found" New topic
Author

Help netbeans saying No main class found

Scott Emberson
Greenhorn

Joined: Apr 15, 2009
Posts: 3
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

Joined: Apr 15, 2009
Posts: 3
there is only one class
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19653
    
  18

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Scott Emberson
Greenhorn

Joined: Apr 15, 2009
Posts: 3
thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help netbeans saying No main class found
 
Similar Threads
Wrapper
Applet servlet communication
. . .not abstract and doesnt overide abstract method actionPerfomed
simple Exception handling
Applet notinitited, please need urgent help