openjfx / samples

JavaFX samples to run with different options and build tools
BSD 3-Clause "New" or "Revised" License
596 stars 1.52k forks source link

Can't compile HelloFX.java #68

Open kP700c-github opened 2 years ago

kP700c-github commented 2 years ago

Windows 10, OpenJDK 17.0.2, JavaFX 17.0.2,

Java directory: D:\Program Files\Java\jdk-17.0.2\

JavaFX directory: D:\Program Files\Java\jdk-17.0.2\javafx\

Set environment variable PATH: PATH=D:\Program Files\Java\jdk-17.0.2\bin\

Set environment variable JAVA_HOME: JAVA_HOME=D:\Program Files\Java\jdk-17.0.2\

Set environment variable PATH_TO_FX: PATH_TO_FX=“D:\Program Files\Java\jdk-17.0.2\javafx\lib”

Test compilation: samples-master\HelloFX\CLI\hellofx\HelloFX.java

javac --module-path %PATH_TO_FX% --add-modules javafx.controls HelloFX.java

Error message: error: no source files

I confirm that HelloFX.java exists in the current directory. How come the error message says “no source files”?