newbie: using servlet in deploytool

Discussion in 'Java' started by Mladen Adamovic, Oct 20, 2003.

  1. I deployed jsp in deploytool (j2ee 1.3.1) without problem, it works.
    I tried to deploy some Servlets and I had a problem : deploytool
    needs class file. So it meens I have to compile MyServlet.java into
    MyServlet.class before deploying.

    The question is : how to do it?
    I tried with javac MyServlet.java but javac cannot find j2ee classes
    (i.e. HttpServlet). I put c:\j2ee\lib into classpath but still don't
    compile.
    Must I use ant tool as in j2ee-tutorial or it is not neccesery to use ant
    and how?
     
    Mladen Adamovic, Oct 20, 2003
    #1
    1. Advertising

  2. Mladen Adamovic

    Chris Smith Guest

    Mladen Adamovic wrote:
    > The question is : how to do it?
    > I tried with javac MyServlet.java but javac cannot find j2ee classes
    > (i.e. HttpServlet). I put c:\j2ee\lib into classpath but still don't
    > compile.


    You need to place individual JAR files containing these classes into the
    classpath. Alternatively, don't use the classpath and copy the JAR
    files into jre/lib/ext.

    --
    www.designacourse.com
    The Easiest Way to Train Anyone... Anywhere.

    Chris Smith - Lead Software Developer/Technical Trainer
    MindIQ Corporation
     
    Chris Smith, Oct 20, 2003
    #2
    1. Advertising

  3. It works. Thanks a lot.

    "Chris Smith" <> wrote :
    > You need to place individual JAR files containing these classes into the
    > classpath. Alternatively, don't use the classpath and copy the JAR
    > files into jre/lib/ext.
     
    Mladen Adamovic, Oct 20, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Martin

    DeployTool for ASP.Net?

    Martin, Aug 2, 2004, in forum: ASP .Net
    Replies:
    6
    Views:
    530
    Mike Mahon
    Aug 6, 2004
  2. Replies:
    0
    Views:
    472
  3. Computer_Engineer
    Replies:
    0
    Views:
    590
    Computer_Engineer
    Jul 24, 2004
  4. =?ISO-8859-2?Q?Pawe=B3_Poplawski?=

    Problem with deploytool.

    =?ISO-8859-2?Q?Pawe=B3_Poplawski?=, Sep 29, 2004, in forum: Java
    Replies:
    0
    Views:
    359
    =?ISO-8859-2?Q?Pawe=B3_Poplawski?=
    Sep 29, 2004
  5. Robert Mark Bram
    Replies:
    1
    Views:
    2,144
Loading...

Share This Page