This question already has an answer here:

I installed the latest version of Eclipse using the installer wizard. (I was following the instructions in the following link.)

I can run eclipse from the command line as follows:

$ ~/eclipse/java-neon/eclipse/eclipse

I was wondering if I could set it up so that I can run Eclipse by just typing:

$ eclipse

However, I am not sure whether it is "better" to add the folder ~/eclipse/java-neon/eclipse/ to the PATH, or to add a symbolic link to the eclipse executable to one of the directories in the current PATH. (In case it is recommended to add a symbolic link, which of the directories is preferred?)

marked as duplicate by muru command-line May 31 '17 at 4:32

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • "Better" varies – muru May 31 '17 at 4:32

You can try adding an alias in .bashrc file in the home folder alias eclipse=~/eclipse/java-neon/eclipse/eclipse

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