Workflow: Configuring Java JDK for Studio (Linux and Unix)

After downloading the JDK from Oracle’s site and following the installation instructions, make sure that the JAVA_HOME environment variable is pointing to your JDK installation:

  1. Edit the startup file (~/.bashrc).

  2. Modify PATH variable

    export PATH
  3. Save and close the file.

  4. Load the startup file.

    > . /.profile
  5. To verify the configuration of your installation, type

    > java -version

    This should print the version of the java tool. If the version is old or you get the error "java: Command not found", then the JDK is not properly installed.

Under certain circumstances, if you had a JRE installation previous to installing the JDK, your default VM could still be configured as the JRE.
To correct this, configure Anypoint Studio to point to your JDK installation as the default VM.
After doing so, if Anypoint Studio still does not recognize your JDK installation, consider uninstalling your the JRE.

In this topic: