Results 1 to 2 of 2

Thread: how to set classpath

  1. #1
    Andrew Knoke NNTP User

    Default how to set classpath

    I have open suse 11.0 and I can not figure out how to set the classpath.
    If I type via terminal
    echo $CLASSPATH
    I get a blank line.
    It also does not show up if I type env at the command line

    I have tried setting it via a script or editing profile.locale or from a
    command line. I have tried this from the command line
    set CLASSPATH=/usr/local/bea/wlserver_10.3/server/lib
    or this from a script
    set CLASSPATH=/usr/local/bea/wlserver_10.3/server/lib
    export CLASSPATH

    regardless of what I do I get a blank line. It is not a problem with
    echo because I can export other variables just fine.

    Any ideas what I am doing wrong?

  2. #2
    palladium NNTP User

    Default Re: how to set classpath

    Andrew Knoke wrote:
    > I have tried this from the command line
    > set CLASSPATH=/usr/local/bea/wlserver_10.3/server/lib


    i tried the string 'linux how to set classpath' at google and found
    (in the first hit) a hint looking like this:

    export CLASSPATH=$CLASSPATH:/java/classes:/home/tchin/myclasses


    note: there is other stuff you need to read there or somewhere
    else....like, that classpath persist for the length of your log in
    only (and, if you are using tcsh or csh instead of bash, the magic
    incantation is different, and . . . :-)

    --
    palladium

Posting Permissions

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