Skip to content
Advertisement

JavaFX trouble importing [closed]

I am new to java and I would like to convert a buffered image to a regular image object and then display to the screen. I am currently following this method ( JavaFX ImageView via FXML does not work ), but I am having trouble importing this library javafx.embed.swing.SwingFXUtils

into my eclipse project, it claims that there is no such path as javafx.embed which causes an error at the import statement any help or guidance is appreciated thank you

Edit: all other parts of the javaFX library such as buttons and text fields work fine so javaFX is configured properly, It is just with this 1 import I have a problem with

Advertisement

Answer

As javaFX is already bundled with JDK 8. I would suggest, try using java 8 instead, if it works, then your previous setup wasn’t correct.

Advertisement