2015-11-25 13:27:07 +00:00
Getting set up
==============
2017-01-31 12:59:24 +00:00
Software requirements
---------------------
2017-06-05 12:37:23 +00:00
Corda uses industry-standard tools:
2016-11-14 18:12:39 +00:00
2018-06-22 08:24:13 +00:00
* **Oracle JDK 8 JVM** - minimum supported version **8u171**
2018-07-10 13:06:20 +00:00
* **IntelliJ IDEA** - supported versions **2017.x** and **2018.x** (with Kotlin plugin version |kotlin_version|)
2017-06-05 12:37:23 +00:00
* **Git**
2015-11-25 13:27:07 +00:00
2017-08-30 12:20:11 +00:00
We also use Gradle and Kotlin, but you do not need to install them. A standalone Gradle wrapper is provided, and it
will download the correct version of Kotlin.
2016-11-29 15:53:35 +00:00
2017-06-05 12:37:23 +00:00
Please note:
2016-05-18 09:39:47 +00:00
2017-06-05 12:37:23 +00:00
* Corda runs in a JVM. JVM implementations other than Oracle JDK 8 are not actively supported. However, if you do
choose to use OpenJDK, you will also need to install OpenJFX
2017-05-12 10:32:19 +00:00
2017-06-05 12:37:23 +00:00
* Applications on Corda (CorDapps) can be written in any language targeting the JVM. However, Corda itself and most of
the samples are written in Kotlin. Kotlin is an
`official Android language <https://developer.android.com/kotlin/index.html> `_ , and you can read more about why
Kotlin is a strong successor to Java
`here <https://medium.com/@octskyward/why-kotlin-is-my-next-programming-language-c25c001e26e3> `_ . If you're
unfamiliar with Kotlin, there is an official
`getting started guide <https://kotlinlang.org/docs/tutorials/> `_ , and a series of
`Kotlin Koans <https://kotlinlang.org/docs/tutorials/koans.html> `_ .
2016-05-18 09:39:47 +00:00
2018-07-12 16:34:13 +00:00
* IntelliJ IDEA is recommended due to the strength of its Kotlin integration
2017-01-31 12:59:24 +00:00
2017-06-05 12:37:23 +00:00
Following these software recommendations will minimize the number of errors you encounter, and make it easier for
others to provide support. However, if you do use other tools, we'd be interested to hear about any issues that arise.
2015-11-25 13:27:07 +00:00
2017-05-12 10:32:19 +00:00
Set-up instructions
-------------------
2018-07-12 16:40:10 +00:00
The instructions below will allow you to set up your development environment for running Corda and writing CorDapps. If
you have any issues, please reach out on `Stack Overflow <https://stackoverflow.com/questions/tagged/corda> `_ or via
`our Slack channels <http://slack.corda.net/> `_ .
2017-05-12 10:32:19 +00:00
2017-09-04 16:07:40 +00:00
The set-up instructions are available for the following platforms:
2018-05-09 14:19:35 +00:00
* :ref: `windows-label` (or `in video form <https://vimeo.com/217462250> `__ )
2017-09-04 16:07:40 +00:00
2018-05-09 14:19:35 +00:00
* :ref: `mac-label` (or `in video form <https://vimeo.com/217462230> `__ )
2017-09-04 16:07:40 +00:00
.. _windows-label:
2017-05-15 10:18:26 +00:00
2017-05-12 10:32:19 +00:00
Windows
2017-09-04 16:07:40 +00:00
-------
.. warning :: If you are using a Mac machine, please follow the :ref: `mac-label` instructions instead.
2017-05-12 10:32:19 +00:00
Java
2017-09-04 16:07:40 +00:00
^^^^
2017-05-12 10:32:19 +00:00
1. Visit http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
2. Scroll down to "Java SE Development Kit 8uXXX" (where "XXX" is the latest minor version number)
3. Toggle "Accept License Agreement"
4. Click the download link for jdk-8uXXX-windows-x64.exe (where "XXX" is the latest minor version number)
5. Download and run the executable to install Java (use the default settings)
2018-04-26 14:50:17 +00:00
6. 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
7. Open a new command prompt and run `` java -version `` to test that Java is installed correctly
2017-05-12 10:32:19 +00:00
Git
2017-09-04 16:07:40 +00:00
^^^
2017-05-12 10:32:19 +00:00
1. Visit https://git-scm.com/download/win
2. Click the "64-bit Git for Windows Setup" download link.
3. Download and run the executable to install Git (use the default settings)
4. Open a new command prompt and type `` git --version `` to test that git is installed correctly
IntelliJ
2017-09-04 16:07:40 +00:00
^^^^^^^^
2017-05-12 10:32:19 +00:00
1. Visit https://www.jetbrains.com/idea/download/download-thanks.html?code=IIC
2. Download and run the executable to install IntelliJ Community Edition (use the default settings)
2018-07-10 13:06:20 +00:00
3. Ensure the Kotlin plugin in Intellij is updated to version |kotlin_version|
2017-05-12 10:32:19 +00:00
2017-09-04 16:07:40 +00:00
.. _mac-label:
2017-05-12 10:32:19 +00:00
Mac
2017-09-04 16:07:40 +00:00
---
.. warning :: If you are using a Windows machine, please follow the :ref: `windows-label` instructions instead.
2017-05-12 10:32:19 +00:00
Java
2017-09-04 16:07:40 +00:00
^^^^
2018-03-14 13:38:21 +00:00
1. Visit http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
2. Scroll down to "Java SE Development Kit 8uXXX" (where "XXX" is the latest minor version number)
3. Toggle "Accept License Agreement"
4. Click the download link for jdk-8uXXX-macosx-x64.dmg (where "XXX" is the latest minor version number)
5. Download and run the executable to install Java (use the default settings)
6. Open a new terminal window and run `` java -version `` to test that Java is installed correctly
2017-05-12 10:32:19 +00:00
IntelliJ
2017-09-04 16:07:40 +00:00
^^^^^^^^
2017-05-12 10:32:19 +00:00
1. Visit https://www.jetbrains.com/idea/download/download-thanks.html?platform=mac&code=IIC
2. Download and run the executable to install IntelliJ Community Edition (use the default settings)
2018-07-10 13:06:20 +00:00
3. Ensure the Kotlin plugin in Intellij is updated to version |kotlin_version|
2017-05-12 10:32:19 +00:00
2017-01-31 12:59:24 +00:00
Next steps
----------
2018-07-12 16:34:13 +00:00
First, run the :doc: `example CorDapp <tutorial-cordapp>` .
2015-12-08 15:47:45 +00:00
2018-07-12 16:34:13 +00:00
Next, read through the :doc: `Corda Key Concepts <key-concepts>` to understand how Corda works.
2015-12-08 15:47:45 +00:00
2017-11-16 15:31:52 +00:00
By then, you'll be ready to start writing your own CorDapps. Learn how to do this in the
2018-07-12 16:34:13 +00:00
:doc: `Hello, World tutorial <hello-world-introduction>` . You may want to refer to the
:doc: `API documentation <corda-api>` , the :doc: `flow cookbook <flow-cookbook>` and the
`samples <https://www.corda.net/samples/> `_ along the way.
2015-11-25 13:27:07 +00:00
2018-07-12 16:34:13 +00:00
If you encounter any issues, please ask on `Stack Overflow <https://stackoverflow.com/questions/tagged/corda> `_ or via
`our Slack channels <http://slack.corda.net/> `_ .