basic servlet setup question


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: basic servlet setup question

  1. #1
    Chris Guest

    basic servlet setup question


    Hi,
    I'm beginning to study servlets and all those stuff... I have my jdk131 installed,
    and my tomcat up and running...

    However, when I try to compile my first servlets using javac, it does not
    see where the servlet libraries are. After some searching and head-scratching,
    I found a servlet.jar in one of Tomcat's subdirectory. I know this is related,
    but I couldn't figure out what to do... I have been changing a lot like changing
    the CLASSPATH, PATH, etc.; but nothing seems to do the trick.

    How do I make this work?

    Thanks a lot in advance!!!


  2. #2
    Ben Guest

    Re: basic servlet setup question

    > the CLASSPATH, PATH, etc.; but nothing seems to do the trick.
    Try: javac -classpath servlet.jar;something.jar etc.
    Unix/Linux replece ';' with ':'

    For more details:
    http://java.sun.com/j2se/1.3/docs/to...n32/javac.html
    http://java.sun.com/j2se/1.3/docs/to...ris/javac.html

    Ben


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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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