Jochen Georges wrote:

>hello dan, 
>thanks for your help.
>i changed the line in /etc/profile from:
>export CLASSPATH=$CLASSPATH:/usr/lib/j2sdk1.3/lib/tools.jar
>to
>export CLASSPATH=$CLASSPATH:/usr/lib/j2sdk1.3/lib/tools.jar:.
>now it works.
>don't know why, but it works.
>

The way the Java bootstrapper works, if you don't have a CLASSPATH set, 
it assumes "." for you.  This is to try and make it easier for people to 
run simple java programs from the current directory.  However, once you 
set a CLASSPATH, you're not in this simple category anymore & it simply 
uses what you've set.

It's a behaviour that's been there for several years, at least... just 
one of those things you eventually learn / notice. ;)

PS: Another slightly annoying thing along the same lines is trying to 
use a classpath or -classpath with the "-jar" option to run a jar file. 
 Doesn't work so well. :(

- Paul


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to