• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IntelliJ 14.0 doesn't compile fxml files

 
Alex Miel
Greenhorn
Posts: 9
Chrome IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using new IntelliJ 14.0 I created simple JavaFX project with fxml file in the same package as main class. Unfortunately fxml file isn't compiled while building project. This is gradle project.
In previous version of IntelliJ (13.1.5) same project compiles with no problems.
 
Tim Cooke
Sheriff
Pie
Posts: 3203
142
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps you had a plugin installed in IntelliJ 13 to compile those files that you do not have installed in IntelliJ 14.

Does the project compile if you run Gradle from the command line?
 
John Damien Smith
Ranch Hand
Posts: 296
14
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FXML in Java 8 isn't a compiled format.

The XML files are parsed at runtime (not compile time) by the FXML Loader and Java reflection is used to instantiate the object tree to represent the FXML.

There has been experimental work to pre-compile FXML ahead of time, but that work is currently not part of the Java 8 JavaFX distribution.

I wonder what your real issue is.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic