Getting set up: Capsule Exception on macOS


(Douglas Thiel) #1

kotlin-source/build/nodes/runnodes

CAPSULE EXCEPTION: Could not find Java installation for requested version [Min. Java version: 1.8.0 JavaVersion: null Min. update version: {1.8=131}] (JDK required: false). You can override the used Java version with the -Dcapsule.java.home flag. (for stack trace, run with -Dcapsule.log=verbose)

java -version:
java version "1.8.0_40"
Java™ SE Runtime Environment (build 1.8.0_40-b26)
Java HotSpot™ 64-Bit Server VM (build 25.40-b25, mixed mode)

macOS High Sierra 10.13

Although it has no affect:
echo $JAVA_HOME is /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home


(Thiago Rafael Ferreira) #2

Hello Douglas,
Your prompt print that you have Java 8 version 1.8.040 on your path. You need to have Java 8 - Minimum version: 1.8_131 on your path (please read README file in cordapp, for example: cordapp-template-kotlin). There are some information/requisitions to run your Cordapp)
Try to download Java 8 last version and try again.

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Best Regards,
Thiago


(Douglas Thiel) #3

Wow, thought I had the most recent version as my Java preference pane said. Anyway, thanks for spotting that. Everything is good now.