SONAL
SONAL

Reputation: 11

java.lang.IllegalArgumentException in cordapp-example-release-V3

Whenever I run the Run Example Cordapp-Java, I am getting this error. I am new to Corda, learning from corda docs. Please, help me out.

at net.corda.testing.driver.DriverParameters.<init>(Driver.kt)   
at com.example.NodeDriver.main(NodeDriver.java:32)
[quasar] ERROR: java/lang/Object
java.lang.IllegalArgumentException

Upvotes: 1

Views: 509

Answers (3)

Niraj
Niraj

Reputation: 547

I was facing a similar error cause the default java version for my Ubuntu was changed to 11 which I haven't realized, though the project configuration has Java version as 1.8. Later, I changed the system's JDK default to 8 and everything started working normally.

Thanks to @Joel I read his comment

Upvotes: 0

Joel
Joel

Reputation: 23160

As of Corda 3.1, only Oracle JDK 8 JVM is supported, with a minimum version of 8u131.

You can see the required JDK version here: https://docs.corda.net/getting-set-up.html.

Upvotes: 2

Manindra
Manindra

Reputation: 190

I was getting exactly the same error. I was using jdk-10.0.1. When I switched to jdk1.8.0_171, it is working fine. I haven't figured out what in jdk-10.0.1 is causing the error.

Upvotes: 2

Related Questions