This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse Newbie Help!!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse Newbie Help!!!!" Watch "Eclipse Newbie Help!!!!" New topic

Eclipse Newbie Help!!!!


Joined: Oct 22, 2003
Posts: 28
Hi All,
I have installed Eclipse and Tomcat in my laptop. Everything is working fine. I'm trying to write my first Servlet. I have a project named "Tom1". As per the tutorial
html and jsp files go under Tom1
Java Sourcee files go below WEB-INF/src
Java class files go under WEB-INF/classes
Jar files go below WEB-INF/lib.
I created a Helloworld.jsp under Tom1 and it is good
Now I created a under WEB-INF/src and try to compile it but getting 6 errors for the HttpServlet not found.So it is not able to resolve the HttpServlet header.
I have given the Javabuildpath as Tom1/WEB-INF/src. But every time I creatre a new file in goes below Tom1/WEB-INF/src/defaultpackage !!!
Is this the reason Eclipse is not finding the HttpServlet Class ? Or any other problem ? Please explain. Thanks.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32633

Is j2ee.jar in the build path for your eclipse project? You can check this by right clicking the project, selecting properties and then selecting build path.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Eclipse Newbie Help!!!!
It's not a secret anymore!