Ashish Pancholi
Ashish Pancholi

Reputation: 4659

How to build native app bundles for Windows, Linux & Mac in a single build?

I am running my build on Windows 8 O.S. , 64 bit machine. I have JavaFx2.0 and Java 1.7.0_09 installed on my system. I am able to build a 64 bit window executable that launches my JavaFx application as a self-contained Javafx application.

Now I want to deliver native app bundles on Windows, Linux and Mac without build my project on all three platforms i.e I would like to achieve these set of bundles in a single build that I suppose to run on by Windows 8 O.S. 64 bit machine.

I am also okay if I can do it by distributing a single Application JAR file as .zip for MAC and Linux. But what I want is that JAR should work on there respective platform.

When I used to run a single application Jar on MAC using command

java -jar application.jar

It always shows a dialog "The application require a newer version of Java Run-time" with download link. Even I have downloaded and successfully installed it on my MAC machine but it still shows me the same window.

I don't want the users to experience such difficulties while running my JavaFX application on MAC and Linux.

What I need to ship more with the Application JAR so the users can run my JavaFx application on MAC and Linux without any hassle?

Upvotes: 1

Views: 1070

Answers (1)

Shiv Kumar Ganesh
Shiv Kumar Ganesh

Reputation: 3825

I guess you are making the JavaFX Solution in a 64bit machine and on the other hand you must be having all the SDK and runtime for 64bit version. The problem is that the application made using 64bit version of SKD would required 64 bit OS to render itself. So the bottom line is, is yout mac and linux PC have 64bit version of OS and JavaFX Runtime as well as Java7.X all 64 bit? If not then you must update your runtime to 64bit version or make your application in a 32bit version of SDK. One quick suggestion. If your mac or linux is 64bit(I dont have much idea about mac) then just install a browser i.e. 64bit version and runtimes and try out. I was having the same problem and that got fixed. Let me know if my answer caused any confusion.

Upvotes: 1

Related Questions