How to invoke methods that in another JAR file

Hi,

My friend gave me a JAR file, and I want to use methods in the JAR file. Is there any tutorial on how to invoke functions in JAR? 

I copy CoronaProvider.gameNetwork.google.jar to the folder: android/libs, and then load and init gameNetwork in main.lua like this:

local gameNetwork = require(“gameNetwork”)

gameNetwork.init(…)

I build app using build.sh without error. But when I install the app and run it, it crash. Is there any one can tell me how to use the gameNetwork JAR file in Corona Enterprise?

help!!!

gameNetwork is a plugin right?

If yes, I think you need load it from on the native side…

take a look on this post saying how to use the open ssl plugin (I believe the process is the same, just the plugin file/name that changes).

http://forums.coronalabs.com/topic/45411-using-openssl-plugin-in-corona-enterprise/

@Renato

Hi, I knew how to use gameNetwork and I can login Google Play Game Service. I found that the version of google-play-service.jar Corona Enterprise provide is 4242000, while the latest is 5089000. When I replace with the latest one, my game cannot login Google Play Game Service. However, there is no problem with the old one. Can you tell me what’s the problem?

I copy CoronaProvider.gameNetwork.google.jar to the folder: android/libs, and then load and init gameNetwork in main.lua like this:

local gameNetwork = require(“gameNetwork”)

gameNetwork.init(…)

I build app using build.sh without error. But when I install the app and run it, it crash. Is there any one can tell me how to use the gameNetwork JAR file in Corona Enterprise?

help!!!

gameNetwork is a plugin right?

If yes, I think you need load it from on the native side…

take a look on this post saying how to use the open ssl plugin (I believe the process is the same, just the plugin file/name that changes).

http://forums.coronalabs.com/topic/45411-using-openssl-plugin-in-corona-enterprise/

@Renato

Hi, I knew how to use gameNetwork and I can login Google Play Game Service. I found that the version of google-play-service.jar Corona Enterprise provide is 4242000, while the latest is 5089000. When I replace with the latest one, my game cannot login Google Play Game Service. However, there is no problem with the old one. Can you tell me what’s the problem?