Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By wsaryada

Thread: How To set A ClassPath For Servlet.

  1. #1
    Join Date
    Jul 2010
    Posts
    38
    Rep Power
    0

    Arrow How To set A ClassPath For Servlet.

    Hi.....


    Now-a-days we are working with ubuntu 12.04 operating system.
    We getting error while compile servlet file in to terminals...

    Can any one tell me how to solve it and how to set path for serlvet.


    Thanks & Regards.
    MCAJAVAPROGRAMER

  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    758
    Rep Power
    8

    Default Re: How To set A ClassPath For Servlet.

    You can use the -cp or -classpath argument to tell the java compiler where your servlet-api.jar is located. An example will be like:

    Java Code:
    javac -cp .;/path/to/servlet-api.jar domain.servlet.SomeServlet.java
    If you want to make it permanent in your terminal here is a tutorial about setting the classpath: PATH and CLASSPATH (The Java™ Tutorials > Essential Classes > The Platform Environment)
    mcajavaprogramer likes this.

  3. #3
    Join Date
    Jul 2010
    Posts
    38
    Rep Power
    0

    Default Re: How To set A ClassPath For Servlet.

    Thanks ...

    It is really helpfull..

Similar Threads

  1. Replies: 1
    Last Post: 08-23-2011, 11:12 AM
  2. Replies: 1
    Last Post: 05-03-2011, 02:28 AM
  3. Servlet CLASSPATH for Apache
    By fishman in forum Java Servlet
    Replies: 3
    Last Post: 07-02-2010, 02:52 PM
  4. Replies: 1
    Last Post: 12-02-2008, 12:23 AM
  5. Replies: 1
    Last Post: 08-07-2007, 03:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •