hyperledger / fabric-chaincode-java

Hyperledger Fabric Contract and Chaincode implementation for Java
https://hyperledger.github.io/fabric-chaincode-java/
Apache License 2.0
304 stars 207 forks source link

build failed #229

Closed BeniMori closed 2 years ago

BeniMori commented 2 years ago

any suggestions how to solve this issue?

gqqnbig commented 2 years ago

check your JAVA_HOME environment variable or javac --version. The required version is jdk8.

But I do believe build.gradle can be revised to specify the jdk version. https://docs.gradle.org/current/userguide/toolchains.html

gqqnbig commented 2 years ago

What exactly do you want to build? For me I only want to build the jar of fabric-chaincode-shim. I used ./gradlew build -x javadoc and it worked. How about you?

mbwhite commented 2 years ago

Hello; if you still have issues with building the repo or contract code please do open an issue with the problems you're seeing.