Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running a java applet from netbeans?

I am trying to run a Java applet from NetBeans, and in trying to run it, I get a 'main class not found' error. I can avoid this by doing SHIFT+F6, but that'll only work if I am currently writing in the main class. I will be working on a somewhat large project, and it's going to have multiple files, and eventually it will be quite cumbersome to always navigate back to the main class to the 'main' file and run it from there. Is there any sort of configurations I can edit to tell NetBeans that I want to run my project (not the individual file) as an applet? I have NetBeans set up from this tutorial.

like image 922
Keelx Avatar asked Aug 14 '11 01:08

Keelx


1 Answers

In netbeans, right click on the project and chose properties. Under Application > Webstart, there is an option Applet class. specify the full path to your main class (i.e with package names).

like image 60
Akintayo Olusegun Avatar answered Oct 08 '22 00:10

Akintayo Olusegun