I can use applet with JME 1.0 is work on web. But I change to JME 2.0. It's not work!! I don't know why ?
<applet code="applet.displayModel.class" archive="lwjgl_util_applet.jar,lwjgl.jar,jME_2.0.jar,window_native.jar,jme-awt.jar,display3D.jar" width="500" height="500">
<param name="useAppletCanvasSize" value="true"/>
<param name="modelfile1" value="<?=$pathP1;?>">
<param name="modelfile2" value="<?=$pathP2;?>">
</applet>
I was make sign jar before, I run on web.
window_native.jar << I use the same with JME 1.0
But the other jar file is JME 2.0.
:: Error ::
Sep 11, 2009 4:54:30 PM com.jme.scene.Node <init>
INFO: Node created.
Sep 11, 2009 4:54:30 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:84)
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
access denied
Seems some libraries are not signed.
Make sure the lwjgl.jar lib etc. is signed too.
Also I think you need new natives?
window_native.jar << I use the same with JME 1.0
Alric said:
Also I think you need new natives?
window_native.jar << I use the same with JME 1.0
the natives JME 2.0 is include
- jinput-dx8.dll , jinput-raw.dll , lwjgl.dll , odejava.dll , OpenAL32.dll
- libjinput-linux64.so , libjinput-linux.so , liblwjgl64.so , liblwjgl.so , libodejava64.so , libodejava.so , libopenal64.so , libopenal.so
- openal.dylib , libjinput-osx.jnilib , liblwjgl.jnilib , libodejava.jnilib
That right ???
Core-Dump said:
access denied
Seems some libraries are not signed.
Make sure the lwjgl.jar lib etc. is signed too.
Now I signed all jar file and now has error
Sep 15, 2009 10:08:39 AM com.jme.scene.Node <init>
INFO: Node created.
Sep 15, 2009 10:08:40 AM 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:72)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:65)
at org.lwjgl.Sys.loadLibrary(Sys.java:81)
at org.lwjgl.Sys.<clinit>(Sys.java:98)
at org.lwjgl.opengl.AWTGLCanvas.<clinit>(AWTGLCanvas.java:84)
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)
And applet code is
<applet code="applet.displayModel.class" archive="lwjgl_util_applet.jar,lwjgl.jar,lwjgl_util.jar,jME_2.0.jar,jogl.jar,jorbis-0.0.17.jar,gluegen-rt.jar,jinput.jar,swt.jar,window_native2.jar,display3D.jar" width="500" height="500">
<param name="useAppletCanvasSize" value="true"/>
<param name="modelfile1" value="<?=$pathP1;?>">
<param name="modelfile2" value="<?=$pathP2;?>">
</applet>
:? I don't know .. Why it happen ??? How can i solve?
you can use the new lwjgl2 applet style, that way lwjgl will take care of extracting the natives.
<applet code="org.lwjgl.util.applet.AppletLoader" archive="lwjgl_util_applet.jar, lzma.jar" codebase="." width="640" height="480">
<!-- 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="TestApplet">
<!-- Main Applet Class -->
<param name="al_main" value="com.bla.YourApplet">
<!-- 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="lwjgl_applet.jar.pack.lzma, lwjgl.jar.pack.lzma, jinput.jar.pack.lzma, lwjgl_util.jar.pack.lzma, res.jar.lzma, hb_applet.jar, jme_jars/jme.jar,jme_jars/jme-awt.jar,jme_jars/jme-audio.jar,jme_jars/jme-font.jar,jme_jars/jme-model.jar,jme_jars/jme-scene.jar,jme_jars/jorbis-0.0.17.jar">
<!-- signed windows natives jar in a jar -->
<param name="al_windows" value="windows_natives.jar.lzma">
<!-- signed linux natives jar in a jar -->
<param name="al_linux" value="linux_natives.jar.lzma">
<!-- signed mac osx natives jar in a jar -->
<param name="al_mac" value="macosx_natives.jar.lzma">
<!-- signed solaris natives jar in a jar -->
<param name="al_solaris" value="solaris_natives.jar.lzma">
<!-- 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="true"> -->
<!-- whether to prepend host to cache path - defaults to true -->
<param name="al_prepend_host" value="false">
<!-- main applet specific params
<param name="test" value="org.lwjgl.test.opengl.awt.AWTGearsCanvas"> -->
</applet>
Core-Dump said:
you can use the new lwjgl2 applet style, that way lwjgl will take care of extracting the natives.
<applet code="org.lwjgl.util.applet.AppletLoader" archive="lwjgl_util_applet.jar, lzma.jar" codebase="." width="640" height="480">
<!-- 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="TestApplet">
<!-- Main Applet Class -->
<param name="al_main" value="com.bla.YourApplet">
<!-- 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="lwjgl_applet.jar.pack.lzma, lwjgl.jar.pack.lzma, jinput.jar.pack.lzma, lwjgl_util.jar.pack.lzma, res.jar.lzma, hb_applet.jar, jme_jars/jme.jar,jme_jars/jme-awt.jar,jme_jars/jme-audio.jar,jme_jars/jme-font.jar,jme_jars/jme-model.jar,jme_jars/jme-scene.jar,jme_jars/jorbis-0.0.17.jar">
<!-- signed windows natives jar in a jar -->
<param name="al_windows" value="windows_natives.jar.lzma">
<!-- signed linux natives jar in a jar -->
<param name="al_linux" value="linux_natives.jar.lzma">
<!-- signed mac osx natives jar in a jar -->
<param name="al_mac" value="macosx_natives.jar.lzma">
<!-- signed solaris natives jar in a jar -->
<param name="al_solaris" value="solaris_natives.jar.lzma">
<!-- 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="true"> -->
<!-- whether to prepend host to cache path - defaults to true -->
<param name="al_prepend_host" value="false">
<!-- main applet specific params
<param name="test" value="org.lwjgl.test.opengl.awt.AWTGearsCanvas"> -->
</applet>
thank you for your guid. But When I change It has problem like this ::
Fatal error occured (5): null
Fatal error occured (5): Unable to validate certificate chain. Chain differs in length [4 vs 3]
What I miss ??
Core-Dump said:
see http://lwjgl.org/forum/index.php?topic=2682.0
the problem seems to be multiple certificates
thank you << now this problem can solve.
But Now Show new Error
Fatal error occured (5) : null :?
what I miss something again
PS. I use SimpleJMEApplet .... and It work on eclipse. and I test with IE 6.0
My applet code is ::
<applet code="org.lwjgl.util.applet.AppletLoader" archive="lwjgl_util_applet.jar, lzma.jar" codebase="." width="640" height="480">
<!-- 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="TestApplet">
<!-- Main Applet Class -->
<param name="al_main" value="applet.displayModel">
<!-- 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="lwjgl_applet.jar.pack.lzma, lwjgl.jar.pack.lzma, jinput.jar.pack.lzma, lwjgl_util.jar.pack.lzma, jme_jars/JME_2.0.jar,jme_jars/jorbis-0.0.17.jar,display3D.jar">
<!-- signed windows natives jar in a jar -->
<param name="al_windows" value="windows_natives.jar.lzma">
<!-- signed linux natives jar in a jar -->
<param name="al_linux" value="linux_natives.jar.lzma">
<!-- signed mac osx natives jar in a jar -->
<param name="al_mac" value="macosx_natives.jar.lzma">
<!-- signed solaris natives jar in a jar -->
<param name="al_solaris" value="solaris_natives.jar.lzma">
<!-- 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="true"> -->
<!-- whether to prepend host to cache path - defaults to true -->
<param name="al_prepend_host" value="false">
<!-- main applet specific params
<param name="test" value="org.lwjgl.test.opengl.awt.AWTGearsCanvas"> -->
<param name="modelfile1" value="<?=$pathP1;?>">
<param name="modelfile2" value="<?=$pathP2;?>">
</applet>
jojoth said:
PS. I use SimpleJMEApplet .... and It work on eclipse. and I test with IE 6.0
To use the LWJGL 2.0 Applets with the AppletLoader I think you need to use SimpleApplet, not SimpleJMEApplet.