The moose likes Servlets and the fly likes compilation error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "compilation error" Watch "compilation error" New topic

compilation error

aparna rudra

Joined: Apr 06, 2004
Posts: 14

when i am trying to compile my filewritten in servlets i get this compuilation error. wht does this error means?

can anyone help me?

dservlet.java uses or overrides a deprecated API.
Recompile with -deprecation for details.
nilesh Katakkar
Ranch Hand

Joined: Oct 27, 2004
Posts: 35
The jar file that contains servlet api in your classpath supports a particular version, and your servlet is using some API function from older version.

nilesh<br />neilindallas@hotmail.com
Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295
Hi Aparna Rudra,

Did u try using the request.putValue(); mothod in your code?

If so, it is deprecated and you will get such warning.

It is one of the reasons for such a warning

wood burning stoves
subject: compilation error
Similar Threads
File not found error
Encapsulation and getter&setter methods
Tomcat & MS Active Directory
i have a Errors in Hibernate Query