This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse installation in ubuntu12.04 manually Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse installation in ubuntu12.04 manually" Watch "Eclipse installation in ubuntu12.04 manually" New topic
Author

Eclipse installation in ubuntu12.04 manually

Priya chek
Ranch Hand

Joined: Feb 12, 2013
Posts: 44
Eclipse can't launch in Ubunto 12.04.Which verrsion of eclipse is compatable with eclipse.??How to install eclipse in ubunto??i tried lot. But failled. Getting error message like 'can't launch /opt/eclipse'. please help me.please. I appreciate any help. plzzz
Archana Nanjundarao
Greenhorn

Joined: Sep 26, 2007
Posts: 12
Hi,

Did you download Eclipse from Software Center on Ubuntu?


Thanks,
Archana Rao
Priya chek
Ranch Hand

Joined: Feb 12, 2013
Posts: 44
yes Eclipse Indigo...but it is not working...some error in log files.
Archana Nanjundarao
Greenhorn

Joined: Sep 26, 2007
Posts: 12
Hi,

My bad, I didn't see the "manually" part of your question. Please check if you have eclipse executable in /opt/eclipse folder first. If you don't have search for the executable location and set the path as below.

Exec=/opt/eclipse/your_eclipse_executable_location
sudo ln -s /opt/eclipse/your_eclipse_executable_location

Archana Nanjundarao
Greenhorn

Joined: Sep 26, 2007
Posts: 12
If you already have executable present in /opt/eclipse then try changing the access to it.

chmod +x /opt/eclipse/eclipse
Priya chek
Ranch Hand

Joined: Feb 12, 2013
Posts: 44
I tried it.But getting error 'cannot access `/opt/eclipse/eclipse': Not a directory'
Priya chek
Ranch Hand

Joined: Feb 12, 2013
Posts: 44
Hi,

I checked file type of the file 'eclipse' in my /usr/local/bin
/usr/local/bin$ file eclipse
eclipse: broken symbolic link to `/opt/eclipse/eclipse'

getting it as a broken symbolic link. what happend?? how it break??
Archana Nanjundarao
Greenhorn

Joined: Sep 26, 2007
Posts: 12
Try this.. It should fix the broken link

sudo rm /usr/local/bin/eclipse
sudo ln -s /opt/eclipse/eclipse /usr/local/bin/eclipse

sudo /opt/eclipse/eclipse -clean &
Priya chek
Ranch Hand

Joined: Feb 12, 2013
Posts: 44
Hi Archana,

I tried it.but .getting error like

sudo: /opt/eclipse/eclipse: command not found






Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Hmm, something seems wrong in you Eclipse installation. Let me see if I understand this correctly. You downloaded a tar.gz file from the Eclipse download site and unpacked it to /opt. Is that correct? Or did you download a .zip file?

Also, post the output to this command:

ls -al /opt

Finally, what JDK are you using and how did you install it?


JBoss In Action
Priya chek
Ranch Hand

Joined: Feb 12, 2013
Posts: 44
Hi..
Actually i got tar file of eclipse.& i untarr it &moved it to /opt then when i try to launch i can't. Getting error. I installed jdk7 manually.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Where did you get a .tar file? The only Linux downloads I see on the Eclipse download page are all tar.gz files.

Open a terminal and enter:

java -version

And post the results. (I suspect you might not have changed the /usr/bin/java softlink to reference the JDK 7 java that you installed.)

You also did not post the 'ls' output I asked for.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Eclipse installation in ubuntu12.04 manually
 
Similar Threads
Using Java in Linux
Eclipse Helios, Fedora 15 and JDK 7.0
Eclipse problem
Eclipse IDE installation
eclipse 3.0 *error* launching