Page 1 of 1

how to integrate luajava into crank software

PostPosted: Wed Oct 25, 2017 3:55 pm
by jareesh
i have downloaded the lua java, and written a sample app.
but the below code fails at luajava declaration
how to include (C:\luajava\luajava-1.1.jar) reference into crank software
.....................
function loadClassFromJar(className, jarFilename)
local lj = luajava
if(lj == nil) then
emsg("Missing Lua Java")
return
end
.....................

Re: how to integrate luajava into crank software

PostPosted: Wed Oct 25, 2017 7:56 pm
by mlove
Hi,

You don't have to include luajava, we've built it into the lua library that we ship with the Android runtime. Keep in mind that this functionality is only available with the Android runtime.

- Matt

Re: how to integrate luajava into crank software

PostPosted: Fri Nov 03, 2017 4:40 am
by jareesh
if i understood you correctly from my crank software if i create an apk file and run it in my android device it should work fine.
because when i tried to run it from the crank android emulator luajava declaration failed.

Re: how to integrate luajava into crank software

PostPosted: Fri Nov 03, 2017 7:03 am
by mlove
When you say you tried to run it on a android emulator, do you mean a android emulator provided by the android sdk?

Re: how to integrate luajava into crank software

PostPosted: Fri Nov 03, 2017 1:06 pm
by jamiev
Hi Jareesh,

You already have an open support ticket on this issue. Should we just continue the conversation there?

Thanks,

-Jamie