DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  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


Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links