This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
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.
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