renatosc / jnlua

Automatically exported from code.google.com/p/jnlua
0 stars 0 forks source link

Where is the Java Module? #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
if I run this in the lua-commandline:

System = java.require("java.lang.System")

I get this error:

stdin:1: attempt to index global `java' (a nil value)
stack traceback:
    stdin:1: in main chunk
    [C]: ?

Where is the Java Module?

greeting pitti

Original issue reported on code.google.com by p1tt1pl4...@gmail.com on 13 Dec 2013 at 1:43

GoogleCodeExporter commented 9 years ago
Did you load the Java module by invoking LuaState.openLib(Library.JAVA) or 
LuaState.openLibs() on the LuaState object?

Please note that there is a general discussion list for usage questions:
https://groups.google.com/forum/#!forum/jnlua-discuss

Original comment by an...@naef.com on 15 Dec 2013 at 6:52