DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: packages

  1. #1
    Join Date
    Jul 2002


    I recently started studying Java servlets. The book I'm using uses a utilities class with several different methods. Every thing went well for a while, i.e., I could compile classes that referenced the utilities class. All classes are in the same package. Then out of the blue, I couldn't compile classes that referenced the utilities class, getting an error saying it didn't recognize the symbol for said utilities class. I found that if I removed the package statements then the code would compile. I entered the directory into the classpath with the same results. If it had never worked I'd assume the fault was with me, but that it did work and now it doesn't has me confused. Any help would be greatly appreciated. JP

  2. #2
    Join Date
    Jul 2002


    My brief "to be revisited" studies with servlets involved the use of Tomcat as a Servlet engine. All servlets were compiled within their Tomcat directories; one time, I did try compiling the servlets from my
    C:\jdk1.3.1\bin directory, and of course, it did not recognize the servlet class packages (which were all over in the Tomcat directory/engine) and did nothing.

    My hunch is that there is a path issue going on as far as the standard servlet classes, the package you are utilizing, and where you are compiling your servlets. Hope this may help point you in the right direction...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.