1

我已经下载了 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)

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

4

1 回答 1

1

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

这个问题似乎在夜间构建中得到解决。万一你还需要 0.9.8,你可以解压 gdx-tools.jar,下载并复制所有文件到 jar 文件的根文件夹下,然后重新 jar。

于 2013-09-04T15:47:53.697 回答