& 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.