Overview
This error occurs when there is a difference between the development environment required by Mulesoft and your actual PC development environment. Specifically, this error occurs when the following two are not properly set:
- Java Development Kit (JDK) version 7 or 8 to compile and build your Java code
- Apache Maven to manage your project’s build
Resolution
First, if you haven’t yet installed the above on your local PC, please install them according to this official guide.
If the error still occurs even after the above are installed, please make sure that the JRE definition is properly set in Anypoint Studio.
You can check the current setting by going to Anypoint Studio > Preferences > Java > Installed JREs.
If an JRE other than Oracle JDK version 7 or 8 (such as Open JDK) is specified, select Oracle JDK and click the Apply button.
Oracle JDK may be displayed as “JDK 8” or “Java SE 8” in the preferences setting, but either way it will work as expected.