'JavaFX setup is not working, because of environment variables possibly
I will be using JavaFX
on a project. I am no expert but I did install it once with no major issue or problem.
But I switched to a new computer and after trying to install it doesn't build; at first I got the message that
JavaFX runtime
components were missing then got the java.lang.module.FindException: Module javafx.controls not found
and I did check other posts that had the same error as the mentioned above but got no solution to the problem and now the message is
Unrecognized option: --module-path Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
(Please note that I'm using VS Code and no build tools, I am referencing the libraries to use JavaFX)
And I'm really confused with the JRE, SDK and JDK, I installed the SDK using VS Code but I don't know if my environment variables are configured as they should be...
Thanks in advance for the help, since I'm no expert I don't know if this information is enough, I hope it is :)
Solution 1:[1]
My suggestion is to use JavaFX of vscode to build the project instead of JavaFX SDK.
I think the main problem is still caused by the environmental settings.
If you must use the JavaFX SDK, put it in a location without spaces, or quote the path when using it. And please read the document in detail.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |