• 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

Getting Javax. packages installed!?!?

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok I'll be blunt, I've been working all day at this and I can't get the javax.servlet and javax.httpservlet libraries installed. I don't know what I need to do to get javac to see them. It would be great if and help could be given in a step by step manner suitble for the dumbest people. Why the web has nothing on how to install java library functions I'll never know.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I assume that you just need them for compilation. The servlet classes alone won't run as a web server...
Anyhow...
Download the servlet-2_2b.zip file from www.javasoft.com
extract the file to c:\servlet-2.2b directory
before a compile
SET CLASSPATH=%CLASSPATH%;c:\servlet-2.2b\servlet.jar
-try-
javap javax.servlet.Servlet
-hopefully you'll see some output

javac www.MyClass
 
Declan Conlon
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you know how to do it in liunx?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Read the file on how classes are found - its in the tooldocs section of your Java docs files.
Since the servlet library is a standard extension, the compiler can find them automatically if the jar file is in the proper directory:
JAVA_HOME\jre\lib\ext
Bill
 
Declan Conlon
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much, you just said something I couldn't find in any of the documentation.
reply
    Bookmark Topic Watch Topic
  • New Topic