The Artima Developer Community
Sponsored Link

Java Answers Forum
servlet related classes not fount

2 replies on 1 page. Most recent reply: Jul 30, 2003 11:37 AM by rassuls

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 2 replies on 1 page
rassuls

Posts: 10
Nickname: rassuls
Registered: Mar, 2003

servlet related classes not fount Posted: Jul 29, 2003 10:02 PM
Reply to this message Reply
Advertisement
Hello,
I have a program that imports: import javax.servlet.*; statement and when I compile it the following error is generated.

x.java:1: package javax.servlet does not exist
import javax.servlet.*;
^
1 error

I believe servlet classes are in j2ee.jar which resides in F:\j2sdkee1.3.1 on my computer. The environment variables JAVA_HOME, J2EE_HOME are set according to installation giude on: http://java.sun.com/j2ee/sdk_1.3/install.html#win_soft
Any help is appreciated. Thanks


Greg Lehane

Posts: 33
Nickname: glehane
Registered: Jun, 2003

Re: servlet related classes not fount Posted: Jul 30, 2003 12:45 AM
Reply to this message Reply
I think javax.servlet.* is in servlet.jar. It will come with your servlet container (tomcat or whatever).
Anyway, why not look inside j2ee.jar to make sure? You can use winzip on windows.

=- Greg

rassuls

Posts: 10
Nickname: rassuls
Registered: Mar, 2003

Re: servlet related classes not fount Posted: Jul 30, 2003 11:37 AM
Reply to this message Reply
Thanks Greg, I included the j2ee.jar in my classpath and it worked.

Flat View: This topic has 2 replies on 1 page
Topic: how to change the cursor? Previous Topic   Next Topic Topic: One last thing... counter doest work!!

Sponsored Links



Google
  Web Artima.com   

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