1

I downloaded the precompiled Eclipse Mars 4.5 in the official site here. Pseudocode

  1. Extract the tarball eclipse-jee-mars-2-linux-gtk-x86_64.tar.gz
  2. Move extracted Eclipse directory to some location where it can be at PATH.
  3. eclipse

Sjsam's contribution [so deprecate this way]

  1. Extract the tarball eclipse-jee-mars-2-linux-gtk-x86_64.tar.gz
  2. sudo mv eclipse /usr/local/bin/ where /usr/local/bin/ in my PATH
  3. sudo chmod 777 /usr/local/bin/
  4. eclipse

Output

enter image description here

and in Terminal

Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

The README does not have Unix installation instructions, just Windows one.

Additions to garethTheRed's answer

I did

sudo mv eclipse /usr/local/
sudo chmod -R 755 /usr/local/eclipse
sudo chown -R root:root /usr/local/eclipse
sudo ln -s /usr/local/eclipse/eclipse /usr/local/bin/eclipse
eclipse

Done!


How can you have Eclipse 4.5 in your Path?

2 Answers 2

3

The problem is caused because you moved eclipse to a location outside the directory where you installed it.

Instead of moving eclipse to a directory in your path, create soft link to the executable. Assuming Eclipse is extracted within your home directory:

sudo ln -s /home/masi/eclipse/eclipse /usr/local/bin/eclipse

You can then run eclipse without prefixing it with the path.

3
  • I move eclipse directory to /usr/local/. Change permissions. Create the link. It seems other things use this workflow. Commented May 3, 2016 at 18:38
  • Please, see the end of the body for the completion of the case. Done! Commented May 3, 2016 at 18:44
  • I forgot that there is not easier approach than this. :D Commented May 3, 2016 at 18:46
1

First of all moving eclipse binary to /usr/local/bin/ was a bad move.

Many executables need to to link to dynamic link libraries - usually called shared objects or .so - to work properly.

When you moved eclipse to /usr/local/bin you might have forgotten to move its corresponding shared objects to the same location and that is why you got :

The Eclipse executable was unable to locate its companion shared library

The solution here should be simple.

  1. Move Eclipse back to its original place.
  2. Run pwd to see the absolute name of the parent directory
  3. Append export PATH=$PATH:/folder/you/got/in/the/above/step to /home/your_user_name/.bashrc
  4. Start a new shell session
  5. Run eclipse
4
  • Did you install a precompiled package or did you compile eclipse from source? Commented May 3, 2016 at 18:28
  • Where is eclipse located? Commented May 3, 2016 at 18:29
  • You installed the .deb package to the Downloads folder? What is the file name? Commented May 3, 2016 at 18:32
  • You are able to launch the binary from the Downloads right? Commented May 3, 2016 at 18:35

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.