Configure Studio to Use Your Own JDK (Windows)

  1. Locate your AnypointStudio.ini file inside your Anypoint Studio’s installation directory.

  2. Add the -vm option to point to your specific JDK installation path.

    C:\Program Files\Java\jdk-11.0.11+9\bin\javaw.exe
    • The -vm option and the installation path must be on separate lines.

    • The value must be the full absolute or relative path to the Java executable, not just to the Java home directory.

    • The -vm option must occur after the other Studio-specific options (such as -product, --launcher.*, etc), but before the -vmargs option.

      If you encounter Java was started but returned exit code=1 while starting Anypoint Studio, modify the -vm argument to point to the jvm.dll:

      C:\Program Files\Java\jdk-11.0.11+9\jre\bin\server\jvm.dll

Was this article helpful?

💙 Thanks for your feedback!

Edit on GitHub