Build Arduino IDE From GIT Sources on Windows




Introduction: Build Arduino IDE From GIT Sources on Windows

The purpose of this Instructable is to build the Arduino IDE from GIT on a clean Windows computer. The development master branch (mainline) will be used.

A Ubuntu Instructable is located here.


  • A clean Windows installation, 32 or 64 bit.
  • At least 2GB disk space.
  • Internet connection.

Let's start!

Step 1: Download ANT

The first step is to download ANT which will be used to build the Arduino IDE Java source.

Download ANT from:

Extract the file, for example into your Download directory.
The results should be something like this:

Step 2: Install Cygwin

Download Cygwin:

Double click on the setup to start the installation.

Select the following packages:

  • git
  • gcc++
  • make
  • perl
  • unzip

Start Cygwin from the Desktop.

Step 3: Download and Install Java

Java is required to run the Arduino IDE. This must be the 32 bit Java JDK, even if you're using Windows 64 bit.

Download Windows x86Java SE Development Kit 8u101 from:

Double click on the jdk-8u101-windows-i586.exe setup to start the installation.
Click 3x Next > Close.

Open a Cygwin terminal and type:

# java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13) Java HotSpot(TM) Client VM (build 25.101-b13, mixed mode)

Step 4: GIT Clone Arduino Source

Download the latest Arduino sources from the GIT master branch with the git clone command:

$ cd /cygdrive/c/Users/$USER/Downloads
$ git clone

Next time you can update to the latest sources with the git pull command and skip the git clone:

$ git pull

Step 5: Build Arduino IDE

Now you're ready to build the Arduino IDE.

1. Set JAVA_HOME path:

  • Windows 32 bit:
$ export JAVA_HOME=/cygdrive/c/PROGRA~1/Java/jdk1.8.0_101
  • Windows 64 bit:
$ export JAVA_HOME=/cygdrive/c/PROGRA~2/Java/jdk1.8.0_101

2. Check the path JAVA_HOME environment variable:

$ ls $JAVA_HOME 

3. Set PATH environment variable:

$ export PATH="$JAVA_HOME/bin:$PATH" 

4. Go to the build directory in the Arduino GIT checkout:

$ cd Arduino/build/

5. Build the Arduino source:

$ ../../apache-ant-1.9.7/bin/ant.bat clean dist -Dplatform=windows
[input] Enter version number: [1.6.11] < [Enter]
# Be patient!
Total time: 1 minute 27 seconds

Step 6: Run the Arduino IDE

Create a shortcut on the desktop by holding down [CTRL+SHIFT] and drag arduino.exe to the Desktop.

Double click on the shortcut on the desktop to start the Arduino IDE.

Congratulations! You've successfully built the Arduino IDE from source!

Feel free to leave a comment with feedback or your success story. :-)


Be the First to Share


    • Make It Modular: Student Design Challenge

      Make It Modular: Student Design Challenge
    • Tinkercad to Fusion 360 Challenge

      Tinkercad to Fusion 360 Challenge
    • Stone Concrete Cement Contest

      Stone Concrete Cement Contest



    3 years ago

    Hi, thanks for this post. I would suggest an update, to add an install image of cygwin, because "gcc++" can not be found, it only has "gcc" and other variations. I've also seen somewhere that in Windows 10 cygwin does not go very well, so it would be more recommended the 'Bash'. (I do not know if using 'Bash' works to compile the Arduino.) Thank you.


    5 years ago

    Thanks for the instructable and I may give this a try just for the fun of it. Just curious though, why the "clean" windows installation? I have a Windows 10 laptop that I've been using for a year. Any reason it wouldn't work?


    Reply 5 years ago

    Thanks for your response. You can use your Windows 10 laptop.

    I used a "clean" windows installation" when I created this Instructable. I recommend to:
    - Uninstall previous Adruino IDE installations to prevent version conflicts.
    - (re)install Cygwin with the latest packages. (Otherwise you can get build errors)
    - An existing 32-bit Java 8 installation can be used, otherwise reinstall Java. (Otherwise you can't build and run the new IDE)

    That' it! Success!