[omss@ptud ~]$ java -version
java version "1.7.0_65"
[root@ptud omss]# ln -s -v /home/omss/jdk/bin/java /usr/bin/java
`/usr/bin/java' -> `/home/omss/jdk/bin/java'
[root@ptud omss]# ln -s -v /home/omss/jdk/bin/javac /usr/bin/javac
ln: creating symbolic link `/usr/bin/javac': File exists
[root@ptud omss]# rm -fr /usr/bin/javac
[root@ptud omss]# ln -s -v /home/omss/jdk/bin/javac /usr/bin/javac
`/usr/bin/javac' -> `/home/omss/jdk/bin/javac'
[root@ptud omss]# java -version
java version "1.7.0_80"
java version "1.7.0_65"
[root@ptud omss]# ln -s -v /home/omss/jdk/bin/java /usr/bin/java
`/usr/bin/java' -> `/home/omss/jdk/bin/java'
[root@ptud omss]# ln -s -v /home/omss/jdk/bin/javac /usr/bin/javac
ln: creating symbolic link `/usr/bin/javac': File exists
[root@ptud omss]# rm -fr /usr/bin/javac
[root@ptud omss]# ln -s -v /home/omss/jdk/bin/javac /usr/bin/javac
`/usr/bin/javac' -> `/home/omss/jdk/bin/javac'
[root@ptud omss]# java -version
java version "1.7.0_80"
0 Comment to "How to upgrade java version"
Post a Comment