It's not a secret anymore!
The moose likes Java in General and the fly likes package bizarre error ! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "package bizarre error !" Watch "package bizarre error !" New topic

package bizarre error !

Sam Zou
Ranch Hand

Joined: Nov 18, 2002
Posts: 40
I have a strnage error with packaging.
I have the 2 following files in directory

when I compile file I got the following error:

My classpath is correctly set(I think !)
Even if I put this dorectory in classpath I got the same error:
ServletUtilities compilation is fine.

Thanks for help.

Sam<p>"Life is difficult"<br /> -Scott Peck-</p>
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
You need to add E:\Dev\src\Servlet-Tutorial\ to your classpath. Remember that packages are similar to directories. In fact, the directory a package is located in need to have the same name as the package. If you add the above directory to the classpath, it will then look there for the coreservlets directory.

Java API Documentation
The Java Tutorial
I agree. Here's the link:
subject: package bizarre error !
It's not a secret anymore!