Difference between revisions of "JavaFX Setup"

From CSE231 Wiki
Jump to: navigation, search
(Run FxDemoApp)
(Run FxDemoApp)
Line 21: Line 21:
  
 
==Run FxDemoApp==
 
==Run FxDemoApp==
# Command+Shift+T (Mac) or Control+Shift+T (Windows) "FxDownload"
+
# Command+Shift+T (Mac) or Control+Shift+T (Windows) "FxDemoApp"
 
# Run as Java Program
 
# Run as Java Program
  

Revision as of 11:21, 23 January 2020

JavaFX 13 Runtime

Run FxDowload

  1. Command+Shift+T (Mac) or Control+Shift+T (Windows) "FxDownload"
  2. Run as Java Program

This program will download JavaFX 13, unzip it to your Downloads folder, and put the text needed for your Java VM Arguments into the clipboard. (Linux users may need to copy the text from the console.)

VM Args

  1. Load Eclipse's Preferences
  2. Type "vm" into the filter text box
  3. Select "Installed JREs"
  4. Select whichever JRE you are using
  5. Click the "Edit..." button
  6. Paste the text from the clipboard to the VM Argument
  7. Click the "Finish" button

Java fx preferences.png

Java fx preferences vm args.png

Run FxDemoApp

  1. Command+Shift+T (Mac) or Control+Shift+T (Windows) "FxDemoApp"
  2. Run as Java Program

This program should bring up a graphical user interface with a single button which you can click on to test that JavaFX is working.

Eclipse Java(FX) Plugin

Install the e(fx)clipse plugin from the Marketplace

Marketplace JavaFX.png