1. Download an object
JDK jdk-1_5_0_06-linux-i586-rpm.bin http://java.sun.com
Eclipse eclipse-SDK-3.1.2-linux-gtk.tar.gz http://www.eclipse.org
2. Install JDK
Chmod + x jdk-1_5_0_06-linux-i586-rpm.bin
/Jdk-1_5_0_06-linux-i586-rpm.bin
Set environment variables, edit/etc/profile, and add
Export J *** a_home =/usr/Java/jdk1.5.0 _ 06
Export Path = $ J *** a_home/bin: $ path
Classpath =.:/usr/Java/jdk1.5.0 _ 06/lib/tools. jar: $ classpath
Export classpath
3. Install eclipse
Tar-zxvf eclipse-SDK-3.1.2-linux-gtk.tar.gz
Then move it to the desired directory. Here it is/usr.
Write an execution script with the following content:
# Eclipse
#
Export J *** a_home =/usr/Java/jdk1.5.0 _ 06
Export classpath =/usr/Java/jdk1.5.0 _ 06/lib
/Usr/Eclipse/eclipse-VM/usr/Java/jdk1.5.0 _ 06/bin/Java-data ~ /Workspace &
CP eclipse. sh/usr/local/bin
Chmod 755/usr/local/bin/eclipse. Sh
Add eclipse. Sh to the desktop. Right-click on the desktop, select "create starter" from the pop-up menu, and enter/usr/local/bin/eclipse in "Eclipse" and "Command" in "name. SH and press "OK". The eclipse shortcut is displayed on the desktop. You can double-click this icon to start eclipse.