E.g. when running HelloJME3.java I get exceptions like this one?
[java]INFO: Child (Box) attached to this node (Root Node)
OGL: Throttling update loop.
09.02.2012 14:15:14 com.jme3.app.Application handleError
SCHWERWIEGEND: Uncaught exception thrown in Thread[AWT-EventQueue-0,6,main]
java.lang.NullPointerException
at com.jme3.input.awt.AwtMouseInput$1.run(AwtMouseInput.java:152)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:603)
at java.awt.EventQueue$1.run(EventQueue.java:601)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:612)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
09.02.2012 14:15:14 com.jme3.renderer.lwjgl.LwjglRenderer updateUniformLocation
INFO: Uniform m_VertexColor is not declared in shader [ShaderSource[name=Common/MatDefs/Misc/Unshaded.vert, defines, type=Vertex], ShaderSource[name=Common/MatDefs/Misc/Unshaded.frag, defines, type=Fragment]].[/java]
How do you run them? What OS do you run them on? Where did you get the jars from? From when are the sources?
I set up a jme3 project in eclipse from svn (rev. 9139) and run the hello’s also from eclipse…
OS: Windows 7 x64
what if you use the stable branch? (branches/3.0beta)
Edit: No, wait… Did you add all jar files to the classpath? Like jME3-desktop.jar etc?
Lets start simple, does it work in the JMP plattform ? if yes you do something wrong in eclipse
Till now I set up the project in NetBeans 7.0.1, getting the same error…
Also built the jars with “ant jar” and created a new eclipse project referencing all jars and containing only the HelloJME3 code, also same exception…
Edit: I’m using Java 7 update 2
Ok, so it doesn’t working in Netbeans either.
…but back to the original question, does it work in JMP?
Ok I installed the SDK (http://hub.jmonkeyengine.org/downloads/?did=1) created BasicGame and ran the mygame.Main that is there by default, get the same error…
[java]Feb 09, 2012 3:40:09 PM com.jme3.scene.Node attachChild
Information: Child (BitmapFont) attached to this node (null)
Feb 09, 2012 3:40:09 PM com.jme3.scene.Node attachChild
Information: Child (null) attached to this node (Statistics View)
OGL: Throttling update loop.
Feb 09, 2012 3:40:09 PM com.jme3.scene.Node attachChild
Information: Child (Statistics View) attached to this node (Gui Node)
Feb 09, 2012 3:40:09 PM com.jme3.scene.Node attachChild
Information: Child (Box) attached to this node (Root Node)
Feb 09, 2012 3:40:09 PM com.jme3.app.Application handleError
Schwerwiegend: Uncaught exception thrown in Thread[AWT-EventQueue-0,6,main]
java.lang.NullPointerException
at com.jme3.input.awt.AwtMouseInput$1.run(AwtMouseInput.java:162)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
at java.awt.EventQueue.access$000(EventQueue.java:101)
at java.awt.EventQueue$3.run(EventQueue.java:666)
at java.awt.EventQueue$3.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Feb 09, 2012 3:40:09 PM com.jme3.renderer.lwjgl.LwjglRenderer updateUniformLocation
Information: Uniform m_VertexColor is not declared in shader [ShaderSource[name=Common/MatDefs/Misc/Unshaded.vert, defines, type=Vertex], ShaderSource[name=Common/MatDefs/Misc/Unshaded.frag, defines, type=Fragment]].
Feb 09, 2012 3:40:09 PM com.jme3.renderer.lwjgl.LwjglRenderer cleanup
Information: Deleting objects and invalidating state
Feb 09, 2012 3:40:09 PM com.jme3.system.lwjgl.LwjglOffscreenBuffer deinitInThread
Information: Offscreen buffer destroyed.
Java Result: -1073741819[/java]
…uh without installing any updates? Then its a security issue between java and your OS.
Remove the jMonkeyEngine3.jar, it contains the tests as well (and only the tests).
No updates installed. What do I do now? (@normen removed the JMonkeyEngine.jar)
When I add this no exception occurrs?
[java]app.setShowSettings(false);[/java]
@douter said:
When I add this no exception occurrs?
[java]app.setShowSettings(false);[/java]
Solved my problem for quick and dirty testing ;).