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.
1 Answer
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
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:
- Open
~/.bashrcwith text editor - add `$PATH=$PATH:/home/xieerqi/eclipse/java-neon/eclipse/eclipse
- save and exit.
- Run
source ~/.bashrcin 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=falseNote that icon part is optional