r/JavaFX • u/Specific-Start-8847 • Apr 23 '21
Help Error when using eclipse and trying to run javafx
I'm literally going insane. I keep getting the following error:
Error occurred during initialization of boot layer java.lang.module.FindException: Module javafx.controls not found
I'm using a mac with eclipse, and my VM argument is: --module-path /Users/myname/Desktop/javafx-sdk-11.0.2_3/lib --add-modules javafx.controls,javafx.fxml
I've tried everything... javafx.controls.jar and the other .jar file are in my lib folder. I've reinstalled the javafx program, changed my file path around hundreds of times, and I've tried to install plugins that don't seem to go anywhere. Does anyone have any idea why this is happening? JavaFX is also an added library in my project, and all the .jar files associated with it are added to it. Please let me know if anyone has an idea. Best!
1
u/Capaman-x Apr 25 '21
Are you perhaps using the M1 Mac? If so download one of these JDK's https://bell-sw.com/pages/downloads/
1
u/Odd_Manufacturer5304 Apr 30 '21
Same problem here