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.