Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where to find javax.servlet?

 
Hamwira, Yaacob
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where can we find javax.servlet.* in JDK1.1.7?
 
Wendy Cheong
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
You cannot find javax.* in jdk because javax => java extension so you cannot find it in JDK. If you want to javax classes look for JSDK or if you're using Java2,ie, JDK1.2 and above, look for JSDKEE. Please note that jsdkee cannot be used with Java1, ie, jdk1.1.* .
You can download your jdk's and jsdk's from here : http://java.sun.com/products/
Hope this helps
 
Hamwira, Yaacob
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much for the information...
I do get something out of your answer but I still have some curiousity...
Let me put it this way,
I am using JDK1.1.7..
Can I just copy javax package from the latter java version and put include it with my JDK1.1.7??

Let me know..
Thanks..
HAMWIRA
 
Samith Nambiar
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what exactly do u mean by

Can I just copy javax package from the latter java version and put include it with my JDK1.1.7??

as Wendy rightly said the javax packages do not come along with the JDK .... now if u do have the servlet.jar file and if your purpose is to avoiding the setting of the classpath you must out it into
JAVA_HOME/jre/lib/ext folder
hope that helps
Samith.P.Nambiar
 
Kristy McClure
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're running Tomcat, you already have the servlet.jar file you need. You only need to point your classpath to it.
One caveat: I just found (after hours of teeth-gnashing) that at least on NT, you can't use environment variables as tokens in other variables and have Java be able to follow it. Example:
- let's say you have TOMCAT_HOME set to 'd:\jakarta-tomcat-3.2.2'
- don't put '%TOMCAT_HOME%\lib\servlet.jar' in your CLASSPATH and expect it to work when compiling Java source that needs that .jar file. You instead have to put 'd:\jakarta-tomcat-3.2.2\lib\servlet.jar' in your classpath.
When I did this, compilation errors arising from javac not finding javax.servlet.* stopped.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic