File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes deprecated API Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "deprecated API" Watch "deprecated API" New topic
Author

deprecated API

Tim Barker
Greenhorn

Joined: Aug 03, 2001
Posts: 24
To Expert:
Does anyone know why I am receiving the following warning:
Note: C:\JavaPro\HTML\Applet\yig3.java uses or overrides a deprecated API. Recompile with "-deprecation" for details.
1 warning
Process completed successfully

I am not sure what a deprecated API is.
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
It means that you are using a method(s) that is no longer supported. It may go away in the next release so follow the instructions and recompile. The API will tell you what methods replaced the one(s) in question.
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
do what it says. Recompile using
>javac -deprecation yig3.java
and it will tell you what method of what object is the offender.


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
wood burning stoves
 
subject: deprecated API