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>
posted 13 years ago
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