Skip to content

jshell version != JDK version #12

@danwallach

Description

@danwallach

I've got everything in my project using Java17:

% echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/amazon-corretto-17.jdk/Contents/Home/
% which java
/Library/Java/JavaVirtualMachines/amazon-corretto-17.jdk/Contents/Home/bin/java
% which jshell
/Library/Java/JavaVirtualMachines/amazon-corretto-17.jdk/Contents/Home/bin/jshell

Similarly, my build.gradle specifies Java17 in all the right places and if I call System.getProperty("java.version"), it prints "17.0.1".

But, when I run ./gradlew --console plain jshell, I get this:

...
> Task :jshell
|  Welcome to JShell -- Version 11.0.7
|  For an introduction type: /help intro

jshell> 

Is this configurable somewhere?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions