Installing eclipse in a Linux virtual machine writing Java code
It's not unusual at first, but one uses smart hints or whatever, and eclipse will flash back.
On the Internet to find an n-long solution finally solved
Linux-loaded JDK is the latest 1.8
Re-installed JDK 1.6
Then edit the Eclipse.ini in the Eclipse installation directory
Add the following words to save
-dorg.eclipse.swt.browser.defaulttype=mozilla
-dorg.eclipse.swt.browser.usewebkitgtk=true
-dorg.eclipse.swt.browser.xulrunnerpath==/usr/lib/xulrunner-2
Restart Eclipse Problem Resolution
To reload the JDK:
Use
Rpm-qa | grep JDK
Rpm-qa | grep GCJ
To view the specific version number
Use after determining the version number
RPM-E--nodeps java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
Unloading
Can be checked with java-version after completion
Download the jdk1.6 version later
Create a new Java file in the USR directory
Mkdir/usr/java
Modify JDK file permissions
chmod 755 Jdk-6u11-linux-i586.bin
Executing JDK files
./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 Make it effective
You can see the new JDK version with Java-version.
How eclipse Flash and reload jdk under Linux