Matt Gerrans
Posts: 1153
Nickname: matt
Registered: Feb, 2002
|
|
Re: CLASSPATHs in Win98.
|
Posted: Jun 8, 2002 10:53 PM
|
|
Based on the clues provided, it looks like you may have a mismatch in case in a part (or parts) of the path name. Generally, Windows lets you get away with ignoring case, but the long file names do really have the exact case and this could be causing your problem in java. The reason it works in Win2k is probably that you started there with all correct case, then copied (or archived & unarchived) your development environment to the Win98 system. So, what I'd do is start at the base and do a "dir /b" on each section of directory that is included in your project (it looks like just a few) and rename them with the correct case. Be careful in your renaming: there was a bug in Win95 at least and I forget if it was fixed for 98 (probably not): when renaming a file/directory if all you change is the case, it would make no change -- you get around this by renaming to some temporary intermediate, like so:
ren COM someTemporaryIntermediate ren someTemporaryIntermediate com cd com ren HG someTemporaryIntermediate ren someTemporaryIntermediate hg etc.
(before going to this extra trouble, try it on one directory and see if it works with a simple ren COM com" -- if it works, it works -- "dir /ab /b" shows you just the long file names of the directories, so it is easy to check. Incidentally, if it does work without the intermediary, then simply ren com com will do the trick, even though it looks strang: even if the long file name is "COM," ren com com will match it and change it to lowercase. Pretty zany, eh?).
You also might want to have the exact correct case in your classpath, for good measure, although I think this part will work either way.
|
|