freelanceprogrammers.org Forum Index » Java

Trying to compile a servlet


View user's profile Post To page top
aachen9 Posted: Fri Apr 16, 2004 10:26 am


Joined: 16 Apr 2004

Posts: 2
Trying to compile a servlet
Hello,

I have been trying to compile a Java program that uses the following class
libraries...

import javax.servlet.* ;
import javax.servlet.http.* ;
import java.io.* ;
import java.util.* ;

I have J2EE 1.4 SDK installed on Windowx XP. I am attempting to compile by
having a c:myjsp directory, and from within that typing

javac filename.java

and get the error messages:

package javax.servlet does not exist

package javax.servlet.http does not exist.

Going into my Environment Variables, I find I have my Path set to include the
following directories, which I know to exist:

C:SunAppServerin;C:SunAppServerlib;

but maybe this is not what I need? Has anyone any ideas?

Thankyou so much!
Regards,
Robert






---------------------------------
Find local movie times and trailers on Yahoo! Movies.


[Non-text portions of this message have been removed]
Reply with quote
Send private message
View user's profile Post To page top
nico_heinze Posted: Fri Apr 16, 2004 3:43 pm


Joined: 16 Apr 2004

Posts: 4
Trying to compile a servlet
Hi Robert,

I guess the environment variable you need to set is CLASSPATH, not
PATH.

Hope this helps.

Regards,
Nico

--- In beginnersclub@yahoogroups.com, Robert Crookall <aachen9@y...>
wrote:
> Hello,
>
> I have been trying to compile a Java program that uses the
following class libraries...
>
> import javax.servlet.* ;
> import javax.servlet.http.* ;
> import java.io.* ;
> import java.util.* ;
>
> I have J2EE 1.4 SDK installed on Windowx XP. I am attempting to
compile by having a c:myjsp directory, and from within that typing
>
> javac filename.java
>
> and get the error messages:
>
> package javax.servlet does not exist
>
> package javax.servlet.http does not exist.
>
> Going into my Environment Variables, I find I have my Path set to
include the following directories, which I know to exist:
>
> C:SunAppServerin;C:SunAppServerlib;
>
> but maybe this is not what I need? Has anyone any ideas?
>
> Thankyou so much!
> Regards,
> Robert
Reply with quote
Send private message
View user's profile Post To page top
aachen9 Posted: Fri Apr 16, 2004 4:28 pm


Joined: 16 Apr 2004

Posts: 2
Trying to compile a servlet
Thanks Nico. In the meantime, I tried doing the same thing with Classpath - but
I`m having the same problem. Hmmmm....

----- Original Message -----
From: Nico Heinze
To: beginnersclub@yahoogroups.com
Sent: Friday, April 16, 2004 8:43 PM
Subject: [Java Beginner`s club] Re: Trying to compile a servlet


Hi Robert,

I guess the environment variable you need to set is CLASSPATH, not
PATH.

Hope this helps.

Regards,
Nico

--- In beginnersclub@yahoogroups.com, Robert Crookall <aachen9@y...>
wrote:
> Hello,
>
> I have been trying to compile a Java program that uses the
following class libraries...
>
> import javax.servlet.* ;
> import javax.servlet.http.* ;
> import java.io.* ;
> import java.util.* ;
>
> I have J2EE 1.4 SDK installed on Windowx XP. I am attempting to
compile by having a c:myjsp directory, and from within that typing
>
> javac filename.java
>
> and get the error messages:
>
> package javax.servlet does not exist
>
> package javax.servlet.http does not exist.
>
> Going into my Environment Variables, I find I have my Path set to
include the following directories, which I know to exist:
>
> C:SunAppServerin;C:SunAppServerlib;
>
> but maybe this is not what I need? Has anyone any ideas?
>
> Thankyou so much!
> Regards,
> Robert




---------------------------------
Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/beginnersclub/

To unsubscribe from this group, send an email to:
beginnersclub-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.





---------------------------------
Find local movie times and trailers on Yahoo! Movies.


[Non-text portions of this message have been removed]
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help