문제

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

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top