Apollo is being developed by the Apollo Foundation and supporting members of the community.
This repository contains core classes of Apollo blockchain platform. For executable builds please refer Apollo-exec repository.
Java 11 is required to run the desktop clients.
##Other modules required to build Apollo components
1. Apollo-bom-ext
2. Apollo-web-ui
3. Apollo-exec
If you have already installed jdk 11, you can skip "Preparation steps" section, but its recommended to review your software versions using instructions from "Preparation steps" section
- Download Java Development Kit (jdk), version 11
- Setup
JAVA_HOMEvariable to point on unpacked jdk if not set - Add to
PATHvariable path to java binaries ->$JAVA_HOME/binNOTE: if your computer has jdk 8, jdk 9 or jdk 10, you should remove path from
PATHvariable - Open command line and execute:
java -version.
Output example:
java version "11.0.2" 2019-01-15 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.2+9-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+9-LTS, mixed mode)
- If version matches downloaded version, your java was installed successfully and you can proceed with next steps. If version
does not
match,
delete old version, setup
variables (
JAVA_HOME,PATH) and try again. PATH should not contain few java bin directories! - Open command line, change your current directory to this project root and execute
- for Linux:
./mvnw -v- for Windows cmd:
mvnw -vOutput example:
Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117; 2019-08-27T18:06:16+03:00)
Maven home: /home/your_user_name/.m2/wrapper/dists/apache-maven-3.6.2-bin/795eh28tki48bv3l67maojf0ra/apache-maven-3.6.2
Java version: 11.0.2, vendor: Oracle Corporation, runtime: /usr/java/jdk-11.0.2
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.20.16-200.fc29.x86_64", arch: "amd64", family: "unix"
- If maven version, javaHome and java_version matches your downloaded java then you are able to build and run wallet! Just choose your OS from the list below and perform specified steps.
- Clone repository using git command
git cloneor download archive file of source code - go to source directory
- run
./build-all.sh(or./build-all.sh -DskipTestsfor skipping tests)
- Clone repository using git command
git cloneor download archive file of source code - go to source directory
- run
build-all.bat(orbuild-all.bat -DskipTestsfor skipping tests)
Project is entirely on Maven v3 and could be loaded in any IDE that supports Maven.