Pulled from http://rosettacode.org/
-- just executing the command
-- to execute and capture the output, use io.popen
local f = io.popen("ls") -- store the output in a "file"
print( f:read("*a") ) -- print out the "file"'s content
So, you create a LUA script that then calls os.execute to execute the java using whatever command line is appropriate.
Retrieving data ...