Java command does not exist

Hi there,
I wanted to use NetBeans so I installed it via App Center.

I started creating a new project: New project -> Java with Maven -> Javafx Application,
it asked me to install the missin Javafx plugin and so I did (automatic procedure of Netbeans)
but after creating the project I got a lot of errors like :

  • “javafx.application does not exist”
  • “javafx.fxml does not exist”
  • “javafx.scene does not exist”
    and many more like this… one per every Jvafx component.

Then I typed java in the terminal and got the message “java command does not exist”, so I downloaded jdk-12.0.1 and extracted it into a directory ./dk-12.0.1, setted the $JAVA_HOME to point to that directory but still nothing.

Any idea? Thanks a lot :slight_smile:

Hi, JavaFX is no longer part of the JDK since Java 11. You need to:

  1. Download it seperatly from https://openjfx.io/
  2. Follow the instructions there to integrate it with your Netbeans Installation https://openjfx.io/openjfx-docs/#install-javafx
1 Like

To get support for NetBeans you have to report the error here

It worked, thanks.
But this looks to be a “baypass”.
:slight_smile: by the way it works :slight_smile:

Hi, not a bypass, “per Design” - if it was a good choice from Oracle to make JFX a seperate product? Don’t know :slight_smile:

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