wood burning stoves*
The moose likes Beginning Java and the fly likes path problem in windows os Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "path problem in windows os" Watch "path problem in windows os" New topic
Author

path problem in windows os

sam wzm
Greenhorn

Joined: Nov 06, 2004
Posts: 11
Dear friends,

some time I meet a strange class path problem under windows enviroment. that is, the class path uses "/" to splite directory while not "\". so java will report error message like "NoClassFoundError: com/boland/...". I think there should be a way to adjust this environment problem. but I don't know how to set this. I will greatly appreciate if you happen to know this and let me know.

Best wishes,
Sam
Mike Gershman
Ranch Hand

Joined: Mar 13, 2004
Posts: 1272
I checked in several sources and they all say you just have to use \ in a Windows CLASSPATH and / in a UNIX CLASSPATH.

There is no way to have a single CLASSPATH format. Remember that the CLASSPATH directory names are separated by ; in Windows and : in UNIX.


Mike Gershman
SCJP 1.4, SCWCD in process
sam wzm
Greenhorn

Joined: Nov 06, 2004
Posts: 11
Hi, Mike,

thank you very much for your help! at last I found there is no such class in the jar file.

thanks again and best wishes,
Sam
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: path problem in windows os