Stuck again this time it don't seem so simple

Hey well I am still working furiously(well not so much so but still) at my final year project. Its at a very interesting stage and im planning to add AI using appstates next but I am more interested in trying to get a Desktop executable program right now for my first show and tell so to speak :stuck_out_tongue:

So i did a clean and build and well all the pretty files were signed and packed…assests.jar included Already checked it contains all the assets and it does.

When I click the .jnlp the game configuration screen shows up(the one with the splash image and resolution settings. But after I click start , the window goes black and shuts.

I did a bit of tracing using dos and found that It was closing due to a NullPointerException…here is a snippet


C:UsersHanutDesktopProject 8LearningGDdist>java -jar "C:UsersHanutDeskt
opProject 8LearningGDdistProject 8.jar"
Mar 28, 2012 11:41:40 PM com.jme3.system.JmeDesktopSystem initialize
INFO: Running on jMonkeyEngine 3.0.0 Beta
Mar 28, 2012 11:41:40 PM com.jme3.system.Natives extractNativeLibs
INFO: Extraction Directory: C:UsersHanutDesktopProject 8LearningGDdist
Mar 28, 2012 11:41:40 PM com.jme3.system.Natives extractNativeLib
WARNING: Cannot locate native library: windows/bulletjme.dll
Mar 28, 2012 11:41:40 PM com.jme3.system.lwjgl.LwjglAbstractDisplay run
INFO: Using LWJGL 2.8.2
Mar 28, 2012 11:41:40 PM com.jme3.system.lwjgl.LwjglDisplay createContext
INFO: Selected display mode: 640 x 480 x 0 @0Hz
Mar 28, 2012 11:41:41 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo

INFO: Adapter: aticfx32
Mar 28, 2012 11:41:41 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo

INFO: Driver Version: 8.17.10.1114
Mar 28, 2012 11:41:41 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo

INFO: Vendor: ATI Technologies Inc.
Mar 28, 2012 11:41:41 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo

INFO: OpenGL Version: 3.3.11399 Compatibility Profile Context
Mar 28, 2012 11:41:41 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo

INFO: Renderer: ATI Mobility Radeon HD 3400 Series
Mar 28, 2012 11:41:41 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo

INFO: GLSL Ver: 3.30
Mar 28, 2012 11:41:41 PM com.jme3.system.lwjgl.LwjglTimer
INFO: Timer resolution: 1,000 ticks per second
Mar 28, 2012 11:41:41 PM com.jme3.renderer.lwjgl.LwjglRenderer initialize
INFO: Caps: [FrameBuffer, FrameBufferMRT, FrameBufferMultisample, TextureMultisa
mple, OpenGL20, OpenGL21, OpenGL30, OpenGL31, OpenGL32, ARBprogram, GLSL100, GLS
L110, GLSL120, GLSL130, GLSL140, GLSL150, VertexTextureFetch, TextureArray, Text
ureBuffer, FloatTexture, FloatColorBuffer, FloatDepthBuffer, PackedFloatTexture,
SharedExponentTexture, PackedFloatColorBuffer, TextureCompressionLATC, NonPower
OfTwoTextures, MeshInstancing, VertexBufferArray]
Mar 28, 2012 11:41:41 PM com.jme3.asset.AssetConfig loadText
WARNING: Cannot find loader com.jme3.scene.plugins.blender.BlenderModelLoader
Mar 28, 2012 11:41:41 PM com.jme3.asset.DesktopAssetManager
INFO: DesktopAssetManager created.
Mar 28, 2012 11:41:41 PM com.jme3.renderer.Camera
INFO: Camera created (W: 640, H: 480)
Mar 28, 2012 11:41:41 PM com.jme3.renderer.Camera
INFO: Camera created (W: 640, H: 480)
Mar 28, 2012 11:41:41 PM com.jme3.input.lwjgl.LwjglMouseInput initialize
INFO: Mouse created.
Mar 28, 2012 11:41:41 PM com.jme3.input.lwjgl.LwjglKeyInput initialize
INFO: Keyboard created.
Mar 28, 2012 11:41:41 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: AudioRenderer supports 64 channels
Mar 28, 2012 11:41:41 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio effect extension version: 1.0
Mar 28, 2012 11:41:41 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio max auxilary sends: 4
Mar 28, 2012 11:41:41 PM com.jme3.material.MaterialDef
INFO: Loaded material definition: Unshaded
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Gui Node)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
Mar 28, 2012 11:41:42 PM com.jme3.scene.Node attachChild
INFO: Child (Statistics View) attached to this node (Gui Node)
Mar 28, 2012 11:41:42 PM com.jme3.bullet.BulletAppState startPhysicsOnExecutor
SEVERE: null
java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError: com.jme
3.bullet.PhysicsSpace.createPhysicsSpace(FFFFFFIZ)J
at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at com.jme3.bullet.BulletAppState.startPhysicsOnExecutor(BulletAppState.
java:86)
at com.jme3.bullet.BulletAppState.startPhysics(BulletAppState.java:126)
at com.jme3.bullet.BulletAppState.stateAttached(BulletAppState.java:158)

at com.jme3.app.state.AppStateManager.attach(AppStateManager.java:127)
at project8.Main.simpleInitApp(Main.java:122)
at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:231)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstract
Display.java:129)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.j
ava:205)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.UnsatisfiedLinkError: com.jme3.bullet.PhysicsSpace.createPh
ysicsSpace(FFFFFFIZ)J
at com.jme3.bullet.PhysicsSpace.createPhysicsSpace(Native Method)
at com.jme3.bullet.PhysicsSpace.create(PhysicsSpace.java:146)
at com.jme3.bullet.PhysicsSpace.(PhysicsSpace.java:138)
at com.jme3.bullet.BulletAppState$1.call(BulletAppState.java:80)
at com.jme3.bullet.BulletAppState$1.call(BulletAppState.java:76)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$201(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
... 1 more

Mar 28, 2012 11:41:42 PM com.jme3.app.Application handleError
SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
java.lang.NullPointerException
at com.jme3.bullet.BulletAppState.startPhysics(BulletAppState.java:133)
at com.jme3.bullet.BulletAppState.stateAttached(BulletAppState.java:158)

at com.jme3.app.state.AppStateManager.attach(AppStateManager.java:127)
at project8.Main.simpleInitApp(Main.java:122)
at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:231)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstract
Display.java:129)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.j
ava:205)
at java.lang.Thread.run(Unknown Source)

Mar 28, 2012 11:41:42 PM com.jme3.renderer.lwjgl.LwjglRenderer cleanup
INFO: Deleting objects and invalidating state
Mar 28, 2012 11:41:42 PM com.jme3.input.lwjgl.LwjglMouseInput destroy
INFO: Mouse destroyed.
Mar 28, 2012 11:41:42 PM com.jme3.input.lwjgl.LwjglKeyInput destroy
INFO: Keyboard destroyed.
Mar 28, 2012 11:41:42 PM com.jme3.system.lwjgl.LwjglAbstractDisplay deinitInThre
ad
INFO: Display destroyed.


Im completely stumped and have no idea why this is happening to me....I'm even pondering that some cosmic divinity is toying with me.

Will come one please show me the light?

It seems you’re missing a library…



Mar 28, 2012 11:41:42 PM com.jme3.bullet.BulletAppState startPhysicsOnExecutor
SEVERE: null
java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError: com.jme
3.bullet.PhysicsSpace.createPhysicsSpace(FFFFFFIZ)J
1 Like

It looks like you use the native bullet library but have no or old binary files for it. Do you use the SDK and the preset libraries?

lemme check

Yes actually i use the SDK…i checked that all the libraries are in place…they are all in the lib folder…

After building, whats the jars in dist/lib/ ? And what library sets did you add to the project?





those are the files in the dist/lib folder…i think its almost all of them…

:frowning:

Why is there android stuff there? You added the wrong libraries. Whats your setup in Project Settings → Libraries.

okay im posting the snapshot of my library setup…dunno whats missing.







I was building my game with alternate configurations as well…android, webstart, desktop… so maybe thats why they are in there?

If you want a desktop executable why are you using a JNLP?



Turn on “windows” under “desktop” and you should get a zip file containing an executable and all required libraries etc generated automatically for you.

No, you must have added jME3-android yourself. Just remove that library, you don’t need it, also not for android projects.

Ummm i dont get it…first, I didnt add any library to the project myself…

and second… I have the aforesaid zip file…extracted it and the exe runs shows config screen and then closes…there is some kind of linkage error just as posted above by me…but I dont understand why or how…

Just remove jme3-android. It doesn’t get there by itself, maybe it was one bong too many and you forgot :stuck_out_tongue: For the distribution, make sure you have converted your models to j3o and load those.

@normen said:
It doesn't get there by itself,


Don't mislead the man. You know the SDK, when it feels bored, will sometimes import libraries, assets or, and that the funniest, change some code that it doesn't feel is right. I've had that happening to me. I swear.

:roll:
1 Like

Well i tried removing the additional libraries but it didnt help any…there seems to be an internal linkage error that i cannot resolve :frowning:

The application has error output, no need to guess, just read.