Currently, I updated my java SDK from version 18 to version 21.0.3 in my Mac (Monterey 12.7.4). Before installation i deleted the previous version sdk completely as below:
sudo rm -fr /Library/Internet Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane
sudo rm -fr ~/Library/Application Support/Oracle/Java
The new installed java sdk 21.0.3 work properly, it can compile and run java programs. The problem is the JavaFx. I deleted the previous JavaFx version 17 (by deleting the JavaFx folder) and downlaod a new version 21.0.3 and unzipped in the same postion. Since then, the JavaFX can’t work. When I typed in the terminal:
javac –module-path=/Users/xing/javafx-sdk-javafx-sdk-21.0.3/lib
error: no source files
This is what exactly what i did before with the previous version JavaFx. But now it shows “no source files”. I searched from web tried all the way, but things just keep unchanged. I set up Eclipse but the problem is the same. It took me serveral days to search and try all the methods. Is there anyperson can help? Thank you very much.
I tried different versions of javafx but it remain the same.
David007 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.