I have installed java 8 on my bluehost VPS. I have followed http://tecadmin.net/install-java-8-on-centos-rhel-and-fedora/ instructions .
In order to add directories to PATH
variable I have added
PATH=$PATH:/opt/jdk1.8.0_45/bin:/opt/jdk1.8.0_45/jre/bin
JAVA_HOME=/opt/jdk1.8.0_45
JRE_HOME=/opt/jdk1.8.0_45/jre
to etc/environment
file.
After that I can't push upgrades to my git repository and when I login via ssh I can't run unix command.
My server OS is CentOS and its 64bit
EDIT :
Error shown in git :
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin master:master
Pushing to [email protected]:/home/darmanjo/darmanjoo.git
bash: git-receive-pack: command not found
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
SSH Problem :
login as: root
[email protected]'s password:
Last login: Tue Apr 21 15:26:53 2015 from 109-110-182-162-dynamic.shabdiznet.com
-bash: id: command not found
-bash: tty: command not found
[email protected] [~]# ls
-bash: ls: command not found
[email protected] [~]#
Also my echo $PATH
shows :
/usr/local/sbin:/usr/sbin:/sbin:$PATH:/opt/jdk1.8.0_45/bin:/opt/jdk1.8.0_45/jre/bin:/root/bin