On this page (and I suspect others), https://openjfx.io/openjfx-docs/#install-javafx The windows samples don't wrap %PATH_TO_FX% in double quotes. Best to do this as windows supports spaces in directory names.