How to Use JavaFX with Eclipse, IntelliJ, and Visual Studio Code

Поделиться
HTML-код
  • Опубликовано: 14 янв 2025
  • //////////////////// JavaFX ////////////////////
    00:00 Download JavaFX SDK
    gluonhq.com/products/javafx/
    //////////////////// Eclipse ////////////////////
    00:35 Eclipse - Create Project
    module-info.java file may work if you add "requires" and "open" statements like in the IntelliJ example
    01:14 Eclipse - FX Library
    02:00 Eclipse - Module Path
    02:38 Eclipse - VM Arguments
    --module-path (path-to-FX-library) --add-modules javafx.controls,javafx.fxml
    03:28 Eclipse - Configure other class that uses JavaFX too
    03:55 Eclipse - Running JavaFX Program
    //////////////////// IntelliJ ////////////////////
    04:08 IntelliJ - Create Project
    04:53 IntelliJ - FX Library
    05:34 IntelliJ - module-info.java
    {
    requires javafx.controls;
    requires javafx.fxml;
    opens (package-that-uses-JavaFX)
    }
    06:23 IntelliJ - Running JavaFX Program
    //////////////////// VS Code ////////////////////
    06:46 VS Code - Create Project
    07:17 VS Code - Installing JDK
    08:14 VS Code - Restart
    08:44 VS Code - FX Library
    09:13 VS Code - VM Arguments
    "vmArgs": "--module-path (path-to-FX-library) --add-modules javafx.controls"
    10:47 VS Code - Running JavaFX Program
    //////////////////// Windows ////////////////////
    11:16 Changes in VM Arguments
    Eclipse:
    --module-path "(path-to-FX-library)" --add-modules javafx.controls,javafx.fxml
    VS Code:
    "vmArgs": "--module-path \"(path-to-FX-library)\" --add-modules javafx.controls"

Комментарии • 2

  • @jennamartineau4619
    @jennamartineau4619 9 месяцев назад

    thanks, continue your great work ! I really appreciate that you present the 3 environment !
    Tips to improve your audio : supress the background noise and speak clearly, if your mic is too loud, just adjust the audio (no whispering)

  • @sandipchanda5043
    @sandipchanda5043 8 месяцев назад

    Thanks man!!! Was stuck with this issue, seems the issue was with adding the module path in the launch config. Anyways it is working now, thanks again, keep up the good work!!