diff --git a/ide-eclipse.html b/ide-eclipse.html index 22e28bf..559920e 100644 --- a/ide-eclipse.html +++ b/ide-eclipse.html @@ -112,12 +112,12 @@
3. Add VM arguments

---module-path $PATH_TO_FX --add-modules=javafx.controls,javafx.fxml
+--module-path /path/to/javafx-sdk-11/lib --add-modules=javafx.controls,javafx.fxml
 

---module-path %PATH_TO_FX% --add-modules=javafx.controls,javafx.fxml
+--module-path "\path\to\javafx-sdk-11\lib" --add-modules=javafx.controls,javafx.fxml
 
@@ -139,6 +139,22 @@
3. Add VM arguments
Click apply and close the dialog.

+

+ Alternatively, you can define a global variable that can be used in future projects. Go to + Preferences (File -> Settings) -> Run/Debug -> String Substitution, and define the name + of the variable as PATH_TO_FX, and browse to the lib folder of the JavaFX SDK to set its value, + and click apply. + + String Substitution +

+

+ Then you can refer to this global variable when setting the VM options as: +

+ +

+--module-path ${PATH_TO_FX} --add-modules=javafx.controls,javafx.fxml
+
+
4. Run the project

diff --git a/ide-intellij.html b/ide-intellij.html index f567482..68db83b 100644 --- a/ide-intellij.html +++ b/ide-intellij.html @@ -91,12 +91,12 @@

4. Add VM options

---module-path $PATH_TO_FX --add-modules=javafx.controls,javafx.fxml
+--module-path /path/to/javafx-sdk-11/lib --add-modules=javafx.controls,javafx.fxml
 

---module-path %PATH_TO_FX% --add-modules=javafx.controls,javafx.fxml
+--module-path "\path\to\javafx-sdk-11\lib" --add-modules=javafx.controls,javafx.fxml
 
@@ -111,6 +111,21 @@
4. Add VM options
Click apply and close the dialog.

+

+ Alternatively, you can define a global variable that can be used in future projects. Go to + Preferences (File -> Settings) -> Appearance & Behavior -> Path Variables, and define the name + of the variable as PATH_TO_FX, and browse to the lib folder of the JavaFX SDK to set its value, + and click apply. + Path Variable +

+

+ Then you can refer to this global variable when setting the VM options as: +

+ +

+--module-path ${PATH_TO_FX} --add-modules=javafx.controls,javafx.fxml
+
+
5. Run the project

diff --git a/ide-netbeans.html b/ide-netbeans.html index 943610a..aac1c86 100644 --- a/ide-netbeans.html +++ b/ide-netbeans.html @@ -222,7 +222,7 @@

2. Modify the pom

    
-    <goal>org.codehaus.mojo:exec-maven-plugin:1.6.0:java≶/goal>
+    <goal>org.codehaus.mojo:exec-maven-plugin:1.6.0:java</goal>
 

@@ -473,9 +473,16 @@

2. Modify the pom

Replace the existing plugins based on this pom file, and set the mainClass accordingly to org.openjfx.MainApp. - +

+

Add the required dependencies for javafx.controls and javafx.fxml.

+

+ Update the nbactions.xml file, with this goal for run and debug: +

+
    
+    <goal>org.codehaus.mojo:exec-maven-plugin:1.6.0:java</goal>
+
3. Add the module-info class
diff --git a/images/ide/eclipse/ide/eclipse10.png b/images/ide/eclipse/ide/eclipse10.png new file mode 100644 index 0000000..a12df7f Binary files /dev/null and b/images/ide/eclipse/ide/eclipse10.png differ diff --git a/images/ide/intellij/ide/idea07.png b/images/ide/intellij/ide/idea07.png new file mode 100644 index 0000000..40c4dec Binary files /dev/null and b/images/ide/intellij/ide/idea07.png differ