Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Install and Run eclipse on ubuntu [closed]

I am trying to install the eclipse modelling tools on ubuntu. I have downloaded the eclipse from the eclipse site and I have extracted the file. I can see the eclipse icon but I cannot run it. I think I need to install it first but, I don't know how. I am new to the unix world.

I think I should first configure and do something like make so that it will be installed; Can someone please help me? I googled a lot, but I didn't find any complete answer for this problem.

like image 368
doniyor Avatar asked Nov 28 '12 10:11

doniyor


People also ask

How do I run Eclipse after installing Linux?

Double-click the Eclipse installer to run it. It's the file that begins with eclipse-inst . If you're using Linux, you'll need to unzip the downloaded file so you can access the installer. Just type tar -xvf eclipse-inst-jre-linux64.

How do I open Eclipse after installing Ubuntu?

To run Eclipse from anywhere in the Terminal, add the eclipse install directory to PATH environment variable. Append eclipse directory to the PATH. Save the file. Now we can launch Eclipse IDE on Ubuntu Linux from anywhere in the Terminal windows.

How do I run Eclipse after installation?

To run Eclipse, open the " /usr/local/eclipse " folder and click on the "Eclipse" icon; or start a "Terminal", enter "eclipse".


2 Answers

I give you the Installation procedure of Eclipse 3.7 on Ubuntu 11.04.

1) Download Eclipse. I got eclipse-SDK-3.7-linux-gtk-x86_64.tar.gz

2) Extract it

tar xzf eclipse-SDK-3.7-linux-gtk-x86_64.tar.gz

Or just be lazy and Right Click > Extract Here

3) Move to /opt/ folder

 sudo mv eclipse /opt/
 sudo cd /opt/
 sudo chown -R root:root eclipse
 sudo chmod -R +r eclipse

4) Create an eclipse executable in your path

sudo touch /usr/bin/eclipse
sudo chmod 755 /usr/bin/eclipse
sudo nano /usr/bin/eclipse

copy this into nano

#!/bin/sh
#export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
export ECLIPSE_HOME="/opt/eclipse"

$ECLIPSE_HOME/eclipse $*

save the file (^O = Ctrl+o) and exit nano (^X = Ctrl+x)

5) Create a gnome menu item

sudo nano /usr/share/applications/eclipse.desktop

copy this into nano

[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

save and exit nano

6) Launch Eclipse for the first time

/opt/eclipse/eclipse -clean &

Hope it helps.

like image 145
Harish Raj Avatar answered Sep 28 '22 11:09

Harish Raj


I've written an installer for Eclipse: https://github.com/bepcyc/eclipse_installer

Just download the eclipse archive (.tar.gz) to the same directory as the script and run:

./eclipse_installer.sh

It should work for any version of Eclipse and Linux.

like image 20
Viacheslav Rodionov Avatar answered Sep 28 '22 12:09

Viacheslav Rodionov