This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Don't get me started about those stupid light bulbs.
 
subject: path problem in windows os
 
Similar Threads
Class Path
Class Path
Path of installation
Class not found Exception?
package