You could do this for every DOS terminal you open by setting them in the System Properties->Advanced Options->Environment Variables.
Hope this helps.
Regards Luis F
Joined: Jul 30, 2003
Hi, Luis -
Actually, I already have my path set. I confirmed that by running the "java" and "javac" commands, which are in the same directory as the "jar" command. If the path were not set, the first two commands would not run.
Usually I run all my command line stuff from batch files anyway so that I have copies of my commands handy, so this is the first time I've seen this issue.
No MS Java because I would get different version information with the java -version command.
Paths are properly set and working fine except for this one utility.
I agree that it looks and acts like a path problem, but everything else in that directory works. I'm not going to spend any more time on it because I do all my jar/compile/run processing through batch files which use the full pathname because I have to test under multiple or specific compilers or runtime engines.
Thanks for the help though.
Joined: Aug 07, 2003
Originally posted by Stefan Wagner: David: In which way should it make a difference to use j2sdk1.4.2_05 or j2sdk1.4.2_04?
I'm not saying that it should make a difference -- just that it might. I've never experienced that problem, though I don't ever jar from the command line, only through Ant.
JRE installations can sometimes override the MS java and javaw in your Windows directory with their own versions. If that happens (some 1.4 versions do it, some don't I think) you'll end up being able to run java but not javac and jar without setting the path and getting the version you expect.