File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse Newbie Help!!!!

 
PALANI KUMART
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33684
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic