Reputation: 25028
I am reading a book to learn JavaFX
(self-studying) and the book says the following about deployment:
A
JavaFX application can currently be packaged and deployed for execution in four
different ways:
1. As a desktop application delivered and installed using Java Web Start
2. As an applet delivered by a web browser and executed in the Java plug-in
3. As a TV application for a device that supports the JavaFX TV profile
4. As a mobile application delivered to a cell phone or other mobile device
I am not a professional developer however my strategy always was to create no-install softwares that you can run even from a flash drive you carry in your pocket (using .jar files).
Now, I would like to ask if the same is possible in JavaFX
Upvotes: 0
Views: 491
Reputation: 565
Oracle documentation details the different modes of deployment of javafx http://docs.oracle.com/javafx/2/deployment/jfxpub-deployment.htm
Upvotes: 1
Reputation: 159566
create no-install softwares that you can run even from a flash drive you carry in your pocket (using .jar files).
Yes, you can place your JavaFX application on a flash drive, plug the flash drive into a computer and run the JavaFX application stored on the flash drive without installing any additional software on the computer.
Place a Java Runtime Environment on the flash drive alongside your application's jar file.
Let's say the flash drive is drive X:, your app is on the root of the x drive and the Java runtime is stored in a directory /jre on the drive, then your app may be run on a Windows machine by running the following command at the command prompt.
x:\jre\bin\java.exe -jar x:\yourapp.jar
The book you are reading appears dated in it's information (e.g. the JavaFX TV profile was dropped years ago along with support for JavaFX 1.x). I advise not to use JavaFX 1.x, instead learn and use JavaFX 2.x+.
Upvotes: 2