jQuery in Action, 2nd edition*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "package bizarre error !" Watch "package bizarre error !" New topic
Author

package bizarre error !

Sam Zou
Ranch Hand

Joined: Nov 18, 2002
Posts: 40
Hi,
I have a strnage error with packaging.
I have the 2 following files in directory
e:\dev\src\Java-Tutorial\coreservlets\
ServletUtilities.java



when I compile Showmessages.java file I got the following error:

My classpath is correctly set(I think !)
CLASSPATH=.;E:\Dev\Tools\mysql-connector-java-2.0.14\mysql-connector-java-2.0.14-bin.jar;E:\Dev\Tools\Tomcat4.1\common\lib\servlet.jar;E:\Dev\src
Even if I put this dorectory in classpath I got the same error:
E:\Dev\src\Servlet-Tutorial\coreservlets
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.
HTH
Layne


Java API Documentation
The Java Tutorial
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: package bizarre error !
 
Similar Threads
problem reading the initialization parameters
who can help me in a example
Initparameter not working
servlet problem
problem with web.xml and the getinitParameter() func