Calling a Java class from an Adobe Air application

I need to develop a simple desktop application. I need to call for him. I think I should have an Adobe Air interface that will call my Jar.

Is it possible in the air. If yes, then I'm going to learn Adobe Air, otherwise I'll develop it in Swing.

Thank.

+2


source to share


4 answers


Air won't know what to do with the jar file. If it were allowed, Air could call java and pass the jar to it (assuming java was installed), but I don't believe AIR applications can make system calls.



You're probably best off just sticking with Java, or replacing the jar with a flash library that does the exact same thing. You really don't want to mix technologies if you can avoid it.

+1


source


I appreciate this is an old question, but you don't need to use Merapi.

Native processes are supported from Air 2.0 onwards.



Refer to the API docs for this video which demonstrates starting tomcat by calling a jar. What Tahir Akram is asking is definitely possible now (although I don't think it was possible in 2009).

+3


source


I am new to AIR and I also looked at how to integrate AIR and JAVA, I found this site that might help

http://merapiproject.net/

Merapi is a technology that can be used as a messaging bridge between applications that run in Adobe Flash Player or Adobe AIR and applications written in Java.

+1


source


You can of course call your Jar files using NativeProcess. Like Python, you need to create frozen binaries of your jar files into an .exe file. I think JSMooth is a Java executable wrapper that converts jar to exe.

In fact, JSmooth will look for the JVM and if not installed, it will redirect the user to download the download.

The good thing with Python, you can link the python program to your .py files using py2exe.

0


source







All Articles