Find the answer to your Linux question:
Results 1 to 6 of 6
PATH=$PATH:$HOME/bin PATH=$PATH:/$home/username/j2sdk1.4.1/bin this is wat i have specified in my .bash_profile but when i give javac in my console it is showing command not found. help me wat to do.....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2006
    Posts
    3

    enviromental variable


    PATH=$PATH:$HOME/bin
    PATH=$PATH:/$home/username/j2sdk1.4.1/bin

    this is wat i have specified in my .bash_profile

    but when i give javac in my console it is showing command not found.

    help me wat to do..

  2. #2
    Linux Engineer Javasnob's Avatar
    Join Date
    Jul 2005
    Location
    Wisconsin
    Posts
    942
    Add this after those two lines:
    Code:
    export PATH
    Flies of a particular kind, i.e. time-flies, are fond of an arrow.

    Registered Linux User #408794

  3. #3
    Just Joined!
    Join Date
    May 2006
    Posts
    3
    it is already present there.. still i dint get it...

    export PATH
    unset USERNAME

    this is already there.. yet i dint... help me out..

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    May 2006
    Posts
    31
    PATH=$PATH:/$home/username/j2sdk1.4.1/bin

    Typo? $HOME/$USERNAME
    Needs to be all caps. Are you sure you need the username thing in there?

  6. #5
    Just Joined!
    Join Date
    May 2006
    Posts
    3
    ya.. becoz i have installed the jdk in home/username thats y...

    should it be $HOME/$USERNAME ????????????????????

  7. #6
    Just Joined!
    Join Date
    May 2006
    Posts
    31
    Quote Originally Posted by kingvignesh
    ya.. becoz i have installed the jdk in home/username thats y...

    should it be $HOME/$USERNAME ????????????????????
    What is the actual directory pathname to the java bin directory?

    On my system, /home/vls points into my personal directory; I have a bin directory that I put scripts and test programs in so : /home/vls/bin
    If I did the java thing it would be /home/vls/j2sdkwhatever/bin

Posting Permissions

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