Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Applet with jMonkeyEngine?

I want to host a jMonkeyEngine game as an applet, but I can't figure out how. These instructions recommend having the main class inherit from SimpleJMEApplet, but Eclipse complains that it can't find the class.

Any other documentation on how to do this?

like image 599
Nick Heiner Avatar asked Dec 13 '25 01:12

Nick Heiner


1 Answers

I know this thread is old, but since there's no answer...

I managed to deploy an applet with the official IDE and not using SimpleJMEApplet but just extending SimpleApplication.

In the official IDE, right-click your project : properties Application - Applet : check "Create Applet" Then, click on "Clean and Build"

In your project folder you'll find a "dist" folder containing an "Applet" folder.

Only code.jar and data.jar depend on your code, other archives must be replaced.

To replace the archives, you need to go look for the last version of lwjgl_applet. I don't know if lwjgl 3 supports this, but you can find the last lwjgl_applet here

There are two folders, "basic" and "advanced". The method I used needs the "basic" jars.

You need to use jarsigner (which is stored in a JDK) to sign all the basic jar with a key of your own. There also is a html file which is the entry point to your applet.

Once you've signed all the lwjgl_applet jars with your own key you can add code.jar and data.jar in the same folder and then sign them with your key.

You should now be able to launch your applet from a browser. Beware of warning security risks etc.

like image 175
vdolez Avatar answered Dec 16 '25 00:12

vdolez



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!