Wouldn't it be possible for Daml Connect to throw an error for the wrong Java version?

Recently we ran into a subtle error where we came to the conclusion that it was caused by using Java 8 instead of Java 11. (The error was that Daml Studio didn’t show Script results. No error message indicated that the wrong Java version was used.)

My conclusion is that checking the Java version should be on top of our checklist for debugging.

But it also occurred to me how nice it would be for Daml Connect to check the Java version and throw an error if it’s wrong. Would that be possible?

FYI @RyanMedlen

Definitely possible, I’ve opened Improve error message on unsupported Java versions · Issue #13966 · digital-asset/daml · GitHub to track this.

2 Likes

Thank you!