Applets

Two things about this. First, I heard Applets will no longer be limited in the amount of RAM they can use. Is this true, and to what extent? Also, I am having errors getting my applet to work. I signed the JARs, but I left JInput out. I had the JME.jar, Native.jar, and all the Jars from the JME lib folder except the JInput one. Here is the error:

Oct 11, 2008 9:35:51 PM com.jme.system.lwjgl.LWJGLDisplaySystem <init>
INFO: LWJGL Display System created.
java.lang.ExceptionInInitializerError
   at org.lwjgl.Sys.createImplementation(Sys.java:109)
   at org.lwjgl.Sys.<clinit>(Sys.java:97)
   at org.lwjgl.opengl.AWTGLCanvas.<clinit>(AWTGLCanvas.java:85)
   at com.jmex.awt.lwjgl.LWJGLAWTCanvasConstructor.makeCanvas(LWJGLAWTCanvasConstructor.java:45)
   at com.jmex.awt.lwjgl.LWJGLAWTCanvasConstructor.makeCanvas(LWJGLAWTCanvasConstructor.java:42)
   at com.jme.system.lwjgl.LWJGLDisplaySystem.createCanvas(LWJGLDisplaySystem.java:212)
   at com.jme.system.lwjgl.LWJGLDisplaySystem.createCanvas(LWJGLDisplaySystem.java:189)
   at com.jmex.awt.applet.SimpleJMEApplet.init(SimpleJMEApplet.java:156)
   at sun.applet.AppletPanel.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission org.lwjgl.util.Debug read)
   at java.security.AccessControlContext.checkPermission(Unknown Source)
   at java.security.AccessController.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
   at java.lang.System.getProperty(Unknown Source)
   at java.lang.Boolean.getBoolean(Unknown Source)
   at org.lwjgl.LWJGLUtil$4.run(LWJGLUtil.java:451)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.lwjgl.LWJGLUtil.getPrivilegedBoolean(LWJGLUtil.java:449)
   at org.lwjgl.LWJGLUtil.<clinit>(LWJGLUtil.java:268)
   ... 10 more
java.lang.NoClassDefFoundError: Could not initialize class com.jmex.awt.lwjgl.LWJGLCanvas
   at com.jmex.awt.lwjgl.LWJGLAWTCanvasConstructor.makeCanvas(LWJGLAWTCanvasConstructor.java:45)
   at com.jmex.awt.lwjgl.LWJGLAWTCanvasConstructor.makeCanvas(LWJGLAWTCanvasConstructor.java:42)
   at com.jme.system.lwjgl.LWJGLDisplaySystem.createCanvas(LWJGLDisplaySystem.java:212)
   at com.jme.system.lwjgl.LWJGLDisplaySystem.createCanvas(LWJGLDisplaySystem.java:189)
   at com.jmex.awt.applet.SimpleJMEApplet.init(SimpleJMEApplet.java:156)
   at sun.applet.AppletPanel.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

if you use jme2, its easier to use the new AppletLoader which lwjgl provides.



See this thread for an example:

http://www.jmonkeyengine.com/jmeforum/index.php?topic=8677.0



There needs to be a new Tutorial in the Wiki to create Applet with jme2.

Thanks! After I figure out how to do it, I will post a tutorial in the JME 2 tutorial section.

Sorry, read the new one. I linked my main class wrong, found it out myself.

Also, yes, I signed all of it.

i don't spot an error in your set up.

"Fatal error occured (7): Main"  i don't know what that means.



Is LegendsofArchaic.jar and jme.jar signed ?

it must have something to do with your jme.jar.  is it really signed and the com.jmex.awt.lwjgl.LWJGLCanvas class inside it ?  :slight_smile:

I'll double check. I suspect it should. Maybe my JAR didn't build right. How can I see what files are inside the JARs? I think WinRAR can open JARs…

The class is inside of it. It must have something to do with not including enough JARs. Also, I am pretty sure it is signed.