Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to compile servelt-files.

 
Sebastian Green
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, Im trying to compile MyFristServlet.java. But Igot errors on simple lines such as "import javax.servlet.*;" I belive that Im missing a jar-file clalled "servlets.jar" I have 2 java-dirs, "C:\Java\j2sdk1.4.1_03" & "C:\Program\Java\j2re1.4.1_03". But none of theme contains servlets.jar. Do I need j2ee or something more? My compiling error is: cannot resolve symbol.
 
Billybob Marshall
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mr Scam:
Do I need j2ee

Absolutely. You need a J2EE implementation, which will contain a jar containing the needed classes. Depending on which J2EE implementation you get (Tomcat, Weblogic, etc), it may or may not be named 'servlet.jar'.
 
Sebastian Green
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
okej, Im off to dl it! Thanks for your reply!
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mr.Scam,
Welcome to the Ranch!!!
I guess u might need to have a look at the naming policy of the Ranch.
U can change ur display name here.
 
Sebastian Green
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry mate..
 
Ben Dover
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sebastian,
Your best bet is to download the Tomcat-5 Servlet container, it contains a "sevlet.jar" file you can place in your path when compiling. Read the Tomcat docs re configuring the web.xml file, assembling your web app, deploying it, and then running it. Its a bit of a learning curve but once you have done it a few times it becomes second nature.
[ January 31, 2004: Message edited by: Louis M@lenica ]
 
Alexis Sumalpong
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The easiest way is to use and IDE that is meant for web app development. It should have all the libraries needed. For Tomcat, use this simple IDE
http://www.hoversoftcorp.com/downloads/devcentre/demo.zip
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic