How to Upgrade JDK 1.6 to 1.7 on Linux or CentOS?

Loads of you had been requested, so the thought was to get issues straight.

On this article, I’ll speak about the best way to improve JDK (Java Improvement Equipment). 1.6 Disagreeable 1.7 on Pink Hat Linux or CentOS.

This assumes that you’ve root permission and that JDK 1.6 or earlier is already put in.

  • Let’s confirm the Java model put in on the server.
[~] #java -version
java model "1.6.0_24"
OpenJDK Runtime Atmosphere (IcedTea6 1.11.11.90) (rhel-1.62.1.11.11.90.el6_4-x86_64)
OpenJDK 64-Bit Server VM (construct 20.0-b12, combined mode)
[~] #
  • Obtain JDK 1.7 from Oracle obtain web page and add to the server within the /tmp space
  • Set up downloaded JDK1.7 RPM utilizing rpm –ivh command
[/tmp] #rpm -ivh jdk-7u60-linux-x64.rpm
Getting ready...       ########################################### [100%]
1:jdk           ########################################### [100%]
Unpacking
JAR recordsdata...
rt.jar...
jsse.jar...
charsets.jar...
instruments.jar...
localedata.jar...
jfxrt.jar...
[/tmp] #
  • JDK 1.7 is now put in and able to use. By default, it’s put in below the /usr/java listing.
[/usr/java] #ls -ltr
whole 4
drwxr-xr-x. 8 root root 4096 Jul  1 15:14 jdk1.7.0_60
lrwxrwxrwx. 1 root root   21 Jul  1 15:14 newest -> /usr/java/jdk1.7.0_60
lrwxrwxrwx. 1 root root   16 Jul  1 15:14 default -> /usr/java/newest [/usr/java]
#
  • Now you’ll be able to set /usr/java/jdk1.7.0_60 to JAVA_HOME surroundings variable to make use of JDK 1.7
  • Now let’s confirm the JAVA model.
[~] #java -version
java model "1.7.0_60" Java(TM) SE Runtime Atmosphere (construct 1.7.0_60-b19)
Java HotSpot(TM) 64-Bit Server VM (construct 24.60-b09, combined mode)
[~] #

I hope this quick information helps you improve JDK on a Linux platform.

Rate this post
porno izle altyazılı porno porno