JavaFX Setup

From CSE231 Wiki
Jump to navigation Jump to search

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