libgdx 0.9.8,无法运行Particle Editor

时间:2013-08-30 13:08:33

标签: java android opengl-es libgdx

我已经下载了libgdx 0.9.8并试图从gdx-tools JAR(https://code.google.com/p/libgdx/wiki/ParticleEditor)运行粒子编辑器:

java -cp gdx.jar;gdx-natives.jar;gdx-backend-lwjgl.jar;gdx-backend-lwjgl-natives.jar;extensions\gdx-tools\gdx-tools.jar com.badlogic.gdx.tools.particleeditor.ParticleEditor

但我不断收到以下错误:

java -cp gdx.jar;gdx-natives.jar;gdx-backend-lwjgl.jar;gdx-backend
-lwjgl-natives.jar;extensions\gdx-tools\gdx-tools.jar com.badlogic.gdx.tools.par
ticleeditor.ParticleEditor
com.badlogic.gdx.utils.GdxRuntimeException: File not found: default.fnt (Interna
l)
        at com.badlogic.gdx.files.FileHandle.read(FileHandle.java:127)
        at com.badlogic.gdx.graphics.g2d.BitmapFont$BitmapFontData.<init>(Bitmap
Font.java:711)
        at com.badlogic.gdx.graphics.g2d.BitmapFont.<init>(BitmapFont.java:114)
        at com.badlogic.gdx.graphics.g2d.BitmapFont.<init>(BitmapFont.java:106)
        at com.badlogic.gdx.tools.particleeditor.ParticleEditor$Renderer.create(
ParticleEditor.java:326)
        at com.badlogic.gdx.backends.lwjgl.LwjglCanvas.create(LwjglCanvas.java:1
86)
        at com.badlogic.gdx.backends.lwjgl.LwjglCanvas$1.addNotify(LwjglCanvas.j
ava:90)
        at java.awt.Container.addNotify(Container.java:2576)
        at javax.swing.JComponent.addNotify(JComponent.java:4693)
        at java.awt.Container.addNotify(Container.java:2576)
        at javax.swing.JComponent.addNotify(JComponent.java:4693)
        at java.awt.Container.addNotify(Container.java:2576)
        at javax.swing.JComponent.addNotify(JComponent.java:4693)
        at java.awt.Container.addNotify(Container.java:2576)
        at javax.swing.JComponent.addNotify(JComponent.java:4693)
        at java.awt.Container.addNotify(Container.java:2576)
        at javax.swing.JComponent.addNotify(JComponent.java:4693)
        at java.awt.Container.addNotify(Container.java:2576)
        at javax.swing.JComponent.addNotify(JComponent.java:4693)
        at javax.swing.JRootPane.addNotify(JRootPane.java:738)
        at java.awt.Container.addNotify(Container.java:2576)
        at java.awt.Window.addNotify(Window.java:664)
        at java.awt.Frame.addNotify(Frame.java:470)
        at java.awt.Window.show(Window.java:860)
        at java.awt.Component.show(Component.java:1591)
        at java.awt.Component.setVisible(Component.java:1543)
        at java.awt.Window.setVisible(Window.java:843)

我的错误在哪里以及如何解决?

1 个答案:

答案 0 :(得分:1)

似乎jar文件缺少以下资产内容: https://github.com/libgdx/libgdx/tree/master/extensions/gdx-tools/assets

这个问题似乎在夜间构建中得到修复。如果你仍然需要0.9.8,你可以解开gdx-tools.jar,下载并将所有文件复制到jar文件的根文件夹下并重新装罐。