how to integrate luajava into crank software

All things Storyboard for the Android platform.

Moderator: jamiev

how to integrate luajava into crank software

Postby jareesh » Wed Oct 25, 2017 3:55 pm

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
.....................
jareesh
 
Posts: 3
Joined: Wed Oct 25, 2017 3:49 pm

Re: how to integrate luajava into crank software

Postby mlove » Wed Oct 25, 2017 7:56 pm

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
mlove
 
Posts: 22
Joined: Tue Apr 17, 2012 1:26 pm

Re: how to integrate luajava into crank software

Postby jareesh » Fri Nov 03, 2017 4:40 am

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.
jareesh
 
Posts: 3
Joined: Wed Oct 25, 2017 3:49 pm

Re: how to integrate luajava into crank software

Postby mlove » Fri Nov 03, 2017 7:03 am

When you say you tried to run it on a android emulator, do you mean a android emulator provided by the android sdk?
mlove
 
Posts: 22
Joined: Tue Apr 17, 2012 1:26 pm

Re: how to integrate luajava into crank software

Postby jamiev » Fri Nov 03, 2017 1:06 pm

Hi Jareesh,

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

Thanks,

-Jamie
User avatar
jamiev
 
Posts: 56
Joined: Wed Nov 04, 2009 2:14 pm


Return to Storyboard for Android

Who is online

Users browsing this forum: No registered users and 1 guest

cron