• 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

fresher

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have downloaded jakarta 3.2.4 and j2ee,
the jakarta server is running ok,
How do i put the servlet.jar api in my j2sdk api,i am not able to execute a servlet in to a .class file.i get the following message:"pacakage java.servlet does not exist".
1) how do i or where do i put the servlet so that i can call it from i.explorer.
2)same goes for jsp.
3)what is the address to be put in Internet explorer like for example:
"http://localhost:8080/..."
Thanks.
[ July 24, 2002: Message edited by: parvin ]
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Have you tried compiling your Servlet outside the Server ? I noticed that the exception is that the package not found is java.servlet. Are you sure you are importing javax.servlet and not java.servlet ?
Ritesh
 
Navi Singh
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ritesh,
that's one error removed now.
I am able to get the servlet.class file.
Where do i place the .class file in which folder,i.e the rest of my previous humble request.
Thank's again,
Parvin.
 
Ranch Hand
Posts: 1514
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can configure your web.xml file depending on how you want to access it. But for now you can put it under...
ServerDirectory\webapps\examples\WEB-INF\classes.
Access it as localhost:8080\examples\servlet\yourServletname
 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"parvin"-
Welcome to the JavaRanch! Please adjust your displayed name to match the JavaRanch Naming Policy.
You can change it here.
Thanks! and again welcome to the JavaRanch!
 
Navi Singh
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks to all of u for the quick response,
next q)what is the meaning of
a)classpath.
b)path in context to above questions.
for example at present i am making my ".class"files in j2sdk1.4.0_01\bin folder,
but if have my seperate folder like
j2sdk1.4.0_01\bin\myfolder,i can not execute the javac command.
the message is 'javac' is not a recognized statement.
Obviously it has something to do with
classpath or path etc.
please do advice.

Thank's once again for the answer's.
parvin
 
Navi Singh
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, j2EELadies & j2EEGentlemen
please help me out on my quest.
Thank's,
Parvin
 
Do Re Mi Fa So La Tiny Ad
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic