Eclipse – JavaFX (jfxrt.jar) integrieren

Problem
JavaFX-Klassen werden nicht gefunden.

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
...

 

Lösung

Window
Preferences
Java
Installed JREs
Installed JREs: "jdk1.7.0_51 (default)"
Edit...
Add External JARs...
Pfad: "/opt/java/jdk1.7.0_51/jre/lib/jfxrt.jar"
OK
Finish
OK

 

OS: Ubuntu 12.04 LTS (64-Bit)

Schreibe einen Kommentar