Applet error

I want to make an applet, so I followed this example:



http://www.jmonkeyengine.com/wiki/doku.php?id=writing_a_jme_applet





I use the IDE Netbeans, the name of my project is Applet2, I created a package named applet  and finally the name of my class is AppletJme.java. This the code of my html


<applet
    code="Applet2.applet.AppletJme"
alt="Nothing"
width="800"
  height="600"
archive="Applet2.jar,lwjgl.jar,lwjgl_util_applet.jar,natives.jar,jme.jar,jme-awt.jar"
   title="jMonkey" >
   <param name="useAppletCanvasSize" value="true"/>
</applet>




And it doesn

It looks like the name of the package is incorrect. I haven't used NetBeans in years, but most IDEs don't prefix packages with the name of the project, so the line in your HTML should probably just be:


code="applet.AppletJme"

I think that last line of code did something, now this my code for the html archive:


<applet
    code="applet.AppletJme"
   alt="Nothing"
   width="800"
    height="600"
   archive="Applet2.jar,lwjgl.jar,lwjgl_util_applet.jar,natives.jar,jme.jar,jme-awt.jar,jmetest.jar"
   title="jMonkey" >
   <param name="useAppletCanvasSize" value="true"/>



And now this are the errors I get :


java.security.AccessControlException: access denied (java.util.PropertyPermission java.io.tmpdir 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 org.lwjgl.util.applet.LWJGLInstaller$7.run(LWJGLInstaller.java:309)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.lwjgl.util.applet.LWJGLInstaller.uninstall(LWJGLInstaller.java:307)
   at org.lwjgl.util.applet.LWJGLInstaller.tempInstall(LWJGLInstaller.java:136)
   at com.jme.system.lwjgl.LWJGLSystemProvider.installLibs(Unknown Source)
   at com.jmex.awt.applet.SimpleJMEApplet.init(Unknown Source)
   at sun.applet.AppletPanel.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
com.jme.system.JmeException: Could not install lwjgl libs! java.security.AccessControlException: access denied (java.util.PropertyPermission java.io.tmpdir read)
   at com.jme.system.lwjgl.LWJGLSystemProvider.installLibs(Unknown Source)
   at com.jmex.awt.applet.SimpleJMEApplet.init(Unknown Source)
   at sun.applet.AppletPanel.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
java.security.AccessControlException: access denied (java.util.logging.LoggingPermission control)
   at java.security.AccessControlContext.checkPermission(Unknown Source)
   at java.security.AccessController.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkPermission(Unknown Source)
   at java.util.logging.LogManager.checkAccess(Unknown Source)
   at java.util.logging.Logger.checkAccess(Unknown Source)
   at java.util.logging.Logger.setLevel(Unknown Source)
   at com.jme.util.LoggingSystem.loggerOn(Unknown Source)
   at com.jme.util.LoggingSystem.<init>(Unknown Source)
   at com.jme.util.LoggingSystem.getLogger(Unknown Source)
   at com.jme.system.lwjgl.LWJGLDisplaySystem.<init>(Unknown Source)
   at com.jme.system.lwjgl.LWJGLSystemProvider.getDisplaySystem(Unknown Source)
   at com.jme.system.DisplaySystem.getDisplaySystem(Unknown Source)
   at com.jmex.awt.applet.SimpleJMEApplet.init(Unknown Source)
   at sun.applet.AppletPanel.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)





Can somebody know something about it?

You may need to sign your applet's binaries for it to work.

Thanks for your help , I signed my jars and it's working :smiley: