By Martín, Tech Lead, Software Engineer.

If you are here, it is because you want this to be easy and fast. So let’s cut to the chase.

You will need:

  • Java JDK
  • Maven
  • Anypoint Studio: to manually test your connectors
  • Optional: IntelliJ IDEA as an IDE to develop your connectors

 

Install Java JDK

Easiest way of installing the JDK is by going to Ninite, picking the one you want, downloading the installer and running it.
Since you are here, if you are an Eclipse fan, you can pick it as well so Ninite does the install for you.

Now let’s make sure the JAVA_HOME environment variable is set. Hit the Win key, type env, and pick the Edit the system environment variables option. Then click on the Environment Variables button:


In this case, the installer is smart enough to automatically do this. But this sometimes does not work, so it is always good to double-check. ? It also adds the \bin directory to the path, so you can call java from wherever you want.

Done! If you did not know Ninite before today… You’re welcome.

 

Maven

Go to Maven and download the latest Binary zip archive:

Unzip it to wherever you want. In this example, I’m creating a tools directory in C:

Now create the MAVEN_HOME system variable and set it to to C:\tools\apache-maven-3.6.3:

And add %MAVEN_HOME%\bin to the PATH variable:

Checkpoint

Running mvn -version and java -version from the command line at this point is often a good idea.

Do not use a terminal you had opened before setting the system variables! Open a new one, to make sure the new values have kicked in.

Anypoint Studio 7

It’s time to get Studio! Go here, pick Windows, enter your information, and hit Download.

Once it finishes downloading, unzip it, and run AnypointStudio.exe.

It may prompt you to install updates. Install them, and you’re done.

Optional: IntelliJ IDEA

Since connectors are Java projects, you can work on them using Studio itself, or Eclipse.

If you are an IntelliJ fan, though, or are keen on trying a different IDE, then go to the official download page and download JetBrains Toolbox. You could download IDEA individually but Toolbox handles updates automatically, so it is highly recommended.

Once downloaded, install it and run it.

Click its icon in the tray bar, read and accept its license agreement, and click the Install button next to IntelliJ IDEA Community:

Wait for a few minutes. Once it is installed, open the same menu and click the IntelliJ IDEA Community icon.

Set it up as you like, but make sure support for Maven, your Version Control Software (such as Git) and JUnit are selected.

Now open a connector project.

Go to File -> Settings -> Build, Execution, Deployment -> Compiler -> Java Compiler.

Add -parameters in the Additional command line parameters box.

That’s it. Enjoy your journey! If you are new here, be sure to check the rest of the articles in the blog, and the Mule SDK official documentation.