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