I looked on many similar questions but the solutions didnt help me :(
I can import the lib in 2 ways:
1. In the java build path I can use this way all the classes without problems... BUT i cant load the java doc or source, if i do, it does not work.
or...
2. edit the installed JRE definitions This way I add like explained in other Questions the jfxrt.jar in the installed jre and i give it the source and doc. AND it WORKS! ... nearly... The documentation works now... but not all imports. :(
import javafx.application.Platform; //this works
import javafx.scene.control.ListView; //this works
import javafx.scene.control.ProgressBar; //this works
import javafx.scene.control.TextField; //this works
import javafx.scene.layout.Background; //this DOES NOT work :(
import javafx.scene.layout.BackgroundFill;//this DOES NOT work :(
import javafx.scene.layout.Border; //this DOES NOT work :(
import javafx.scene.layout.BorderPane; //this works again ._.
The error i get is: "The import javafx.scene.layout.Background cannot be resolved"
Well... when doing the 1st step (from This is my openjfx lib). I have absolutly no import issues and i can work perfectly, but the doc doesnt work.
And now with 2. edit the installed JRE definitions the doc does work but i have import issues with certain stuff and i dont understand why :(
Obviously I am doing something wrong... (i am pretty new to java)
my java -version:
java version "13" 2019-09-17
Java(TM) SE Runtime Environment (build 13+33)
Java HotSpot(TM) 64-Bit Server VM (build 13+33, mixed mode, sharing)
(i had some bug earlier using the fx and it got fixed by updating my eclipse 2019-09)
Well. i hope you can help me ^^
jfxrt.jar
for JavaFX 11+?? That doesn't exist anymore. If it is from an older version (10 or less), that might explain some import issues. But this is not the way to do it. See openjfx.io/openjfx-docs/#IDE-Eclipse – José Pereda