DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2004
    Posts
    9

    Unhappy Java Servlet API class

    I downloaded the Java Servlet API Class from the Java website. After I unzipped the file, i found some files in a directory named javax. Now where exactly must i place this directory and how to include it in my classpath. What must be the path and where must i place it. I'm a newbie to servlets, so plz help me. thanx in advance

  2. #2
    Join Date
    Feb 2004
    Posts
    808
    dont unzip the jar.. just put it somewhere, and add the full class of it to the classpath. as an example, i installed the mail api jars so i could send emails. here's my classpath:

    CLASSPATH=c:\j2sdk1.4.2_03\jre\lib\rt.jar;c:\javamail1.3.1\mail.jar;c:\jaf1.0.2\activation .jar;.

    if it appears to contain a few spaces.. trust me, it doesnt (the board software inserts spaces for blocks of text more than X characters wthout a space)

    note that you will need a servlet container like catalina (tomcat 5) to run servlets
    The 6th edict:
    "A thing of reference thing can hold either a null thing or a thing to any thing whose thing is assignment compatible with the thing of the thing" - ArchAngel, www.dictionary.com et al.
    JAR tutorial GridBag tutorial Inherited Shapes Inheritance? String.split(); FTP?

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