Hi, I'm trying the JME applet examples on the browser, when I deploy and try, for example, AppletTestBoxColor, I get the following exception:
java.lang.ExceptionInInitializerError
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)
Caused by: 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.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.<clinit>(Unknown Source)
... 4 more
I tested the LWJGL applet examples and they are working ok; the html file is:
I've signed the jars and now the problem is the (in)famous
INFO: LWJGL Display System created.
java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.lwjgl.Sys$1.run(Sys.java:75)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:68)
at org.lwjgl.Sys.loadLibrary(Sys.java:84)
at org.lwjgl.Sys.<clinit>(Sys.java:101)
at com.jme.util.lwjgl.LWJGLTimer.<clinit>(Unknown Source)
at com.jme.system.lwjgl.LWJGLSystemProvider.<clinit>(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)
As the LWJGL applet examples have worked, I assume it's some dark problem besides LWJGL unable to do the temp installation... is there any other step required?
To recap: I've signed my jar and the jme-*.jar files, the lwjgl*.jar are already signed... maybe that's a problem?
This is the complete stack trace of the applet console:
18/09/2006 12:05:22 com.jme.system.lwjgl.LWJGLDisplaySystem <init>
INFO: LWJGL Display System created.
java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.lwjgl.Sys$1.run(Sys.java:75)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:68)
at org.lwjgl.Sys.loadLibrary(Sys.java:84)
at org.lwjgl.Sys.<clinit>(Sys.java:101)
at com.jme.util.lwjgl.LWJGLTimer.<clinit>(Unknown Source)
at com.jme.system.lwjgl.LWJGLSystemProvider.<clinit>(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)
I'm using the natives.jar from the lwjgl_applettest-1.0beta3 version
lwjgl unpacks the natives.jar to a temp folder on your machine for applets to work. The list of jars I've always needed for a basic app (aside from the jar with my own code in it) was:
I got it, the problem was that I was using the jar files from the CVS repository, which don't include the latest classes and doesn't do the temp install, I solved it downloading the nightly build and using those jars
BTW, when trying to build the source files from the CVS (using Eclipse) I get the following errors:
Buildfile: C:eclipseworkspacejMEbuild.xml
Overriding previous definition of reference to classpath
init:
[echo] jmeKeyStore
compile:
[javac] Compiling 1403 source files to C:eclipseworkspacejMEbuild
[javac] C:eclipseworkspacejMEsrccomjmexgameStandardGame.java:275: reference to GameStateManager is ambiguous, both class com.jmex.game.state.GameStateManager in com.jmex.game.state and class com.jme.app.GameStateManager in com.jme.app match
[javac] GameStateManager.create();
[javac] ^
[javac] C:eclipseworkspacejMEsrccomjmexgameStandardGame.java:284: reference to GameStateManager is ambiguous, both class com.jmex.game.state.GameStateManager in com.jmex.game.state and class com.jme.app.GameStateManager in com.jme.app match
[javac] GameStateManager.getInstance().update(interpolation);
[javac] ^
[javac] C:eclipseworkspacejMEsrccomjmexgameStandardGame.java:306: reference to GameStateManager is ambiguous, both class com.jmex.game.state.GameStateManager in com.jmex.game.state and class com.jme.app.GameStateManager in com.jme.app match
[javac] GameStateManager.getInstance().render(interpolation);
[javac] ^
[javac] C:eclipseworkspacejMEsrccomjmexgameStandardGame.java:340: reference to GameStateManager is ambiguous, both class com.jmex.game.state.GameStateManager in com.jmex.game.state and class com.jme.app.GameStateManager in com.jme.app match
[javac] GameStateManager.getInstance().cleanup();
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 4 errors
BUILD FAILED
C:eclipseworkspacejMEbuild.xml:52: Compile failed; see the compiler error output for details.
Total time: 50 seconds
Haven't even looked at it, probably is a configuration error of my own, but in case you want to take a look at it (I'm synchronized with the CVS repository)