JavaFX Problem: Can't compile JavaFX program

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:

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

Error message:
error: no source files

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

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.