Building Corda

These instructions are for downloading and building the Corda code locally. If you only wish to develop CorDapps for use on Corda, you don’t need to do this, follow the instructions at Getting set up for CorDapp development and use the precompiled binaries.

Windows

Java

Git

  • Visit https://git-scm.com/download/win
  • Click the “64-bit Git for Windows Setup” download link.
  • Download and run the executable to install Git (use the default installation values) and make a note of the installation directory.
  • Open a new command prompt and type git --version to test that Git is installed correctly

Building Corda

  • Open a command prompt
  • Run git clone https://github.com/corda/corda.git
  • Run gradlew build

Debian/Ubuntu Linux

These instructions were tested on Ubuntu Server 18.04 LTS. This distribution includes git and python so only the following steps are required:

Java

  • Run sudo add-apt-repository ppa:webupd8team/java from the terminal. Press ENTER when prompted.
  • Run sudo apt-get update
  • Then run sudo apt-get install oracle-java8-installer. Press Y when prompted and agree to the licence terms.
  • Run java --version to verify that java is installed correctly

Building Corda

  • Open the terminal
  • Run git clone https://github.com/corda/corda.git
  • Run ./gradlew build