How eclipse Flash and reload jdk under Linux

Source: Internet
Author: User

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

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.