Jabba-Team / jabba

(cross-platform) Java Version Manager
Apache License 2.0
141 stars 11 forks source link

Jabba persist env #49

Open JanHuege opened 2 months ago

JanHuege commented 2 months ago

Why does jabba not persist the JAVA_HOME instead is just setting the variable for the sessiontime of the shell?

Version: current Windows release

patrick-mccourt commented 2 months ago

Do you have a default jdk set? e.g. jabba alias default temurin@21

JanHuege commented 2 months ago

Yes. Not working.

I was expecting the following behavior:

"jabba use" persists as JAVA_HOME therefore making the set version available for all tools in any environment like maven. Currently I have to manage the Java_Version per Tool and per Shell. This basically lets me question the purpose of jabba. I know JENV and sdkman for mac and I thought jabba was the pendant in windows but either it's just broken or I don't understand the purpose/value of jabba.