Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

[import javax.servlet.*;] Compilation error

843842Sep 15 2009 — edited Sep 15 2009
Hi,

The java compiler cannot find javax.servlet.*; in Windows XP.

I tried copying servlet-api.jar under c:\sun\SDK\lib and c:\Sun\sdk\jdk\lib.

Also I set the CLASSPATH to:

.;C:\Sun\SDK\jdk\lib;C:\Sun\SDK\lib;

But I still get the error at compilation time.

Also I don't know how to create a project that would use the correct library and compile just that servlet code.

Many thanks for your help.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 13 2009
Added on Sep 15 2009
4 comments
229 views