首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

Libgdx之旅-LuaTutorial

2012-06-27 
Libgdx之旅-----LuaTutorial?? 中午下载了LuaTutorial导入到eclipse中跑了一把,报下面这个错误(详细的错误

Libgdx之旅-----LuaTutorial

?? 中午下载了LuaTutorial导入到eclipse中跑了一把,报下面这个错误(详细的错误日志在文章的最后面),提示luajava不在java.library.path中。

? 用System.out.println(System.getProperty("java.library.path"));

打印出java.library.path,实际上是D:\Android4workPlace\LuaTutorial\lib 即工程的lib目录,明明有libluajava.dll呀!

?

?? 折腾了一圈,没有办法,将System.loadLibrary(LUAJAVA_LIB);改为://System.load("D:/Android4workPlace/LuaTutorial/lib/libluajava.dll");

后临时先跑起来了。

?????


Exception in thread "Thread-3" javax.media.opengl.GLException: java.lang.UnsatisfiedLinkError: no luajava in java.library.path
??? at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:271)
??? at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:410)
??? at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)
??? at com.badlogic.gdx.backends.jogl.JoglAnimator.display(JoglAnimator.java:137)
??? at com.badlogic.gdx.backends.jogl.JoglAnimator$MainLoop.run(JoglAnimator.java:174)
??? at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.UnsatisfiedLinkError: no luajava in java.library.path
??? at java.lang.ClassLoader.loadLibrary(Unknown Source)
??? at java.lang.Runtime.loadLibrary0(Unknown Source)
??? at java.lang.System.loadLibrary(Unknown Source)
??? at org.keplerproject.luajava.LuaState.<clinit>(LuaState.java:92)
??? at org.keplerproject.luajava.LuaStateFactory.newLuaState(LuaStateFactory.java:59)
??? at tutorial.LoadScript.<init>(LoadScript.java:20)
??? at tutorial.game.create(game.java:24)
??? at com.badlogic.gdx.backends.jogl.JoglGraphics.init(JoglGraphics.java:87)
??? at com.sun.opengl.impl.GLDrawableHelper.init(GLDrawableHelper.java:72)
??? at javax.media.opengl.GLCanvas$InitAction.run(GLCanvas.java:418)
??? at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:189)
??? at javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:452)
??? at java.awt.event.InvocationEvent.dispatch(Unknown Source)
??? at java.awt.EventQueue.dispatchEvent(Unknown Source)
??? at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
??? at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
??? at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
??? at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
??? at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
??? at java.awt.EventDispatchThread.run(Unknown Source)

对不起 是了一下 不管用

热点排行