3

I just installed Eclipse Neon for ubuntu without using terminal , I unarchived it and ran the program and it installed like in windows. Now when I type eclipse in terminal it can't open it.

I am thinking that any software that is not installed using terminal can't be accessed from it, am I right?

It asks me to install eclipse by using sudo apt install eclipse-platform , which means Terminal otherwise my OS has no idea if any program named eclipse is already installed.

Anwar
  • 77,855

1 Answers1

4

N.B.: This answer provides example of my own values. Adjust to your own as necessary

In the beginning of installation, the installer prompts user for installation folder

enter image description here

In the screenshot , it will be placed into my ~/.eclipse/java-neon.

So in order to access eclipse from terminal, I have to add it to my PATH variable like so:

  1. Open ~/.bashrc with text editor
  2. add `$PATH=$PATH:/home/xieerqi/eclipse/java-neon/eclipse/eclipse
  3. save and exit.
  4. Run source ~/.bashrc in terminal

Now , if I run eclipse in terminal, it will be launched.

If you also would like to make it openable via Dash or Launcher, you will need to have a ~/.local/share/applications/eclipse.desktop file created

[Desktop Entry]
Name=Eclipse
Type=Application
Exec=/home/xieerqi/eclipse/java-neon/eclipse/eclipse
Icon=/path/to/icon
Terminal=false

Note that icon part is optional