neelamudr 0 Newbie Poster

Hi,

I made a java application to distribute on Mac osx. I created folder .app structure according to mac application.

The application is being successfully launched by double click on Myapplication.app on Mac Osx which contains Java5.

Its not launching the application on Mac with Java6. I searched for the problem then I found that the current shipped JavaApplicationStub file is for Java5. I copied the JavaApplicationStub file from the Mac (which have java6) from /System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub" and replace it in my application bundle. Now application is being launched in java6 with double click.

I am looking for a solution which works on all Mac with different jre versions. I search for this.
http://www.informagen.com/JarBundler/StubFile.html

here I found, that we can create symbolic link.... I have no idea about this how to do that. I am not using any jarbundler to bundle my application.


I can not ask my clients to take update for Mac. I am distributing my application which is supported on Java5. Although my application is perfectly running on Mac (with jre6), if I run the jar directly. But I want my application be be launched by double click on Myapplication.app.


How can I get my application working on all Macs with different version of jre ?