How to crash Eclipse and reinstall JDK in Linux

Source: Internet
Author: User

How to crash Eclipse and reinstall JDK in Linux

Install Eclipse in a Linux virtual machine to write Java code. There is no exception at first, but Eclipse will crash when the smart prompt function is used or for any other reason.

After finding a solution on the Internet for a long time, the solution is finally solved.

JDK installed in Linux is the latest version 1.8

Reinstall JDK 1.6

Then edit eclipse. ini in the eclipse installation directory.

Save the following statements:

-Dorg. eclipse. swt. browser. DefaultType = mozilla
-Dorg. eclipse. swt. browser. UseWebKitGTK = true
-Dorg. eclipse. swt. browser. XULRunnerPath =/usr/lib/xulrunner-2

Restart eclipse to solve the problem

Reinstall jdk:

Use

Rpm-qa | grep jdk

Rpm-qa | grep gcj

View the specific version number

Use

Rpm-e -- nodeps java-1.4.2-gcj-compat-1.4.2.0-40jpp.115

Uninstall

You can use java-version to check

Download jdk1.6

Create a java file under the usr directory

Mkdir/usr/java

Modify jdk File Permissions

Chmod 755 jdk-6u11-linux-i586.bin

Run the jdk File

/Jdk-6u11-linux-i586.bin

Configure environment variables after completion

Vi/etc/profile

Add the following content

Export JAVA_HOME =/usr/java/jdk1.6.0 _ 27
Export JAVA_BIN =/usr/java/jdk1.6.0 _ 27/bin
Export PATH = $ PATH: $ JAVA_HOME/bin
Export CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar
Export JAVA_HOME JAVA_BIN PATH CLASSPATH

Use./etc/profile to make it take effect

You can see the new jdk version after using java-version.

In Ubuntu 14.04, Eclipse 3.7.2 cannot be started.

Install Java 8 and Eclipse 14.04 on Ubuntu 4.4 LTS

Install JDK 7 In Ubuntu (with Clojure download)

Install JDK 12.04 in Ubuntu

Install Oracle JDK 14.04 on Ubuntu 1.8 LTS

CentOS6.3 install JDK and environment Configuration

Install JDK 8 on Ubuntu 14.04

Install JDK graph analysis in Ubuntu

This article permanently updates the link address:

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.