If you are using Java 8, this can be caused by update 451 (released in April 2025) or later, which removed JavaFX.
You can work around this by uninstalling the latest Java, downloading a pre-451 version, e.g. 441, from the Oracle website (login needed), and installing that.