1

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
4
  • 1
    Welcome to Stack Overflow! Read How to create a Minimal, Complete, and Verifiable example and edit your question accordingly. Commented Jun 26, 2018 at 15:07
  • What Java version are you using? Commented Jun 26, 2018 at 17:00
  • Add more logcat error please Commented Jun 26, 2018 at 19:18
  • @Joel - java 9 using. Commented Jul 1, 2018 at 6:53

3 Answers 3

2

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.

Sign up to request clarification or add additional context in comments.

Comments

2

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.

Comments

0

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.