How to set a path in ubuntu such that i can run my eclipse-juno in terminal

故事扮演 提交于 2019-12-25 00:24:31

问题


I want to set PATH var in ubuntu such that i can run my programs by just giving their name in terminal.

I created a folder /home/vignesh/bin and keep my eclipse folder there

and in ~/.bashrc is gave this command:

export PATH=${PATH}:/home/vignesh/bin/eclipse/eclipse

(I logging out and logging in again) but when i type eclipse i get this message in terminal as:

The program 'eclipse' is currently not installed. You can install it by typing: apt-get install eclipse-platform


回答1:


Update the /etc/environment by adding the path to the eclipse executable, as follow:

1- take a backup of /etc/environment

2- $sudo nano /etc/environment e.g.: PATH="/path1:/path2:/home/sasa/eclipse"

3-Then restart your computer



来源:https://stackoverflow.com/questions/14897377/how-to-set-a-path-in-ubuntu-such-that-i-can-run-my-eclipse-juno-in-terminal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!