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!

Compiling A Servlet

843842Nov 17 2009 — edited Nov 17 2009
Good Day All,
Please, can someone assist me on how to successfully compile a servlet program in an Ms DOS environment.
As for me, this is how i set path:
set path=c:\jdk1.6.0.10\bin
set classpath=.

But when i javac my servlet code, I will be told by the compiler that it cannot see the servlet package.

NB: I imported the servlet package from javax.swing like this:
import javax.swing.servlet.*;

Yet, I still have issues compiling it. Please, kindly assist me in resolving this issue.

Thanks
Alam Ikenna L.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 15 2009
Added on Nov 17 2009
3 comments
244 views