The Artima Developer Community
Sponsored Link

Java Answers Forum
error while compiling Servlet class as:package javax.servlet does not exis

1 reply on 1 page. Most recent reply: May 23, 2005 3:25 AM by Kondwani Mkandawire

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
jyothsna

Posts: 4
Nickname: jyothsna12
Registered: May, 2005

error while compiling Servlet class as:package javax.servlet does not exis Posted: May 23, 2005 2:53 AM
Reply to this message Reply
Advertisement
hi
now i compiled my Hello.java servlet class
but i have an error messge AS: package javax.servlet does not exist;
i set my CLASSPATH = C:\j2sdk1.4.2_01\lib;C:\j2sdk1.4.2_01\lib
and i copied "servlet.jar" file under C:\j2sdk1.4.2_01\lib
directory
plz help me


Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Re: error while compiling Servlet class as:package javax.servlet does not Posted: May 23, 2005 3:25 AM
Reply to this message Reply
> hi
> now i compiled my Hello.java servlet class
> but i have an error messge AS: package javax.servlet does
> not exist;
> i set my CLASSPATH =
> C:\j2sdk1.4.2_01\lib;C:\j2sdk1.4.2_01\lib
> and i copied "servlet.jar" file under C:\j2sdk1.4.2_01\lib
>
> directory
> plz help me

Naturally, you're developing J2EE applications you hence
want your class paths to include files such as
j2ee.jar and servlet.jar (if you are running tomcat).

Hope that helps.

Flat View: This topic has 1 reply on 1 page
Topic: Converting an object to String and then to int Previous Topic   Next Topic Topic: run

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use