Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Koneki » [LDT1.0] link a dynamic library , Help !
[LDT1.0] link a dynamic library , Help ! [message #1416968] Sat, 10 August 2013 18:03
Eclipse UserFriend
I installed Lua for windows & iup module , and test iup::dialog success.
I tested this code in LDT , but only red word printed in console

Then I use LDT 1.0 , how to config and expand embedded Lua Execution Envirment ,
making it support more rocks or module

[the tips]
Exception in thread "main" com.naef.jnlua.LuaRuntimeException: G:\__proj\lua\lua5.1\src\main.lua:6: module 'iuplua' not found:
no field package.preload['iuplua']
no file 'E:\Lib\Lua51\'
no file '.\iuplua.dll'
no file '.\iuplua51.dll'
no file 'E:\Lib\java\jdk1.7.0_21\jre\bin\iuplua.dll'
no file 'E:\Lib\java\jdk1.7.0_21\jre\bin\iuplua51.dll'
no file 'E:\Lib\java\jdk1.7.0_21\jre\bin\clibs\iuplua.dll'
no file 'E:\Lib\java\jdk1.7.0_21\jre\bin\clibs\iuplua51.dll'
no file 'E:\Lib\java\jdk1.7.0_21\jre\bin\loadall.dll'
no file 'E:\Lib\java\jdk1.7.0_21\jre\bin\clibs\loadall.dll'
at com.naef.jnlua.LuaState.lua_pcall(Native Method)

[the Example ]

-- Example 37 -- External Libraries.
-- Lua has support for external modules using the 'require' function
-- INFO: A dialog will popup but it could get hidden behind the console.

require( "iuplua" )
ml = iup.multiline
value="Quit this multiline edit app to continue Tutorial!",
dlg = iup.dialog{ml ; title="IupMultiline" , size="QUARTERxQUARTER" ,}
print( "Exit GUI app to continue!")

-------- Output ------

--Exit GUI app to continue!

--Press 'Enter' key for next example
Previous Topic:Could not initialize class com.naef.jnlua.LuaState
Next Topic:Koneki LDT 1.0 (on Windows): Debugging not working
Goto Forum:

Current Time: Wed Nov 14 04:49:58 GMT 2018

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

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

Back to the top