-
Notifications
You must be signed in to change notification settings - Fork 25
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
Issue 38 #41
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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> | ||
|
@@ -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 this global variable when setting the VM options as: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ...refer to this... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
</p> | ||
|
||
<pre><code> | ||
--module-path ${PATH_TO_FX} --add-modules=javafx.controls,javafx.fxml | ||
</code></pre> | ||
|
||
<h5>4. Run the project</h5> | ||
|
||
<p> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Change / to \ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
</code></pre> | ||
</div> | ||
</div> | ||
|
@@ -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 this global variable when setting the VM options as: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ...refer to this... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
</p> | ||
|
||
<pre><code> | ||
--module-path ${PATH_TO_FX} --add-modules=javafx.controls,javafx.fxml | ||
</code></pre> | ||
|
||
<h5>5. Run the project</h5> | ||
|
||
<p> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change / to \
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done