osx - Why when i restart the shell, java is unavailable? -


i have installed java 1.7 on mac, , have edited ~/.bash_profile following:

export java_home=/library/internet\ plug-ins/javaappletplugin.plugin/content    s/home export path=${java_home}/bin:$path 

when execute source /.bash_profile, java become available. when restart shell, got following error message:

no java runtime present, requesting install. 

i have re-execute source /.bash_profile make available.

i confused, hope can me.

it because variables export valid in current ssh session.

look here deeper explanation:

mac os x 10.9 - setting permanent environment variables

as @trojanfoe stated there:

the .bash_profile executed login-shell, whereas .bashrc executed every new shell instance


Comments

Popular posts from this blog

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -