SUSE 10.2 Linux To configure the Eclipse development environment

Source: Internet
Author: User
Tags gtk

To run eclipse, you must have the support of the Java Runtime environment. After installing SuSE 10.2, the system will have a Java GNU compiler GCJ (this is my personal installation option).

You can test the following:

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; The source for copying conditions. There is NO

Warranty Not even for merchantability or FITNESS for A particular purpose.

In general, using the Sun's Java compiler jdk, you can download "Jdk-1_5_0_14-linux-i586.bin" from java.sun.com, move it to the/OPT directory, and use the following command to make it executable:

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

Then you can run it directly:

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

At this point, if the "Java-version" is still displayed as "1.4.2", this is because I have not configured the environment, you can modify the personal user home directory of the. bashrc file:

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

Unlike windows, the delimiters between Linux variables are ":" instead of ";".

We can test it again, after landing:

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 I installed SuSE, so I used the GTK version. Of course, KDE can also use the GTK version.

By extracting eclipse into the/OPT directory, you can use it like windows.

Note: The/OPT directory is just the directory I choose, and readers can use any of their favorite directories.

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.