View Single Post
Posts: 126 | Thanked: 160 times | Joined on Aug 2012
#375
I did so
Code:
sudo gainroot
cd MyDocs
mkdir /opt/java
mv ejre-7u45-fcs-b15-linux-arm-vfp-hflt-client_headful-26_sep_2013.tar.gz /opt/java
cd /opt/java
tar –xzvf ejre-7u45-fcs-b15-linux-arm-vfp-hflt-client_headful-26_sep_2013.tar.gz
ln -s /opt/java/ejre1.7.0_45/bin/* /usr/bin/
Re-start the terminal, not as root, and type the following to check for successful Java install -
Code:
java -version
and have the result:
-sh: java: not found

The files all have "-rwxr-xr-x" for their permissions.
Code:
~ $ ls -al /home/opt/java/ejre1.7.0_45/bin
drwxrwxr-x 2 uucp 143 4096 Sep 27 10:22 .
drwxrwxr-x 4 uucp 143 4096 Oct 3 01:16 ..
-rwxr-xr-x 1 uucp 143 3512 Sep 27 10:22 java
-rwxr-xr-x 1 uucp 143 3616 Sep 27 10:22 keytool
How to install the Java correctly?

In /usr/bin see permission for java and keytool rwxrwxrwx.

Last edited by pinochio; 2014-01-10 at 21:54.