Howdy again, My OS is "Windows 2000 Server" 1- I have a package called "coreservlets" 2- I have two classes in the package, one is called "ServletUtilites" and the other is "HelloWWW3" 3- "HellowWW3" which is using "ServletUtilites" class, isn't compiling because it's not recognizing the "ServletUtilities" which is in the same package 4- the error that I get is. C:\jakarta-tomcat-4.0.4\webapps\ROOT\WEB-INF\classes\coreservlets\HelloWWW3.java:13: cannot resolve symbol symbol : class ServletUtilities location: package coreservlets out.println(coreservlets.ServletUtilities.headWithTitle("Hello WWW") + ^ 1 error I've set the classpath "%classpath%;.;C:\jakarta-tomcat-4.0.4\common\lib\servlet.jar" so why isn't HelloWWW3 compiling. thanks. [ June 24, 2002: Message edited by: Ayman Jaffar ]
It's now working for me. I went to the directory where the .java files were stored and at the dos prompt typed "javac *.java" and it worked!!! thanks. [ June 24, 2002: Message edited by: Ayman Jaffar ]
subject: classes in the same package don't compile...why?