Replace the JDK version in CentOS

Source: Internet
Author: User

Installing Phpstorm in Linux has encountered a problem

inch 8.0  in"main" which requires it.    At Com.intellij.idea.Main.main (Main.java:+)

I do not know how to solve, the installation of the reference to the article is this article

However, when installing the JDK environment variable as shown in the blog encountered a problem, unable to install, and then, the environment variable according to the environment variable installed, installed, installed version is the previous version, that is, 1.8 version

Then download Phpstorm, run ./phpstorm. SH when the top of the problem, Google found that the problem is relatively small, and now has not been resolved.

OK, now it's about replacing the JDK version of Linux, uninstalling the Linux-brought JDK to replace the Sun's JDK Baidu a lot, but if I install the Sun's JDK is 1.7 to change to 1.8 how to solve it, the method is actually super easy.

Put the 1.8 JDK package in the folder you want to put, and then go to /etc/profile to change the path of the environment variable, that is, you originally placed the old version of the JDK address to the new JDK address, and then use source/etc/ profile, without using Rpm-qa | grep jdk to find the JDK.

When you use java-version , you will find that the version has been replaced.

Replace the JDK version in CentOS

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.