Intellij won't recognize JavaFx imports in lib folder

Answered

I was working on this git project using intellij community but then I upgraded to ultimate and added JavaFx plugin but now my project will not build. I cloned the project and imported it but this is what I see even though I can see JavaFx libraries on the left in my project structure. I am not sure what to do but I have been trying to fix for hours. 

0
5 comments

Make sure you added lib fodler to your module's dependencies. 

1

Ok so I just added the whole lib folder as a dependency and that fixed most errors but now I am still getting some errors. My teammates do not have these errors, strange.

0

Ok so in the screenshot above I add the lib from my project dependencies and now I also added the JavaFx SDK's lib folder and that got rid of most errors but now this. It is the same files I have been using before I switched to ultimate.

 

 

 

0

Ok and I have now verified that I have all the libraries and dependencies that my partners have and they never added the libs manually to the dependencies. I am confused how they are accessing the libraries then?

0

The "Class file has wron version" error is caused by versions mismatch between libraries and the SDK folder. 

There is a possibility that your teammates use another build of JDK with JavaFX included. 

0

Please sign in to leave a comment.