-
Notifications
You must be signed in to change notification settings - Fork 456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JavaFX not imported #276
Comments
Have you tried with Eclipse/Buildship? |
Do you have a sample project to reproduce this issue? |
I didn't try Eclipse/Buildship. This is my project: https://github.com/nihiluis/jfx-test-boilerplate |
So, Java FX is not guaranteed to be present in all JDK distributions, that means your project might not build/work against other JDKs. For now, your best bet is to tell vscode-java/eclipse.jdt.ls to ignore the error, if you're confident it won't be an issue. In order to do that, you can add a
|
Closing as duplicate of #120. |
I got the JDK defined as Oracle in both IntelliJ IDEA and VSCode. I think Oracle distributes JFX. I'll check again eventually. These warnings don't appear for me. IIRC errors appear, because JFX classes cannot be found. I don't know if both issues are related. |
In future (with jdk 11) JavaFX will be shipped as library available from maven central! No JDK will bring by default |
I'm using gradle. Gradle build works fine. JavaFX classes are not recognized though. My java.home is correctly set and the same as in IntelliJ IDEA. Do I have to add some external JFX library somehow?
Environment
The text was updated successfully, but these errors were encountered: