R
Rhino
I have a question about classpath in Windows XP Professional.
When I check my environment variables, I have both 'user' (Rhino) and
'system' environment variables. I have a classpath environment variables in
both categories, 'user' and 'system', and they have markedly different
values.
When I am logged on as Rhino, is Windows using the 'user' version of the
classpath variable, the 'system' version, or a concatentation of both?
Despite using Windows for a few years now, I'm afraid I've never looked into
the matter of the multiple classpaths before since I always seemed to get
everything working fine by simply ignoring the 'user' environment variables
and sticking to the 'system' ones. However, I'm now having a problem with
NoClassDefFoundError.
I am trying to do the sqlj command to translate sqlj source to java source
but I keep getting the NoClassDefFoundError, even though the class I need is
present in sqlj.zip and sqlj.zip is in the system classpath.
I'm wondering if, somehow, Java is only seeing the 'user' classpath which
doesn't contain sqlj.zip. That doesn't seem likely to me but I can't think
of anything else after several hours of messing with this.
If someone could clarify the purpose of the 'user' and 'system' categories
of environment variables, I would be very grateful.
Also, while I've got you, when do changes to environment variables take
effect in XP? As soon as I click 'save'? When I close the Control Panel? Or
do I need to reboot to be sure that they have taken effect?
When I check my environment variables, I have both 'user' (Rhino) and
'system' environment variables. I have a classpath environment variables in
both categories, 'user' and 'system', and they have markedly different
values.
When I am logged on as Rhino, is Windows using the 'user' version of the
classpath variable, the 'system' version, or a concatentation of both?
Despite using Windows for a few years now, I'm afraid I've never looked into
the matter of the multiple classpaths before since I always seemed to get
everything working fine by simply ignoring the 'user' environment variables
and sticking to the 'system' ones. However, I'm now having a problem with
NoClassDefFoundError.
I am trying to do the sqlj command to translate sqlj source to java source
but I keep getting the NoClassDefFoundError, even though the class I need is
present in sqlj.zip and sqlj.zip is in the system classpath.
I'm wondering if, somehow, Java is only seeing the 'user' classpath which
doesn't contain sqlj.zip. That doesn't seem likely to me but I can't think
of anything else after several hours of messing with this.
If someone could clarify the purpose of the 'user' and 'system' categories
of environment variables, I would be very grateful.
Also, while I've got you, when do changes to environment variables take
effect in XP? As soon as I click 'save'? When I close the Control Panel? Or
do I need to reboot to be sure that they have taken effect?