jnlua: java from lua?

so I notice that theres a libjnlua5.1.so tucked away in the lib folder of the apk, but no reference to it in the api docs. From what I read jnlua gives access to java from lua.

great! I thought. it would be so useful to be able to access some of the android java apis as corona has a very firm , dare I say nannying, stance of what it integrates with and what it doesnt. err nope computer sdk says no.

Yes its great to have an API that hides the underlying machine, but actually being restrictive is a bit of a turn-off. Yes I know it goes against the platform neutral stance, but do I care if my app is android only?

So maybe this should go under feature requests, but corona should have a plugin architecture that allows 3rd party libraries to be integrated. I’d put jnlua high on the list if it isnt there allready.

Cheers

[import]uid: 74338 topic_id: 27382 reply_id: 327382[/import]

I think that it’s already possible to integrate 3rd party libraries with the new enterprise version of Corona. I don’t know how much a license of enterprise actually costs but you can be sure it’s more expensive than the standard Pro version.

BTW, I think JNLua is the opposite of what you say, it’s more of a Virtual Machine for Lua written in Java. It’s probably the interface used in Corona to allow Lua code to be executed on Android. [import]uid: 61899 topic_id: 27382 reply_id: 112473[/import]

hmm doesnt make it clear - wonder if there is a java object when corona is running on android.

“Two-way integration. With JNLua, you can access Java from Lua and Lua from Java. From Lua, JNLua provides full Java object access with intuitive syntax and the abilitiy to implement Java interfaces in Lua. From Java, JNLua provides full Lua access including the ability to implement Lua functions in Java. The integration works transparently in both directions and on each end conforms to the common principles of the respective platform.” [import]uid: 74338 topic_id: 27382 reply_id: 113716[/import]