请帮帮我。 我从https://libgdx.badlogicgames.com/tools.html下载了jar文件 它是runnable-2D-particles.jar 当我运行它时,打开程序无法使用。 Nope字段渲染,所有块都是空的。
登录控制台:
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)
P.S。已安装视频驱动程序。 我该如何解决这个问题? 我使用WIN10,jdk1.8.0_51,jre1.8.0_60(如果重要的话)
答案 0 :(得分:1)
问题在于OpenGL,因为com.badlogic.gdx.backends.lwjgl.LwjglGraphics.createDisplayPixelFormat(LwjglGraphics.java:320)
LwjglGraphics
行OpenGL is not supported by the video driver
的{{1}}说 for /F "tokens=*" %%A in ('netsh wlan show interface ^| find "SSID : SSID Name"') do (
for /F "tokens=2*" %%I in ('netsh wlan show interface ^| find "Name"') do (
netsh wlan set profileorder name="SSID Name" interface="%%J" priority=1
)
)
。
因此,您应该检查您的卡是否至少支持OpenGL 1.5,如果是,请更新您的视频卡驱动程序。