• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

New comer's qz

 
liqiang yang
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys,

I just passed the SCJP 5.0 and now I am working on SCWCD.

I just try to create a servlet in Eclipse, but when I import package,
I always got a error says: import javax.servlet.*; cannot be resolved. Is something I need to set up for Eclipse(version 3.3.1.1)? Anybody can help me out? Thanks in advanced.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read this FAQ, and you'll see that you need to put a JAR file in the projct's classpath (Project -> Properties -> Java Build Path -> Libraries). But please avoid to discuss Eclipse problems here. Use the IDE forum instead.
[ April 08, 2008: Message edited by: Christophe Verre ]
 
Suryakumar Surendran
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by liqiang yang:
Hello guys,

I just passed the SCJP 5.0 and now I am working on SCWCD.

I just try to create a servlet in Eclipse, but when I import package,
I always got a error says: import javax.servlet.*; cannot be resolved. Is something I need to set up for Eclipse(version 3.3.1.1)? Anybody can help me out? Thanks in advanced.


Hey Buddy please be more specific. You didnt specify the name of the web server. I shall be more generic in my reply.
This error happened because you have not included the j2ee jar files to your project build path in eclipse. right click on your project in the navigator->then add external jars-> and browse and select the jar file.

if you are using tomcat select the servlet.jar from the \common\lib directory in your tomcat directory.
 
liqiang yang
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks reply.

If I want to put a type of web server to work with eclipse together, the best option is Tomcat, anything else I can choose? And what kind of version of Tomcat I should pick it up(Core/Deployer/Embedded/Administration Web Application). I will use them as my web development environment. Thanks guys.
 
liqiang yang
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just got those setup work done.
Thanks buddies!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic