Support Java 25 #2277
Replies: 3 comments
-
|
It definitely does, @anandjaisy! But it depends if it can find it. By default JBang will only use Jdks that a) it finds in the PATH or the one pointed at by JAVA_HOME or b) the ones it installs itself. Wanted to tell you that you could enable additional providers, like sdkman, which will allow JBang to pick up on Jdks installed by external applications. Unfortunately it seems we have a regression: #2278 and you won't be able to do that until we fix that. |
Beta Was this translation helpful? Give feedback.
-
|
It is As @quintesse write. Just one clarification - |
Beta Was this translation helpful? Give feedback.
-
|
I totally agree with @quintesse and @maxandersen. JBang does support running scripts with newer Java versions like Java 25, but the version installed via SDKMAN is independent of the JDKs already on your system. SDKMAN installs its own Java version if JBang requires a minimum JDK or if no default Java is set in the SDKMAN environment, which is why it pulled Java 17. JBang itself doesn’t force you to use that version—you can tell it to use your system’s Java 25 by setting your |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Does Jbang support Java 25, when I downloaded the jbang using sdkman, java 17 has been downloaded, even though in my system I already had java 25
Beta Was this translation helpful? Give feedback.
All reactions