Unable to clear JAVA_HOME
nirvdrum opened this issue · 1 comments
nirvdrum commented
I work on a project where it's necessary to clear the JAVA_HOME
environment variable in order to get the build script to use its own bundled JVM. I'm finding that asdf-java always resets JAVA_HOME
right after I clear it. I'm using the fish shell, for what it's worth, following the steps in the docs for loading the plugin. I think the solution might be to just set JAVA_HOME
at shell startup. Currently, a somewhat costly process is initiated whenever I read an env var as asdf-java detects the active JDK and sets JAVA_HOME
to point at it.
mills-nick commented
are you using asdf_update_java_home
? This was always setting my JAVA_HOME to /usr