hyperledger / web3j-cli

Command-line interface for web3j
https://github.com/web3j/web3j-cli
Other
58 stars 29 forks source link

Project generation Failed with Java 8 #77

Closed gabirezzo closed 1 year ago

gabirezzo commented 2 years ago

Unable to build and start the project using Java version 8.

WhatsApp Image 2021-12-13 at 22 19 29

Details can be found in the log below.

logs.zip

With Java 11 the problem doesn't happen.

Environment

Web3j version: 4.8.7 CLI: 1.4.1 Java version : 8 Operating System : Windows

mohamedelshami commented 1 year ago

@gabirezzo this appears to caused by missing class during classloading.

java.lang.NullPointerException at org.web3j.codegen.unit.gen.CompilerClassLoader.compileClass(CompilerClassLoader.java:86)

I suspect this is due to using Java 8, other than OpenJDK which is the only Java 8 being currently maintained.