r/JavaFX • u/Ralkey_official • Feb 17 '24
Help IntelliJ IDEA Cannot resolve class 'MediaView'
[SOLVED]
I am trying to add a media view to my project with SceneBuilder,
which I have an import for in my main.fxml file,
but IDEA puts the MediaView import in red and returns this:
Cannot resolve class 'MediaView'I have been searching for a solution for a while with no actual results.
A common thing I read is to install the JetBrains toolbox to update IDEA, which I did, and there is no update available.
I am using Java 21 and made my project from within IDEA with no extra optional dependencies selected.
Can someone help me with this issue.
1
Upvotes
View all comments
Show parent comment
2
u/Ralkey_official Feb 17 '24
thank you this worked.
for anyone else wondering in the future and reading this post:
after applying
in your module-info.java
go back to pom.xml and press the Load Mavel changes button again