I made AIR Native Extension that can run java applications on Windows AIR.

The following image is a capture.

You can download the sample application on
http://code.google.com/p/anej/downloads/list

How to use
  1. Please set jvm.dll path on your pc. Maybe 64bit Java doesn’t work well. So please set 32bit jvm.dll
  2. Skip class name so far. I will explain
  3. Push start button. When you can see “java vm start” message, It means java vm start well.
  4. Push call button, then you can see current time strings on the screen.
    The time was provided by java application.

    If you access http://localhost:9991/ , then you can see current time strings on your browser.
  5. Push stop button, then java vm will be destroyed.
Inside a little

Please see the folder you installed the application.
Then you can see the following files or directory.

classes
|- log4j.xml
libs
|- *.jar

ANEj ( I named ) will call the following static method in the class you specified.
static boolean init();
static boolean start();
static boolean stop();

So If you want to try another java program,
Please change or add classes / *.jar.
( If you put some.jar on libs folder, the sample application add some.jar on the java classpath )

I will start ANEj project on Google Code, and add c code and as code in the near term.

Related Posts

One Response to “ane: Sample App for java application runs on Windows AIR”

  • David Lim より:

    Looking forward to seeing how you managed to accomplish this.

Leave a Reply

Spam protection by WP Captcha-Free

RSS
Add to Google
2012年3月
« 2月   7月 »
 123
45678910
11121314151617
18192021222324
25262728293031