2016-03-07 142 views
0

请帮助我。 我从https://libgdx.badlogicgames.com/tools.html下载了jar文件 它是可运行的-D-particles.jar 当我运行它时,打开程序不可用。 Nope字段渲染,并且所有块都是空的。无法启动LibGDX工具2D粒子编辑器

登录控制台:

C:\Users\matha>java -jar C:\runnable-2D-particles.jar 
java.lang.NullPointerException 
     at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.createDisplayPixelFormat(LwjglGraphics.java:320) 
     at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.setupDisplay(LwjglGraphics.java:214) 
     at com.badlogic.gdx.backends.lwjgl.LwjglCanvas.create(LwjglCanvas.java:190) 
     at com.badlogic.gdx.backends.lwjgl.LwjglCanvas$1.addNotify(LwjglCanvas.java:90) 
     at java.awt.Container.addNotify(Unknown Source) 
     at javax.swing.JComponent.addNotify(Unknown Source) 
     at java.awt.Container.addNotify(Unknown Source) 
     at javax.swing.JComponent.addNotify(Unknown Source) 
     at java.awt.Container.addNotify(Unknown Source) 
     at javax.swing.JComponent.addNotify(Unknown Source) 
     at java.awt.Container.addNotify(Unknown Source) 
     at javax.swing.JComponent.addNotify(Unknown Source) 
     at java.awt.Container.addNotify(Unknown Source) 
     at javax.swing.JComponent.addNotify(Unknown Source) 
     at java.awt.Container.addNotify(Unknown Source) 
     at javax.swing.JComponent.addNotify(Unknown Source) 
     at javax.swing.JRootPane.addNotify(Unknown Source) 
     at java.awt.Container.addNotify(Unknown Source) 
     at java.awt.Window.addNotify(Unknown Source) 
     at java.awt.Frame.addNotify(Unknown Source) 
     at java.awt.Window.show(Unknown Source) 
     at java.awt.Component.show(Unknown Source) 
     at java.awt.Component.setVisible(Unknown Source) 
     at java.awt.Window.setVisible(Unknown Source) 
     at com.badlogic.gdx.tools.particleeditor.ParticleEditor.<init>(ParticleEditor.java:92) 
     at com.badlogic.gdx.tools.particleeditor.ParticleEditor$6.run(ParticleEditor.java:532) 
     at java.awt.event.InvocationEvent.dispatch(Unknown Source) 
     at java.awt.EventQueue.dispatchEventImpl(Unknown Source) 
     at java.awt.EventQueue.access$500(Unknown Source) 
     at java.awt.EventQueue$3.run(Unknown Source) 
     at java.awt.EventQueue$3.run(Unknown Source) 
     at java.security.AccessController.doPrivileged(Native Method) 
     at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) 
     at java.awt.EventQueue.dispatchEvent(Unknown Source) 
     at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) 
     at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) 
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) 
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source) 
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source) 
     at java.awt.EventDispatchThread.run(Unknown Source) 

附:安装了视频驱动程序。 我该如何解决这个问题? 我用WIN10,jdk1.8.0_51,jre1.8.0_60(如果它重要的事实)

+0

你如何启动它?刚刚在我的机器上用WIN10测试过,那个jar工作得很好。 – Enigo

+0

@Enigo我通过双击和控制台启动它。两种变体的结果都一样。 –

+0

好吧,看来这个问题与OpenGL有关,因为''com.badlogic.gdx.backends.lwjgl.LwjglGraphics.createDisplayPixelFormat(LwjglGraphics.java:320)'LwjglGraphics'中的第320行表示'OpenGL不支持视频驱动程序'。所以你应该更新你的视频卡驱动程序。 – Enigo

回答

1

问题是OpenGL的,因为com.badlogic.gdx.backends.lwjgl.LwjglGraphics.createDisplayPixelFormat(LwjglGrap‌​hics.java:320)线LwjglGraphics 320说OpenGL is not supported by the video driver
所以你应该检查你的卡是否至少支持OpenGL 1.5,如果是的话更新你的视频卡驱动。