Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed 12.04 xubuntu and latest eclipse. Java is also installed. path is set correctly. but there are two things strange to me.

  1. when I double click the eclipse executable, it says cannot find java;
  2. create a launcher on the desktop, it says the same thing as above;**

open a terminal, type eclipse, it will start eclipse without any error. type java in terminal also shows java is installed and available to the system.

share|improve this question
Did you install eclipse from the standard repository or standalone (downloading from it's site)? – Anwar Shah Sep 17 '12 at 14:37
up vote 2 down vote accepted

I suspect you need to use update-alternatives to get the links to default locations in order. Your edits to .bashrc aren't applied unless you run in a terminal.

Alternately, you could make a bash script to run your bashrc and then eclipse and use that as your launcher target.

share|improve this answer

Maybe this question is duplicated and the following link can help:

How to pin Eclipse to the Unity launcher?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.