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: