.bash_profile script

Ross Werner ross at indessed.com
Tue Jun 6 22:40:57 MDT 2006


On Tue, 6 Jun 2006, "Russel Caldwell" wrote:
> On 6/6/06, Steve <smorrey at gmail.com> wrote:
>> 
>> You've already said that.
>
> I'm sorry. Something went wrong the first time.

It's ok. Steve's just being a smart aleck.

Anyway, to set a variable in .bash_profile you just do:
export VAR=whatever
or alternatively
export VAR=$VAR:whatever

Which will append ":whatever" to whatever VAR was originally.

So if you have /opt/foo/myJavaLibs.jar and you want to add it to your 
classpath,
export CLASSPATH=$CLASSPATH:/opt/foo/myJavaLibs.jar

You can have as many lines like that as you want, or stick all the jars on 
that one line, a la:
export CLASSPATH=$CLASSPATH:/opt/foo/jar1.jar:/opt/foo/jar2.jar
and so forth.

With regards to a NPE in Mozilla, if you're actually seeing the words 
"Null Pointer Exception" then the Java plugin is working fine, there's a 
bug in whatever Java program you're attemping to run.

 	~ Ross



More information about the PLUG mailing list