aspose file tools*
The moose likes Java in General and the fly likes compile error(overrides a 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 "compile error(overrides a deprecated  API)" Watch "compile error(overrides a deprecated  API)" New topic
Author

compile error(overrides a deprecated API)

Suela Smith
Greenhorn

Joined: Apr 20, 2006
Posts: 11
Hi erveryone

anyone can halp me out with this compile error

Error:

java uses or overide a deprecated API

Recompile with -deprecation for details

any help would be greatly apriciated

Suela
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24185
    
  34

It's not an error; it's a warning. You can safely ignore it, but it's telling you that there's a better way to do something that you're doing. It's also telling you how to find out more about what specifically the problem is: add "-deprecation" to your "javac" command line, and it will tell you specifically what deprecated API you're overriding.

"Deprecated" basically just means "being replaced by something better."


[Jess in Action][AskingGoodQuestions]
Suela Smith
Greenhorn

Joined: Apr 20, 2006
Posts: 11
Where in javac lin should i add "deprecation"
Ken Blair
Ranch Hand

Joined: Jul 15, 2003
Posts: 1078
javac -cp . -deprecation MyClass.java

As one example.
 
Consider Paul's rocket mass heater.
 
subject: compile error(overrides a deprecated API)