I’m having trouble running the jar files on other computers. I copied the dist folder and ran the jar and the resolution select screen pops up, but whenever it tries to actually run the game, it crashes and disappears without showing anything. This happened on a mac, pc, and a linux computer I tried. Headless apps worked on the linux computer, but I didn’t try one on the others. I think the problems is with the graphics from what I’ve read on the forums and from the error message I got from windows: (running the default simplegame app)
[java]
…
at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:113)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:205)
at java.lang.Thread.run(Unknown Source)
Nov 28, 2011 3:23:34 PM com.jme3.app.Application handleError
SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
java.lang.IllegalStateException
at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:147)
at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:185)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:223)
at java.lang.Thread.run(Unknown Source)
C:UserssroundtreeDesktopTestSimpleGame>java -jar MyGame.jar
Nov 28, 2011 3:24:19 PM com.jme3.system.JmeSystem initialize
INFO: Running on jMonkeyEngine 3.0.0 Beta
Nov 28, 2011 3:24:19 PM com.jme3.system.Natives extractNativeLibs
INFO: Extraction Directory #1: file:/C:/Users/sroundtree/Desktop/TestSimpleGame/lib/
Nov 28, 2011 3:24:19 PM com.jme3.system.Natives extractNativeLibs
INFO: Extraction Directory #2: C:UserssroundtreeDesktopTestSimpleGame
Nov 28, 2011 3:25:00 PM com.jme3.system.lwjgl.LwjglDisplay createContext
INFO: Selected display mode: 1024 x 768 x 32 @60Hz
Nov 28, 2011 3:25:01 PM com.jme3.app.Application handleError
SEVERE: Failed to create display
org.lwjgl.LWJGLException: Pixel format not accelerated
at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)
at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)
at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:210)
at org.lwjgl.opengl.Display.createWindow(Display.java:306)
at org.lwjgl.opengl.Display.create(Display.java:899)
at org.lwjgl.opengl.Display.create(Display.java:808)
at com.jme3.system.lwjgl.LwjglDisplay.createContext(LwjglDisplay.java:140)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:113)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:205)
at java.lang.Thread.run(Unknown Source)
Nov 28, 2011 3:25:01 PM com.jme3.app.Application handleError
SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
java.lang.IllegalStateException
at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:147)
at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:185)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:223)
at java.lang.Thread.run(Unknown Source)[/java]
Is it just the particular computers I tried or is this a common problem? It works fine on my computer (Mac) and one other mac I tried, but a slightly older mac didn’t work.
I’m pretty sure it’s the computers, I guess the real question is- how can I fix them so that it works?
Can you ensure that the graphics drivers are updated on the target PC?
Can you provide details on the card(s) in question?
The computers weren’t mine and I don’t have access to them anymore, so unfortunately no. But that seems to be the problem- on another newer windows computer it worked fine.
Gotta make sure to update the drivers on the windows and linux PCs. The old mac might not support OpenGL at all.
Also make sure to set number of samples to “Disabled” in the configuration dialog (instead of x2, x4, etc) as multisampling usually isn’t supported on integrated cards.