Libgdx之旅-----LuaTutorial


    <span style="font-family: courier new,courier; font-size: small;">?? 中午下载了LuaTutorial导入到eclipse中跑了一把,报下面这个错误(详细的错误日志在文章的最后面),提示luajava不在java.library.path中。</span>


<span style="font-family: courier new,courier; font-size: small;">? 用System.out.println(System.getProperty("java.library.path")); </span>


<span style="font-family: courier new,courier; font-size: small;">打印出java.library.path,实际上是D:\Android4workPlace\LuaTutorial\lib 即工程的lib目录,明明有libluajava.dll呀!</span>


?

<span style="font-family: courier new,courier; font-size: small;">?? 折腾了一圈,没有办法,将System.loadLibrary(LUAJAVA_LIB);改为://System.load("D:/Android4workPlace/LuaTutorial/lib/libluajava.dll"); 后临时先跑起来了。</span>


[size=small;]??<span style="font-family: courier new,courier;">??? <br>[/size]
</span>


<span style="font-family: courier new,courier; color: #ff0000; font-size: small;"><br></span>


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


 

你可能感兴趣的:(java,工作)