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

Need help in compiling servlet

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Iam new to servlets.Iam working on the first mvc example in HF servlets book. I downloaded tomcat 5.5 and j2se sdk 1.5. Tomcat is running fine.I set the following in the environment variables.

classpath is %CLASSPATH%;%TOMCAT_HOME%\common\lib\servlet-api.jar;%TOMCAT_HOME%\common\lib\jsp-api.jar;.
TOMCAT_HOME is C:\Program Files\Apache Software Foundation\Tomcat 5.5
JAVA_HOME is C:\Program Files\Java\jdk1.5.0.

When I try to compile BeerSelect using c:\MyProjects\beerV1\javac -d classes src\com\example\web\BeerSelect.java it says package javax.servlet does not exist. Can anyone please help me
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you need to put path of servlet.jar in path environment variable.
 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

Try using Eclipse IDE, a very good open source tool.

So u will concentrate more on the objective, rather than struggling with petty things.


But some may not recommend it

and u know who it is

Anyway all the best

Regards
V.Parsuvanath.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic