I have been trying to start a summer project using JavaFX (Using Intellij on windows). First, I got an error that said that the SDK was not properly defined (which it was) and it couldn't recognize any JavaFX classes. Now I have gotten it to show me a different error by adding Global Libraries from the java 11.0.2 lib folder. Now it recognizes the classes through my Global Libraries but gives me a different error. I pasted the entire error message bellow. Not sure what's wrong now BUT it might be causing it because I added my global libraries from a different folder than my SDK is in.
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)