Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
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 ...
  1. #1
    Just 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

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Hi and Welcome !

    I believe in trying to set my path for java i have lost my default path settings for opensuse 10.3.
    Which file did you edit? Whats the output of this:
    Code:
    echo $PATH
    ?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just 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.

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Code:
    PATH=$PATH:add_new_path_here
    If it works fine, open .bashrc file and set new path.
    Code:
    nano ~/.bashrc
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,114
    ECHO $path
    gives the blank line
    should be $PATH in capital letters

  6. #6
    Just 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

  7. #7
    Just 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

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    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

  9. #9
    Just Joined!
    Join Date
    Mar 2008
    Location
    Aruba
    Posts
    10

    Smile 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

  10. #10
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    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

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...