So I’m learning java right now and built a GUI which functions how I want. But I need a way I can call a lua script within my java script. I’m pretty good with lua and have used the code below in lua to launch another lua script externally through the cmd.
os.execute(‘start “Data save” cmd /k “cd ‘ .. path .. ‘ & ‘ .. r_path .. ‘bin\luae.exe testscript.lua & exit “‘)
Me being new to java was researching and was getting really confused. But the reason behind this is I’m making an external dialog for a game that only reads lua code. So the plan is to get the information from the dialog and execute the lua file with the new dialog info then generate a new lua file with this information with :write() in lua.
I just need to be able to execute a lua file within java with arguments that’s it.