So basically, I have no idea why I can’t run a darn simple HelloWorld applet in my browser. However, I’m aware that applets do not have main methods to initialize (they use init). So, I added a new class with an empty main method to my applet project using: When I attempt to load from the command line (although this is an applet not an application so I’m not sure this would work anyway) I get a “Failed to load Main-Class manifest attribute” error. The applet viewer built into NetBeans displays just fine, however when I embed in an HTML file I get in the status bar: I’ve followed tutorials on the NetBeans website on creating a simple hello world applet using NetBeans and it just won’t work in the browser.
0 Comments
Leave a Reply. |