Can't load libgdx desktop app on mac osx

半腔热情 提交于 2019-11-29 14:46:06

According to this http://lwjgl.org/forum/index.php/topic,4711.0.html problem is with compatibility of JRE 7 update 6 with Lwjgl.

Problem seems to be fixed in a newer release of the library. I'm not sure if libgdx is updaetd accordingly but you can try to put the new version in your libs folder.

This problem got sorted with the latest nightly build from libgdx, after doing this I got stucked into another problem, the method IntersectRectangles was missing in that release.. So i had to go back to the latest stable version and got that working, but... the problem mentioned above appeared again. So I´m going to stick to the latest stable version so I can deploy on my android device with the code working...

So temporal solution: to test while you develop use the nightly build, if you don't need the method above all should be fine(I wonder if there are more methods missing I didn´t have to use..)

Matteus Magnusson

If you still need to use a stable or old release of libgdx. You might want to try to install jdk 1.6 (which I have done) in addition to jdk 1.7.

1. Download JDK1.6
Use this question to download jdk 1.6: jdk 6 on mountain lion

2. Add JRE home
In eclipse, go to preferences -> Java -> Installed JRE's and add jdk 1.6's home (just as your 1.7 version should be).

3. Set run configuration to use 1.6
Go to Run -> Run configurations -> YOUR CONFIGURATION -> JRE. Select 1.6 as the alternative JRE. :)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!