How To Install Eclipse 3.3 Manually
I have been using Eclipse for quite some time now. I prefer Eclipse as development IDE because its ease of use. The overall design of Eclipse keeps the tools you need immediately at your fingertips.
Using APT to install Eclipse on your Debian / Ubuntu machine will give you the old version of Eclipse. I would like to share with you my steps to install Eclipse 3.3 manually.
1. You’ll need JRE installed on your machine.
sudo apt-get install sun-java5-jre
2. Download Eclipse SDK from its main site (Choose Eclipse Classic) :
http://www.eclipse.org/downloads/
3. Extract the eclipse download and move to opt.
tar xzf wtp-all-in-one-sdk-1.0-linux-gtk.tar.gz
sudo mv eclipse /opt/eclipse cd /opt sudo chown -R root:root eclipse
sudo chmod -R +r eclipse
sudo chmod +x `sudo find eclipse -type d`
4. Then create an eclipse executable
sudo touch /usr/bin/eclipse
sudo chmod 755 /usr/bin/eclipse
5. Create the file
sudoedit /usr/bin/eclipse
With the content:
#!/bin/sh
#export MOZILLA_FIVE_HOME=”/usr/lib/mozilla/”
export ECLIPSE_HOME=”/opt/eclipse”$ECLIPSE_HOME/eclipse $*
6. If you use gnome, create a shortcut
sudoedit /usr/share/applications/eclipse.desktop
With the content :
[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse IDE
Exec=eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true
Configure
That’s it. You can start your eclipse by typing eclipse in your terminal. The new Eclipse a bit faster than before. You should have a try.
Posted on July 8th, 2007 by SMD
Filed under: Debian, Ubuntu
I am a Free and Open Source Software lover, advocate. I would like to see Open Source grow, and more users being able to use and understand it. I would like to continue to become a part of this growing community, and to grow with it! 



Trying to get this setup but seem to have an issue with path?
I followed the instructions but if I type ‘eclipse’ in the terminal I get:
“/opt/eclipse”/eclipse: not found
I can go directly to /opt/eclipse and type ./eclipse and it starts OK…
Any ideas where I went wrong?
Thanks!
Jim,
Are you sure you’ve put correct content on /usr/bin/eclipse ?
Try change the export ECLIPSE_HOME without ” (double-quote).
export ECLIPSE_HOME = /opt/eclipse
I just switched from Windows to Ubuntu and did things quite differently. After I downloaded the Eclipse archive to the desktop, I right clicked it and selected ‘open’.
This opened the archive. I then selected ‘extract’ from the menu. For the location I selected usr/local/ because my Java version installed itself in that directory as well.
After extracting I went to ‘Places’ in the menu bar and then to ‘Home Folder’. My new eclipse directory was there. I opened it, right clicked the eclipse executable and selected ‘create link’. This link I moved to the desktop. This worked nicely, there was only one problem when I opened Eclipse for the 1st time; some file in the ‘welcome’ project could not be found.
This is the way I used to install Eclipse under Windows and it works surprisingly well under Ubuntu. Or is this the wrong way of handling things?
Misja,
This is an alternative way to install eclipse from the source code.
I’m seeing some unpleasant messages with both of these methods. Anyone else had these?
Thnaks
!MESSAGE Could not load Intro content file: file:///usr/local/packages/eclipse/plugins/org.eclipse.ui.intro.universal_3.2.100.v20070530A/introContent.xml
!STACK 0
gnu.xml.dom.ls.DomLSException: no root element: U+ffffffff
at gnu.xml.dom.ls.DomLSParser.doParse(libgcj.so.70)
at gnu.xml.dom.ls.DomLSParser.parse(libgcj.so.70)
at gnu.xml.dom.ls.DomLSParser.parseURI(libgcj.so.70)
at gnu.xml.dom.DomDocumentBuilder.parse(libgcj.so.70)
at org.eclipse.ui.internal.intro.impl.model.loader.IntroContentParser.parse(IntroContentParser.java:94)
at org.eclipse.ui.internal.intro.impl.model.loader.IntroContentParser.(IntroContentParser.java:56)
at org.eclipse.ui.internal.intro.impl.model.IntroModelRoot.loadDOM(IntroModelRoot.java:854)
at org.eclipse.ui.internal.intro.impl.model.IntroModelRoot.loadChildren(IntroModelRoot.java:188)
at org.eclipse.ui.internal.intro.impl.model.AbstractIntroContainer.getChildren(AbstractIntroContainer.java:78)
at org.eclipse.ui.internal.intro.impl.model.IntroModelRoot.loadModel(IntroModelRoot.java:150)
at org.eclipse.ui.internal.intro.impl.model.loader.BaseExtensionPointManager.loadModel(BaseExtensionPointManager.java:95)
I followed these instructions closely, but am still getting an error :
$ eclipse
/usr/bin/eclipse: 5: /opt/eclipse/eclipse: not found
If I look for it, I find it :
$ ls /opt/eclipse/eclipse
/opt/eclipse/eclipse
Strangely, no matter where I try and run eclipse from, it always seems to fail with a “not found” error.
Nevermind, got it. After playing with multiple versions of Eclipse, one of them worked : 3.2.2, Linux, GTK x86_64
For step 3, a simple “cd /opt” “sudo tar xzf ~/eclipse.tgz” would do it.
Thank you for this tutorial. It works. Can you please’ help me to install french language pack?
[...] got me going at http://www.sumardi.net/2007/07/08/how-to-install-eclipse-33-manually/ but this solution did not work completely for me. [...]
Thank you for the instructions. Worked perfectly - come and get your free beer in Switzerland! Rodolfo
I had the same error
$ eclipse
/usr/bin/eclipse: 5: /opt/eclipse/eclipse: not found
But i took out the quotes around the path in
Export ECLIPSE_HOME=”/opt/eclipse”
and it worked from there. Try that and see.
hello
try install Eclipse with yum, i.e.
yum install eclipse-pde-devel ( on Fedora Linux)
hello wknight97,
we’re talking about installing eclipse manually which means from the source.
Thanks a lot, it works for KDE too, with a little bit modified proc:
I only used vi instead of sudoedit
and patch in /usr/bin/eclipse:
export ECLIPSE_HOME = /opt/eclipse
(instead of quoted)
and in /usr/share/applications/eclipse.desktop
Start from command line than works well.
Then I removed Configure from the last line of application config to make it working.
And from KDE menu editor modified command to start application (it was “eclipse”)to the following line:
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.13/;export PATH=$PATH:/usr/lib/jvm/java-1.5.0-sun-1.5.0.11/bin/;eclipse
Hi,
1. thank you for that tuto on manual install it works!!!!
2. eclipse keep crashing on the lauch or when it starts software updates find and install!
what should i do (it is for eclipse 3.3.2)
abibabou
Hi abibabou,
2. Can you give your error message?
You should take a look at
http://www.sumardi.net/2007/05/07/eclipse-failure-at-startup/
Hi,
Sorry for the delay and thank you for your prompt answer, I solve the problem at startup, but an other occured when i try to use the software update find and install
Here is the message error after forcing it to quit:
JVM terminated. Exit code=1
/usr/bin/java
-Xms40m
-Xmx256m
-jar /opt/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
-os linux
-ws gtk
-arch x86
-showsplash
-launcher /opt/eclipse/eclipse
-name Eclipse
–launcher.library /opt/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.3.R33x_v20080118/eclipse_1023.so
-startup /opt/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
-exitdata a0010
-vm /usr/bin/java
-vmargs
-Xms40m
-Xmx256m
-jar /opt/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
Why is it doing that? I have to tell you i am “novice” whith linux
welcome back abibabou,
Remove all the java files and install the latest jdk from sun. Then start the Eclipse, it will run.
Hello there,
I have tried everything to remove all the java file. I can remove the one in the the old eclipse used. But it seems that the eclispse you help me to install before uses another jdk.
Could you please help me clear the computer with any java files?
Thank you.
You can use this command line to choose which JDK to use
sudo update-alternatives –config java
Hya,
That is very cool.
Everything is working very well.
Thank you buddy.
abibabou