LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: tuft on June 01, 2008, 10:44:27

Title: Applet problem
Post by: tuft on June 01, 2008, 10:44:27
Hi,
I tried to create simple applet - just copied code from http://lwjgl.org/wiki/doku.php/lwjgl/tutorials/applet-lwjglinstaller, builded and packaged in netbeans, changed html to load my jar and class. When I load it in browser I get "Fatal error occured (7): test.AppletTestComplete" after natives are installed. Where is the problem? I have little to no experience with applets, It is posible I overlooked some really simple thing... . Thanks for any help.
Title: Re: Applet problem
Post by: Matzon on June 01, 2008, 13:19:33
The preferred way to deploy applets is using the AppletLoader: http://lwjgl.org/wiki/doku.php/lwjgl/tutorials/applet
Please try to use this.
Title: Re: Applet problem
Post by: kappa on June 01, 2008, 13:22:25
yes that tutorial is completely out of date and will no longer work, as LWJGLInstaller is no longer used.

You'll have to use the new AppletLoader, see here for an example of the new LWJGL Applets http://java-game-lib.svn.sourceforge.net/viewvc/java-game-lib/trunk/LWJGL/src/java/org/lwjgl/test/applet/GearsApplet.java?view=log


Also download the lwjgl_applet-2.0b1.zip package for an example on how to setup the applet.