|
2 | 2 |
|
3 | 3 | JavaFX 12 samples to run with different options and build tools. |
4 | 4 |
|
| 5 | +Download an appropriate [JDK 12](https://jdk.java.net/12/) for your operating system. Make sure `JAVA_HOME` |
| 6 | +is properly set to the Java 12 installation directory. |
| 7 | + |
5 | 8 | ## Modular - Maven |
6 | 9 |
|
7 | 10 | `hellofx` sample modular project to run with Maven |
8 | 11 |
|
9 | | -Download [JavaFX jmods](https://gluonhq.com/products/javafx/) for your operating |
10 | | -system and unzip to a desired location. |
11 | | - |
12 | 12 | ### Linux / Mac |
13 | 13 |
|
14 | 14 | If you run on Linux or Mac, follow these steps: |
15 | 15 |
|
16 | 16 | cd CommandLine/Modular/Maven/hellofx |
17 | | - mvn clean package javafx:run |
| 17 | + mvn clean javafx:run |
18 | 18 |
|
19 | | -To create custom JRE: |
| 19 | +To create and run a custom JRE: |
20 | 20 |
|
21 | | - export PATH_TO_FX_MODS=path/to/javafx-jmods-12 |
22 | | - $JAVA_HOME/bin/jlink --module-path $PATH_TO_FX_MODS:target/hellofx-1.0-SNAPSHOT.jar --add-modules hellofx --output jre |
23 | | - jre/bin/java -m hellofx/org.openjfx.MainApp |
| 21 | + cd CommandLine/Modular/Maven/hellofx |
| 22 | + mvn clean javafx:jlink |
| 23 | + target/hellofx/bin/launcher |
24 | 24 |
|
25 | 25 | ### Windows |
26 | 26 |
|
27 | 27 | If you run on Windows, follow these steps: |
28 | 28 |
|
29 | 29 | cd CommandLine\Modular\Maven\hellofx |
30 | | - mvn clean package javafx:run |
| 30 | + mvn clean javafx:run |
31 | 31 |
|
32 | | -To create custom JRE: |
| 32 | +To create and run a custom JRE: |
33 | 33 |
|
34 | | - set PATH_TO_FX_MODS="path\to\javafx-jmods-12" |
35 | | - jlink --module-path "%PATH_TO_FX_MODS%;target\hellofx-1.0-SNAPSHOT.jar" --add-modules hellofx --output jre |
36 | | - jre\bin\java -m hellofx/org.openjfx.MainApp |
| 34 | + cd CommandLine/Modular/Maven/hellofx |
| 35 | + mvn clean javafx:jlink |
| 36 | + target\hellofx\bin\launcher |
0 commit comments