Ended up being an issue with java-lite protos in eclipse, amended to used full java 3.18.0 to resolve. My clean eclipse build notes,
Install JDK 11
Set JAVA_HOME = D:\Java\jdk-11.0.12
Add %JAVA_HOME%\bin to PATH
Install Gradle 4.10.2
D:\Gradle\gradle-4.10.2
Add Gradle bin to PATH
D:\Gradle\gradle-4.10.2\bin
Clone latest bitcoinj release
git clone -b release-0.16
https://github.com/bitcoinj/bitcoinj.gitAmmend core\build.gradle to protobuf-java-3.18.0 (not java-lite) and comment out //option "lite" (
https://repo.maven.apache.org/maven2/com/google/protobuf/protobuf-java/)
api 'com.google.protobuf:protobuf-java:3.18.0'
...
protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.18.0'
}
generateProtoTasks {
all().each { task ->
task.builtins {
java {
//option "lite"
}
}
}
}
Build and create eclipse config in bitcoinj folder
gradle init
gradle clean assemble
gradle eclipse
Install eclipse-java-2020-06-R-win32-x86_64
File > Import > General > Existing Projects into Workspace > <bitcoinj folder>
Change file encoding to UTF8 /bitcoinj-core/src/test/java/org/bitcoinj/utils/BtcFormatTest.java
Run /bitcoinj-tools/src/main/java/org/bitcoinj/tools/WatchMempool.java