Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile HelloFX.java #68

Open
kP700c-github opened this issue Mar 7, 2022 · 0 comments
Open

Can't compile HelloFX.java #68

kP700c-github opened this issue Mar 7, 2022 · 0 comments

Comments

@kP700c-github
Copy link

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”?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant