• Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting Javax. packages installed!?!?

 
Declan Conlon
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • 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.
 
trevershick
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Do you know how to do it in liunx?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Thank you very much, you just said something I couldn't find in any of the documentation.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!