• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

classes in the same package don't compile...why?

 
Ayman Jaffar
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does your compile command look like?
bear
 
Ayman Jaffar
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic