linux - java -version returning an error but bash profile is correct -
when run java -version returns:
-bash: java: command not found. when go opt/java/bin/java -version returns 1.6 etc expected.
if tab java's available @ prompt get:
javac javadoc javah javap but not plain old java.
my ~/.bash_profile reads:
java_home=/opt/java/ export java_home tried re-installing java, seeing same result. missing something?
am missing something?
your bash profile not correct.
if
/opt/javajava installation directory, need/opt/java/binon command search path; i.e.pathenvironment variable.
Comments
Post a Comment