0

ファイルからテクスチャをロードするコードを書きました。Windows マシンでは問題なく動作しますが、OSX で作業するために自宅に送ると、クラッシュし続けます。これは簡単なコードです:

String path = System.getProperty("user.dir") + File.separator + "textures"
            + File.separator;
File file = new File(path + "steel.jpg");

try {
    shipTexture = TextureIO.newTexture(file , true);
} catch {GLException e) {
} catch {IOException e) {
}

次の例外が発生します: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/gluegen/runtime/DynamicLookupHelper

テクスチャの初期段階で、

原因: java.lang.ClassNotFoundException: com.sun.gluegen.runtime.DynamicLookupHelper at java.net.URLClassLoader$1.run

なぜこれが機能しないのですか?

4

1 に答える 1