• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

package bizarre error !

 
Sam Zou
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic