• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

New comer's qz

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just got those setup work done.
Thanks buddies!
 
reply
    Bookmark Topic Watch Topic
  • New Topic