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
- Visit http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
- Scroll down to “Java SE Development Kit 8uXXX” (where “XXX” is the latest minor version number)
- Toggle “Accept License Agreement”
- Click the download link for jdk-8uXXX-windows-x64.exe (where “XXX” is the latest minor version number)
- Download and run the executable to install Java (use the default settings)
- Add Java to the PATH environment variable by following the instructions at https://docs.oracle.com/javase/7/docs/webnotes/install/windows/jdk-installation-windows.html#path
- Open a new command prompt and run
java -version
to test that Java is installed correctly
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
Was this page helpful?
Thanks for your feedback!
Chat with us
Chat with us on our #docs channel on slack. You can also join a lot of other slack channels there and have access to 1-on-1 communication with members of the R3 team and the online community.
Propose documentation improvements directly
Help us to improve the docs by contributing directly. It's simple - just fork this repository and raise a PR of your own - R3's Technical Writers will review it and apply the relevant suggestions.
We're sorry this page wasn't helpful. Let us know how we can make it better!
Chat with us
Chat with us on our #docs channel on slack. You can also join a lot of other slack channels there and have access to 1-on-1 communication with members of the R3 team and the online community.
Create an issue
Create a new GitHub issue in this repository - submit technical feedback, draw attention to a potential documentation bug, or share ideas for improvement and general feedback.
Propose documentation improvements directly
Help us to improve the docs by contributing directly. It's simple - just fork this repository and raise a PR of your own - R3's Technical Writers will review it and apply the relevant suggestions.