lwjgl error when using jnlp + slick engine

Started by sqlboy, August 06, 2009, 15:56:06

Previous topic - Next topic

sqlboy

Hi.  I've been working on this game and decided to package it up for java web start.  I can run it locally fine, but, if run it via javaws I get this error:

6 00:47:25 PDT 2009 INFO:Slick Build #266
Thu Aug 06 00:47:25 PDT 2009 INFO:LWJGL Version: 2.1.0
Thu Aug 06 00:47:25 PDT 2009 INFO:OriginalDisplayMode: 1920 x 1200 x 32 @0Hz
Thu Aug 06 00:47:25 PDT 2009 INFO:TargetDisplayMode: 800 x 600 x 0 @0Hz
2009-08-06 00:47:25.117 java[18097:1140f] invalid code module
2009-08-06 00:47:25.118 java[18097:1140f] invalid code module
2009-08-06 00:47:25.118 java[18097:1140f] invalid code module
2009-08-06 00:47:25.119 java[18097:1140f] invalid code module
2009-08-06 00:47:25.119 java[18097:1140f] invalid code module
2009-08-06 00:47:25.120 java[18097:1140f] invalid code module
Thu Aug 06 00:47:25 PDT 2009 ERROR:Could not create pixel format
org.lwjgl.LWJGLException: Could not create pixel format
        at org.lwjgl.opengl.MacOSXPeerInfo.nChoosePixelFormat(Native Method)
        at org.lwjgl.opengl.MacOSXPeerInfo.choosePixelFormat(MacOSXPeerInfo.java:55)
        at org.lwjgl.opengl.MacOSXPeerInfo.<init>(MacOSXPeerInfo.java:50)
        at org.lwjgl.opengl.MacOSXCanvasPeerInfo.<init>(MacOSXCanvasPeerInfo.java:49)
        at org.lwjgl.opengl.MacOSXDisplayPeerInfo.<init>(MacOSXDisplayPeerInfo.java:48)
        at org.lwjgl.opengl.MacOSXDisplay.createPeerInfo(MacOSXDisplay.java:246)
        at org.lwjgl.opengl.Display.create(Display.java:837)
        at org.lwjgl.opengl.Display.create(Display.java:767)
        at org.newdawn.slick.AppGameContainer.tryCreateDisplay(AppGameContainer.java:299)
        at org.newdawn.slick.AppGameContainer.access$000(AppGameContainer.java:34)
        at org.newdawn.slick.AppGameContainer$2.run(AppGameContainer.java:364)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:345)
        at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:314)
        at mud.client.Game.main(Game.java:164)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.javaws.Launcher.executeApplication(Launcher.java:1359)
        at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1297)
        at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1096)
        at com.sun.javaws.Launcher.run(Launcher.java:116)
        at java.lang.Thread.run(Thread.java:637)

My jnlp file looks something like:
<resources>
    <j2se version="1.6+"/>
    <jar href="game.jar"/>
    <jar href="lib/Ice.jar"/>
    <jar href="lib/lwjgl.jar"/>
    <jar href="lib/slick.jar"/>
    <jar href="lib/mud.jar"/>
    <jar href="lib/ibxm.jar"/>
    <jar href="lib/jinput.jar"/>
    <jar href="lib/jogg-0.0.7.jar"/>
    <jar href="lib/jorbis-0.0.15.jar"/>
  </resources>

  <resources os="Windows">
    <j2se version="1.6+"/>
    <nativelib href="lib/natives-win32.jar"/>
  </resources>
  <resources os="Linux">
    <j2se version="1.6+"/>
    <nativelib href="lib/natives-linux.jar"/>
  </resources>
  <resources os="Mac OS">
    <j2se version="1.6+"/>
    <nativelib href="lib/natives-mac.jar"/>
  </resources>
  <application-desc main-class="mud.client.Game"/>