Java_HOME not found when changed shell from Bash to Zsh on OSX? -


this weird, have set java_home mac can found when using bash shell, if change shell, message saying java_home not set. going on here?

when set java_home in shell, active , available context, , gone when close shell.

instead either change global environment (or) .bashrc include it. every time start shell, variable available.

edit .profile or .bash_profile include java_home.

export java_home=`/usr/lib....` 

and below command return path java home directory.

/usr/libexec/java_home -v 1.7 

where 1.7 version want.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -