This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pls help..URGENT!!!! Reply asap

 
Raukutam Sandeep
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
when i tried to import javax.servlet.*;
it is giving compile time error, that the package not found in import.
I downloaded the servlet class files from sun's website and extracted all the files.
I'm unable to rectify this error.
Puhuleese help me, as soon as possible.
regds,
Sandeep.
 
Preethi Suryam
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sandeep!
Did u set ur class path correctly?check it out.
Good Luck!
Preethi
 
Raukutam Sandeep
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi preethi,

to which file i have set the classpath.
This error is occuring only when i import javax.servlet.*;
Would u pls explain me, to which file i sould set the classpath?
Pls Reply asap,
thanx,
Sandeep
 
Saurabh Mittal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Surely ur classpath is not set properly. Include the corresponding .jar (example: servlet.jar) file in ur classpath. Thats it!!
 
Preethi Suryam
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Sandeep u include the servlet.jar file in the classpath.It will work fine.
Regards
Preethi
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please note that The Java Ranch has a naming policy, described here and "saurabh" is not a valid name. Please choose one which meets the requirements.
Thanks.
 
Raukutam Sandeep
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everybody,
thanx for u'r response,
Now it is working fine
(A small jhatka: i didn't set the classpath as u said, but yet it is working fine.How is it?)
Thanx again, for u'r immediate response,
regds,
Sandeep.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic