I want to run eclipse via terminal.
Eclipse is in this directory ~/eclipse/java-photon/eclipse/.
When I write in terminal cd ~/eclipse/java-photon/eclipse/ and then ./eclipse it works.
But how can I set the PATH in the .profile file to only type in eclipse and it runs the program?
I tried it like explained in this question:
I set export PATH=$PATH:~/eclipse/java-photon/eclipse/ at the end of the .profile file and saved it.
Now when I type eclipse in the terminal it says
command 'eclipse' not found.