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

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -