Since I did not explicitly download javafx as a separate installation, I don't know where javafx is so I cannot setup the CLASSPATH variable.
Can someone guide me? Do I need to define CLASSPATH so I can compile "hello world"? If so, what is the value (I cannot find the separate directories for javafx in the "c:\Program Files\Java" directories). Do I need to explicitly download javafx?
John Damien Smith
Joined: Jan 26, 2012
> Do I need to define CLASSPATH so I can compile "hello world"?
Yes (for jdk1.7u11, not for the jdk8 release).
> If so, what is the value
Place <JDK_HOME>/jre/lib/jfxrt.jar on your classpath (substituting <JDK_HOME> with the location of your jdk installation).
Looks like you have a 64 bit FX SDK, possibly one you downloaded and installed before FX was integrated with the Java JDK/JRE. If so, uninstalling it may fix the problem (you may also need to reinstall the JDK and JRE).
Also, it's generally preferred to use the -cp flag on the command line rather than set the system CLASSPATH.
There are no new questions, but there may be new answers.