Configure the Eclipse development environment in SUSE10.2Linux

Source: Internet
Author: User
& Nbsp; to run Eclipse, you must have support for the Java Runtime Environment. After SUSE10.2 is installed, the system will contain the Java GNU compiler GCJ (this is my personal installation option ). Can be tested: hitisp:/opt # java-versionjavaversion1.4.2gij (GNUlibgcj) versio  

To run Eclipse, you must support the Java Runtime Environment. After SUSE 10.2 is installed, the system will contain the Java GNU compiler GCJ (this is my personal installation option ).

Test:

Hitisp:/opt # java-version

Java version "1.4.2"

Gij (GNU libgcj) version 4.1.2 20061115 (prerelease) (SUSE Linux)

Copyright (C) 2006 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

Warranty; not even for MERCHANTABILITY or fitness for a particle PURPOSE.

General, are using the Sun Java compiler JDK, you can download the "jdk-1_5_0_14-linux-i586.bin" from java.sun.com, move it to the/opt directory, in order to make it executable, use the following command:

Hitisp:/opt # chmod + x jdk-1_5_0_14-linux-i586.bin

Then you can directly run:

Hitisp:/opt #./jdk-1_5_0_14-linux-i586.bin

If you execute "java-version" or the above "1.4.2" is displayed, this is because I have not configured the environment, you can modify the. bashrc file in the home directory of the individual user:

Set JAVA_HOME =/opt/jdk1.5.0 _ 14

Set PATH = $ JAVA_HOME/bin: $ PATH

Set CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar

Export JAVA_HOME

Export PATH

Export CLASSPATH

Different from Windows, the delimiter between Linux variables is ":" Instead of ";".

We can test it. after logging on again:

Hitisp:/# java-version

Java version "1.5.0 _ 14"

Java (TM) 2 Runtime Environment, Standard Edition (build 1.5.0 _ 14-b03)

Java HotSpot (TM) Client VM (build 1.5.0 _ 14-b03, mixed mode)

Download eclipse-sdk-3.2.2-linux-gtk.gz from www.eclipse.org. "I used GNOME when installing SUSE, so GTK is used. Of course, you can also use the GTK version for KDE.

Decompress eclipse to the/opt directory, which can be used as in Windows.

Note: The/opt directory is only the selected directory. you can use any of your favorite directories.

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.