• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Unable to compile servelt-files.

 
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
okej, Im off to dl it! Thanks for your reply!
 
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry mate..
 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Never trust an airline that limits their passengers to one carry on iguana. Put this tiny ad in your shoe:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic