Loading OPENJDK and Oracle JDK at openSUSE 13.1

Source: Internet
Author: User

The usual working machine is openSUSE 13.1. After replacing it with Oracle JDK, the INTELLJ interface became invisible, did not want to debug and then uninstalled the Oracle JDK and reinstalled the OPENJDK.

[Uninstallation of Oracle JDK]

1. Query Package Name

Rpm-qa | grep Java

The name of the query to the Oracle JDK RPM installation package is Java-xxx-fcs.

2. Uninstall

Rpm-e Java-xxx-fcs

3. Delete Related environment variables

Remove the environment variables such as/etc/environment or Java_home in. bashrc.

This allows the Oracle JDK to be removed.

[Installation of OPENJDK]

1. Run the following command.

sudo  in-F java-1_7_0-openjdksudo in-f java-1_7_0-openjdk-devel

The first package is a JRE.

The second package is a JDK.

The installation path is located under/usr/lib64/jvm/and the current stable version is 1.7.0.

2. Set environment variables.

The java_home of OpenSUSE 13.1 should be set in/etc/environments:

Java_home="/usr/lib64/jvm/java-1.7.0"

[Uninstall of OpenJDK]

Remove the ' java_home ' environment variable and uninstall the relevant package by completely reversing the installation steps.

2014-08-28

Loading OPENJDK and Oracle JDK at openSUSE 13.1

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.