Accelerate the Value of Data

Upgrade Java for the Mulesoft connector

Learn how to upgrade the Java runtime environment in Anypoint studio for the Mulesoft connector.

Java versions are deprecated from time to time so here are the steps to configure a given JDK version in Anypoint Studio. Ensure Anypoint Studio is installed and the desired JDK version is available on your system.

Let's say that you're upgrading to JDK 17:

  1. In the top menu of Anypoint Studio settings, select Window > Preferences to open the settings dialog.
  2. In the Preferences window, expand the Java section and select Installed JREs.
  3. If JDK 17 is already installed, select JDK 17, otherwise do the next step.
    1. Check the box next to JDK 17 to select it.
    2. Select Apply and Close to save your changes.
  4. If JDK 17 isn't listed, let's add it:
    1. Select Add to open the Add JRE wizard.
    2. Select Standard VM, then select Next.
    3. In the JRE Definition dialog, select Directory to locate the JDK 17 path on your system.
    4. Navigate to the JDK 17 folder, select it, and select OK.
    5. Ensure the JRE name is set to something recognizable, for example "JDK 17".
    6. Select Finish to add the new JRE.
    7. Ensure JDK 17 is checked in the list, then select Apply and Close to update your settings.
  5. Restart Anypoint Studio to ensure that the new settings take effect.