classpath in MAC

Discussion in 'Mac Apps and Mac App Store' started by sujithkrishnan, Jul 21, 2008.

  1. sujithkrishnan macrumors 6502

    Joined:
    May 9, 2008
    Location:
    Bangalore
    #1
    How to set classpath in mac ??

    (Just like environment variables in windows)
     
  2. Hates macrumors regular

    Joined:
    Jul 10, 2008
    Location:
    London, UK
    #2
    You're after the PATH variable. In a terminal window type the following to see it:

    echo $PATH

    To edit it, open up the file ~/.bash_profile and do something like:

    export PATH=/opt/local/bin:$PATH

    I've just appended /opt/local/bin to the beginning of my path.
     

Share This Page