Skip to content

Can't compile HelloFX.java #68

Description

@kP700c-github

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions