libGDX project can't load library liblwjgl.dylib

后端 未结 2 1705
心在旅途
心在旅途 2021-02-13 22:05

A new libGDX project can\'t load the library liblwjgl.dylib when running the desktop project.

Exception in thread \"main\" java.lang.UnsatisfiedLinkError: Can\'t         


        
相关标签:
2条回答
  • 2021-02-13 22:35

    Maybe you should try including the LWJGL .jar library into the source path, or the "core" directory.

    0 讨论(0)
  • 2021-02-13 22:48

    I believe this is a compatibility issue between Java 7 and LWJGL. For some reason, this also only affects OS X, as it works just fine on both my Windows and Ubuntu machines, but not my Mac. Your options to work with until the problem is fixed:

    • Debug on Android / Robovm
    • Code on another machine until the problem is fixed

    Considering you can use an Android emulator, I think Android testing is the best option.

    0 讨论(0)
提交回复
热议问题