Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot create FXML file in JavaFX project in Eclipse

OS: Ubuntu 14.04.
IDE: (Eclipse Mars.1 Release (4.5.1)) and Scene builder 2.


I can't choose root element because as I understand it should be done.
This window I see when creating a file. enter image description here


Maybe I incorrectly set the path to my Scene Builder executable.
enter image description here

How to solving this problem?
I did everything according to instructions.


Update 1: Not yet solved the problem, I'll use the Idea IDE
Update 2: Now i use Netbeans with JDK from ORACLE website. I chose the easiest way.
like image 510
Kas Elvirov Avatar asked Oct 18 '25 15:10

Kas Elvirov


2 Answers

I solved this problem by referencing the JavaFX library to the project. One way to do that is to right-click the project folder in Eclipse, then select Build Path -> Add External Archive.

The JavaFX archive, named jfxrt.jar is located in the directory jre\lib\ext of your JDK directory.

Surprisingly, the JavaFX libraries are not automatically linked in a JavaFX project... This operation also allows to build JavaFX sample projects, which otherwise don't compile.

like image 178
Vincz777 Avatar answered Oct 20 '25 06:10

Vincz777


The problem is solved for me by installing the latest jdk 8u73 and by adding the new build path in eclipse

Ps : sorry for my english

Mounir (France)

like image 37
Moon Housney Avatar answered Oct 20 '25 05:10

Moon Housney



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!