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?

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 . . . :slight_smile:


palladium