Install-from-Source
Contents
Install from Source (all platforms)
- Install Java 8+
- Windows: Java 64 BIT
- Linux OpenJDK 8+
apt-get install openjdk-8-jdk
- Install Bazel
- Download source code:
- Inside source directory run
bazel build :all
- Run the Node
bazel-bin/SnowBlossomNode node.conf
- Allow the the node to download the blockchain and sync
- Run the Client
bazel-bin/SnowBlossomClient client.conf
- (optional) Build Stand Alone Jar Files
bazel build \ :SnowBlossomMiner_deploy.jar \ :SnowBlossomNode_deploy.jar \ :SnowBlossomClient_deploy.jar \ :Shackleton_deploy.jar
Testing
bazel test ...
Fireduck's Debian Notes
Bazel install
apt-get install openjdk-8-jdk vim screen git dc dstat curl ntp echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list curl https://bazel.build/bazel-release.pub.gpg | apt-key add - apt-get update apt-get install bazel
To Use java11
You need java8 for bazel to work, but java11 has some performance improvements that help with mining. So you do the above to get openjdk8 and then:
apt-get install openjdk-11-jdk
And then in the .profile or whatever of the user you use to compile:
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
After that, java -version should show openjdk 11 and then you run the deploy jars with: java -jar.