Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 38 #41

Merged
merged 3 commits into from
Nov 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions ide-eclipse.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ <h5>3. Add VM arguments</h5>
<div class="tab-content">
<div class="tab-pane active" id="nix-eclipse-non-ide-1">
<pre class="no-border-radius"><code>
--module-path $PATH_TO_FX --add-modules=javafx.controls,javafx.fxml
--module-path /path/to/javafx-sdk-<span class="JFX_VERSION">11</span>/lib --add-modules=javafx.controls,javafx.fxml
</code></pre>
</div>
<div class="tab-pane" id="win-eclipse-non-ide-1">
<pre><code>
--module-path %PATH_TO_FX% --add-modules=javafx.controls,javafx.fxml
--module-path "\path\to\javafx-sdk-<span class="JFX_VERSION">11</span>\lib" --add-modules=javafx.controls,javafx.fxml
</code></pre>
</div>
</div>
Expand All @@ -139,6 +139,22 @@ <h5>3. Add VM arguments</h5>
Click apply and close the dialog.
</p>

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

<a href="images/ide/eclipse/ide/eclipse10.png" target="_blank"><img src="images/ide/eclipse/ide/eclipse10.png" alt="String Substitution"/></a>
</p>
<p>
Then you can refer to this global variable when setting the VM options as:
</p>

<pre><code>
--module-path ${PATH_TO_FX} --add-modules=javafx.controls,javafx.fxml
</code></pre>

<h5>4. Run the project</h5>

<p>
Expand Down
19 changes: 17 additions & 2 deletions ide-intellij.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ <h5>4. Add VM options</h5>
<div class="tab-content">
<div class="tab-pane active" id="nix-idea-non-ide-1">
<pre class="no-border-radius"><code>
--module-path $PATH_TO_FX --add-modules=javafx.controls,javafx.fxml
--module-path /path/to/javafx-sdk-<span class="JFX_VERSION">11</span>/lib --add-modules=javafx.controls,javafx.fxml
</code></pre>
</div>
<div class="tab-pane" id="win-idea-non-ide-1">
<pre><code>
--module-path %PATH_TO_FX% --add-modules=javafx.controls,javafx.fxml
--module-path "\path\to\javafx-sdk-<span class="JFX_VERSION">11</span>\lib" --add-modules=javafx.controls,javafx.fxml
</code></pre>
</div>
</div>
Expand All @@ -111,6 +111,21 @@ <h5>4. Add VM options</h5>
Click apply and close the dialog.
</p>

<p>
Alternatively, you can define a global variable that can be used in future projects. Go to
<kbd>Preferences (File -> Settings) -> Appearance & Behavior -> Path Variables</kbd>, and define the name
of the variable as <kbd>PATH_TO_FX</kbd>, and browse to the lib folder of the JavaFX SDK to set its value,
and click apply.
<a href="images/ide/intellij/ide/idea07.png" target="_blank"><img src="images/ide/intellij/ide/idea07.png" alt="Path Variable"/></a>
</p>
<p>
Then you can refer to this global variable when setting the VM options as:
</p>

<pre><code>
--module-path ${PATH_TO_FX} --add-modules=javafx.controls,javafx.fxml
</code></pre>

<h5>5. Run the project</h5>

<p>
Expand Down
11 changes: 9 additions & 2 deletions ide-netbeans.html
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ <h5>2. Modify the pom</h5>
</p>

<pre><code>
&lt;goal&gt;org.codehaus.mojo:exec-maven-plugin:1.6.0:java&lg;/goal&gt;
&lt;goal&gt;org.codehaus.mojo:exec-maven-plugin:1.6.0:java&lt;/goal&gt;
</code></pre>

<p>
Expand Down Expand Up @@ -473,9 +473,16 @@ <h5>2. Modify the pom</h5>
<p>
Replace the existing plugins based on this <a class="samples" href="/IDE/IntelliJ/Modular/Maven/hellofx/pom.xml" target="_blank">pom</a> file, and set the
<kbd>mainClass</kbd> accordingly to <kbd>org.openjfx.MainApp</kbd>.

</p>
<p>
Add the required dependencies for <kbd>javafx.controls</kbd> and <kbd>javafx.fxml</kbd>.
</p>
<p>
Update the <kbd>nbactions.xml</kbd> file, with this goal for <kbd>run</kbd> and <kbd>debug</kbd>:
</p>
<pre><code>
&lt;goal&gt;org.codehaus.mojo:exec-maven-plugin:1.6.0:java&lt;/goal&gt;
</code></pre>

<h5>3. Add the module-info class</h5>

Expand Down
Binary file added images/ide/eclipse/ide/eclipse10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ide/intellij/ide/idea07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.