GeeCON Prague 2014*
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


JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse Newbie Help!!!!" Watch "Eclipse Newbie Help!!!!" New topic
Author

Eclipse Newbie Help!!!!

PALANI KUMART
Greenhorn

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 HelloWorld.java 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
Marshal

Joined: May 26, 2003
Posts: 30598
    
154

Palani,
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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
GeeCON Prague 2014
 
subject: Eclipse Newbie Help!!!!