![]() Same for jenv, it's cool and all, but as far as I can tell it merely changes environment variables, so it has the same limitation.Īdding to the above answers, I put the following lines in my. It won't affect an application started from OS launcher (unless you change the right file and logout/login, which is tedious). ![]() Many explain how to change $JAVA_HOME, but this only affects the current shell and what is launched from there. ![]() (*) Current answers are either obsolete (no longer valid for macOS El Capitan or Sierra), or only address a single JDK, or do not address the system-wide aspect. When working in a shell with alternate JDK, pick your method among existing answers ( jenv, or custom aliases/scripts around /usr/libexec/java_home, etc). System launcher will use the JDK with highest version among those that have an ist file. It will simply be ignored by system's java command. That JDK can still be used when $JAVA_HOME points to it, or explicitly referenced in a script or configuration.
0 Comments
Leave a Reply. |