AymenDaoudi
AymenDaoudi

Reputation: 8299

Fxml file not updating in Eclipse

I'm experiencing a weird behaving in Eclipse when working with JavaFx, when I modify a FXML document in SceneBuilder, I save the changes, but when I run the project, my changes don't appear, it s after I refresh the concerned Fxml document that the changes work when I run the application, I'm obliged to do this every time I change something using SceneBuilder, any explanation or solution for this problem ?

Upvotes: 5

Views: 4009

Answers (2)

marija
marija

Reputation: 65

If you create a project with option:

"Use project folder as root for sources and class files"

selected, you don't have that problem.

Upvotes: 2

tomsontom
tomsontom

Reputation: 5897

The problem is that Eclipse does NOT by default track external changes to files and when you execute an application you are not executing the stuff in the "src" folder but the one that gets copied by eclipse to your "bin" one.

You can turn on active polling of sources on in the Eclipse Preferences page "General > Workspace" by checking "Refresh using native hooks or polling".

Upvotes: 8

Related Questions