Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Lua Development Tools » How to use LuaFileSystem in LDT?
How to use LuaFileSystem in LDT? [message #990134] Tue, 11 December 2012 03:38 Go to next message
Zeng Yu is currently offline Zeng YuFriend
Messages: 2
Registered: December 2012
Junior Member
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 09:14 Go to previous messageGo to next message
Marc Aubry is currently offline Marc AubryFriend
Messages: 83
Registered: August 2012
Member
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 12:53 Go to previous message
Benjamin Cabé is currently offline Benjamin CabéFriend
Messages: 155
Registered: July 2009
Location: Toulouse, France
Senior Member

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: Fri Nov 28 22:00:35 GMT 2014

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

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