Skip to main content



      Home
Home » Archived » Lua Development Tools » How to use LuaFileSystem in LDT?
How to use LuaFileSystem in LDT? [message #990134] Mon, 10 December 2012 22:38 Go to next message
Eclipse UserFriend
I have installed LFS, but it seems that i can't use it in LDT.
here is the debug message

Exception in thread "main" com.naef.jnlua.LuaRuntimeException: ...pse for Lua\workspace\Dir Tree Iterator\src\main.lua:1: module 'lfs' not found:
no field package.preload['lfs']
no file 'C:\eclipse for Lua\workspace\Dir Tree Iterator\src\lfs.lua'
no file 'C:\eclipse for Lua\workspace\Dir Tree Iterator\src\lfs\init.lua'
no file 'C:\eclipse for Lua\workspace\Dir Tree Iterator\src\lfs.luac'
no file 'C:\eclipse for Lua\workspace\Dir Tree Iterator\src\lfs\init.luac'
no file '.\lfs.lua'
no file 'C:\Program Files\Java\jre7\bin\lua\lfs.lua'
no file 'C:\Program Files\Java\jre7\bin\lua\lfs\init.lua'
no file 'C:\Program Files\Java\jre7\bin\lfs.lua'
no file 'C:\Program Files\Java\jre7\bin\lfs\init.lua'
no file 'C:\Program Files (x86)\Lua\5.1\lua\lfs.luac'
no file '.\lfs.dll'
no file '.\lfs51.dll'
no file 'C:\Program Files\Java\jre7\bin\lfs.dll'
no file 'C:\Program Files\Java\jre7\bin\lfs51.dll'
no file 'C:\Program Files\Java\jre7\bin\clibs\lfs.dll'
no file 'C:\Program Files\Java\jre7\bin\clibs\lfs51.dll'
no file 'C:\Program Files\Java\jre7\bin\loadall.dll'
no file 'C:\Program Files\Java\jre7\bin\clibs\loadall.dll'
at com.naef.jnlua.LuaState.lua_pcall(Native Method)
at com.naef.jnlua.LuaState.call(LuaState.java:555)
at org.eclipse.koneki.ldt.support.lua51.internal.interpreter.JNLuaLauncher.run(JNLuaLauncher.java:122)
at org.eclipse.koneki.ldt.support.lua51.internal.interpreter.JNLuaLauncher.main(JNLuaLauncher.java:137)

Anyone kowns how to configure LDT for lfs?
Re: How to use LuaFileSystem in LDT? [message #990385 is a reply to message #990134] Wed, 12 December 2012 04:14 Go to previous messageGo to next message
Eclipse UserFriend
Hi Zeng,

The last line of your debug message indicate that your are using the LDT shipped lua interpreter called JNLua instead of the one installed on your computer with lfs installed.

So you have two choices:
- Use the shipped JNLua interpreter configure it's LUA_PATH and LUA_CPATH environment variables to use the installed lfs libraries.
- Add the lua interpreter installed on your computer in LDT and use it to launch your scripts.

To do this, please refer to the LDT user guide Managing Interpreters part :
http://wiki.eclipse.org/Koneki/LDT/Developer_Area/User_Guides/User_Guide_0.9#Managing_Interpreters
See also the launch the Configuring debug sessions chapter:
http://wiki.eclipse.org/Koneki/LDT/Developer_Area/User_Guides/User_Guide_0.9#Configuring_debug_sessions

Marc
Re: How to use LuaFileSystem in LDT? [message #997027 is a reply to message #990385] Thu, 03 January 2013 07:53 Go to previous message
Eclipse UserFriend
Hello Zeng,
Have you been able to solve your problem?

Cheers!
Previous Topic:Can I debug lua at android
Next Topic:Several questions about LDT
Goto Forum:
  


Current Time: Wed Mar 19 19:52:05 EDT 2025

Powered by FUDForum. Page generated in 0.03635 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top