Problem about Applet

I install jme2.0.1 in NetBeans and run the TestSimpleApplet and TestStandardApplet, both works fine in IDE. But when I change it to browser, the Java console show me this exception when the loading finish and go to the game loop:



Exception in thread "Thread-19" java.lang.ExceptionInInitializerError
   at org.lwjgl.Sys.createImplementation(Sys.java:109)
   at org.lwjgl.Sys.<clinit>(Sys.java:97)
   at org.lwjgl.opengl.Display.<clinit>(Display.java:129)
   at com.jmex.awt.applet.BaseApplet$1.run(BaseApplet.java:120)
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)
   ... 4 more



I don't know what is wrong with it, may be my html is not right:

<applet code="org.lwjgl.util.applet.AppletLoader" archive="lwjgl_util_applet.jar" codebase="." width="800" height="600">
 
    <!-- The following tags are mandatory -->
   
    <!-- Name of Applet, will be used as name of directory it is saved in, and will uniquely identify it in cache -->
    <param name="al_title" value="IAmHere">
   
    <!-- Main Applet Class -->
    <param name="al_main" value="testApplet.TestSimpleApplet">
   
    <!-- logo to paint while loading, will be centered -->
    <param name="al_logo" value="appletlogo.png">
   
    <!-- progressbar to paint while loading. Will be painted on top of logo, width clipped to percentage done -->
    <param name="al_progressbar" value="appletprogress.gif">
   
    <!-- List of Jars to add to classpath -->
    <param name="al_jars" value="AppletTest.jar, jme.jar, jme-awt.jar, lwjgl.jar, jinput.jar, lwjgl_util.jar">
   
    <!-- signed windows natives jar in a jar -->
    <param name="al_windows" value="windows_natives.jar">
   
    <!-- signed linux natives jar in a jar -->
    <param name="al_linux" value="linux_natives.jar">
   
    <!-- signed mac osx natives jar in a jar -->
    <param name="al_mac" value="macosx_natives.jar">

    <!-- signed solaris natives jar in a jar -->
    <param name="al_solaris" value="solaris_natives.jar">
   
    <!-- Tags under here are optional -->
   
    <!-- Version of Applet, important otherwise applet won't be cached, version change will update applet, must be int or float -->
    <!-- <param name="al_version" value="0.1"> -->
   
    <!-- background color to paint with, defaults to white -->
    <!-- <param name="al_bgcolor" value="000000"> -->
   
    <!-- foreground color to paint with, defaults to black -->
    <!-- <param name="al_fgcolor" value="ffffff"> -->
   
    <!-- error color to paint with, defaults to red -->
    <!-- <param name="al_errorcolor" value="ff0000"> -->
   
    <!-- whether to run in debug mode -->
    <param name="al_debug" value="false">
   
    <!-- whether to prepend host to cache path - defaults to true -->
    <!-- <param name="al_prepend_host" value="true"> -->
   
    <!-- main applet specific params -->
    <!-- param name="test" value="org.lwjgl.test.opengl.awt.AWTGearsCanvas" -->
 
  <param name="separate_jvm" value="true">
  </applet>

Did you properly sign your jar?



A complete step by step can be found here:



http://www.jmonkeyengine.com/wiki/doku.php/writing_a_jme_applet

Yes, I pack TestSimpleApplet class in AppletTest.jar and sign the jar. From the exception I think may be there is something wrong whit the thread of game loop, but i dont know why

Hi guys I have the same problem with applets.

I am using jME version 2.0 Stable (r4093) and lwjgl 2.4



I have signed all jars JME, LWJGL and MyJar, in linux its works fine, but in windows I got :



(Access is denied)

at java.io.FileOutputStream.open(Native Method)



Anyone know?



TY

all jars (including the lwjgl / jme jars) need to be signed, see the wiki entry