• 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

Where to find javax.servlet?

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Where can we find javax.servlet.* in JDK1.1.7?
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
What's brown and sticky? ... a stick. Or a tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic