Results 1 to 10 of 13
Hi I am a newbie and have been trying to learn linux with opensuse 10.3
I believe in trying to set my path for java i have lost my default ...
- 03-19-2008 #1Just Joined!
- Join Date
- Mar 2008
- Location
- Aruba
- Posts
- 10
Path Settings
Hi I am a newbie and have been trying to learn linux with opensuse 10.3
I believe in trying to set my path for java i have lost my default path settings for opensuse 10.3. ( I was able to use shell commands till before the change in the setting the new path )
1. Can anybody be kind enough to post the original path setting which come withlinux
2. and also how i can add additional paths in future so that i donot have to visit this page again.
Thaking u all in advance
- 03-19-2008 #2
Hi and Welcome !
Which file did you edit? Whats the output of this:I believe in trying to set my path for java i have lost my default path settings for opensuse 10.3.
?Code:echo $PATH
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 03-19-2008 #3Just Joined!
- Join Date
- Mar 2008
- Location
- Aruba
- Posts
- 10
Path Setting
I have rebooted and all appears to be fine
Searching the net for making additions to path file
ECHO $path
gives the blank line
What i had done was give this comand
Actually i had been trying to set up an applications with postgres and java and had given a lots of shell command
do not know which ones created the problem
i will get back upon getting the problem again
now the path settings
how do i add more paths without altering any setting
Thanks again in advance for the quick response.
- 03-19-2008 #4If it works fine, open .bashrc file and set new path.Code:
PATH=$PATH:add_new_path_here
Code:nano ~/.bashrc
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 03-19-2008 #5should be $PATH in capital lettersECHO $path
gives the blank line
- 03-19-2008 #6Just Joined!
- Join Date
- Mar 2008
- Location
- Aruba
- Posts
- 10
Path Setting
opt/kde3/bin:/home/ss642001/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin
this is the path setting for echo $PATH command
thanks guys
- 03-19-2008 #7Just Joined!
- Join Date
- Mar 2008
- Location
- Aruba
- Posts
- 10
Path Setting
The nano command does not work it give I had copied and pasted it
bash: nano: command not found
i am using opensuse 10.3
is theer any other editing tool for this file
thanks again
- 03-19-2008 #8
You can use any GUI Text Editor like Gedit, kate or command line text editor like vi, pico.
Press Alt+F2 and type this
Code:gedit ~/.bashrc
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 03-19-2008 #9Just Joined!
- Join Date
- Mar 2008
- Location
- Aruba
- Posts
- 10
Path Setting
after gedit i get w new window
i should just paste
export JAVA_HOME=/usr/java/jdk1.5.0_15/
export PATH=$JAVA_HOME/bin:$PATH
and it will set path automatically for java each time it boots
is this the corrcet procedure
thanks for the quick response
- 03-19-2008 #10
Thats correct !
Put PATH before $JAVA_HOME.
Code:export PATH=$PATH:$JAVA_HOME/bin
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First


Reply With Quote