Hello World Hashgraph Raspberry Pi

June 17, 2018
If you have a Raspberry Pi lying around and fancy seeing if you can get the Hashgraph sdk running on it, here is how. Step 1: Check if Java is present and if it is 1.8+ If you are running Raspbian Stretch, it will have Java 8 already on it. Otherwise you’ll have to download it at  Oracle The location of Java on the Pi is: /usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt Step 2: Get the sdk Run: > wget If you try running the sdk: > jav -jar swirlds.jar and get this error: The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program NB: JAVA_HOME should point to a JDK not a JRE Make sure you have set JAVA_HOME correctly. To set it run: > nano ~/.profile and add this line at the bottom of the file: export JAVA_HOME=/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt Take care of arm32 if you copied the command from another website. Test by running: > echo $JAVA_HOME > /usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt Step 3: Download JCE If you try and run it now, you’ll probably get this error: *************************************************************************** * ERROR: Please install the Oracle JCE Unlimited Jurisdiction Policy files. * They can be downloaded as a single .zip file from: *     […]
Read More ›

Hashgraph Hello World

June 13, 2018
If you’ve heard about Hashgraph and wondering how to get started, here is a little guide based off the docs provided in the SDK. Running the demo is easy but preparing your system can take a little bit of time. (Just like cooking!) A good place to start is where you can read a bit about it but there is a section for developers which points you to which is where the good stuff is. There is a “How do I get started?” section which is where you … start. The instructions are at: Pre flight check list Step 1: JDK 8 You need at least JDK 8 otherwise you’ll get an error like this: > cloudnthings$ java -jar swirlds.jar > Exception in thread "main" java.lang.UnsupportedClassVersionError: com/swirlds/platform/Browser : Unsupported major.minor version 52.0 If you are on a Mac, you want to run: > java -version java version "1.8.0_171" Java(TM) SE Runtime Environment (build 1.8.0_171-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode) and make sure you get a response like above. Otherwise go to Oracle and download the Java SE Development Kit. Go through the installation process and you should see a folder called jdk1.8.0_171.jdk at /Library/Java/JavaVirtualMachines/ Run the java -version command again […]
Read More ›