Running): running (such as/opt) command: sud
Install Eclipse in Ubuntu and configure the startup command line
1 下((my choice is eclipse-jee-juno-sr1-linux-gtk-x86_64.tar.gz): http://www.eclipse.org/downloads/
2. Install eclipse
Extract eclipse-jee-juno-sr1-linux-gtk-x86_64.tar.gz from a directory (for example,/opt)
Command: sudo tar-zxvf eclipse-jee-juno-SR1-linux-gtk-x86_64.tar.gz/opt/
3. Configure the startup command line (your jdk is installed under/opt by default)
1) Run The sudo geidt/usr/bin/eclipse command to create a file and add the following content:
#! /Bin/sh
Export illa_five_home =/usr/lib/mozilla/
Export ECLIPSE_HOME =/opt/eclipse
Export JAVA_HOME =/usr/java/jdk1.5.0 _ 22
Export CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar
Export PATH = $ PATH: $ JAVA_HOME/bin
$ ECLIPSE_HOME/eclipse $ *
2) Run The sudo command
Chmod-x
/Usr/bin/eclipse is set to Executable
3) execute eclipse
OK!
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2