Java: JavaFX: Unterschied zwischen den Versionen
Flinh1 (Diskussion | Beiträge) |
Flinh1 (Diskussion | Beiträge) (→Allgemeines) |
||
| Zeile 13: | Zeile 13: | ||
* https://openjfx.io/ | * https://openjfx.io/ | ||
| + | |||
| + | ---- | ||
| + | == Installation == | ||
| + | Download von https://gluonhq.com/products/javafx/ | ||
| + | |||
| + | zip-Paket entpacken, Laufwerk oder Ordner beliebig | ||
| + | |||
| + | ---- | ||
| + | |||
| + | === In IntelliJ Idea === | ||
| + | 1. ''File -> Project Structure -> Libraries'' | ||
| + | |||
| + | Den ''lib'' Ordner des entpackten JavaFX einbinden. | ||
| + | |||
| + | 2. In ''Edit Configurations'' VM Options eintragen: | ||
| + | |||
| + | Linux/MAC: | ||
| + | --module-path /path/to/javafx-sdk-15.0.1/lib --add-modules javafx.controls,javafx.fxml | ||
| + | (Padangabe anpassen) | ||
| + | |||
| + | Windows: | ||
| + | --module-path "\path\to\javafx-sdk-15.0.1\lib" --add-modules javafx.controls,javafx.fxml | ||
| + | (Padangabe anpassen) | ||
| + | |||
| + | * https://openjfx.io/openjfx-docs/#install-javafx | ||
---- | ---- | ||
Version vom 17. Februar 2021, 20:12 Uhr
Inhaltsverzeichnis
Allgemeines
Installation
Download von https://gluonhq.com/products/javafx/
zip-Paket entpacken, Laufwerk oder Ordner beliebig
In IntelliJ Idea
1. File -> Project Structure -> Libraries
Den lib Ordner des entpackten JavaFX einbinden.
2. In Edit Configurations VM Options eintragen:
Linux/MAC:
--module-path /path/to/javafx-sdk-15.0.1/lib --add-modules javafx.controls,javafx.fxml
(Padangabe anpassen)
Windows: --module-path "\path\to\javafx-sdk-15.0.1\lib" --add-modules javafx.controls,javafx.fxml (Padangabe anpassen)
Troubeshooting
module javafx.base not found
> Prüfen, ob in Run > Run Configuration > VM Options
der Pfad zum lib-Verzeichnis von JavaFX richtig gesetzt ist.
Links und Quellen
- https://gluonhq.com/products/javafx/ Download
| |