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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -