That means that you are using a deprecated method call or a deprecated class. To see the details use following command while compiling:
javac -Xlint:deprecation YourMainClass.java
instead of:
If you are using a specific IDE, you need to find the way to add compiler parameters for your java project. (e.g. for netbeans: right click on your project node and select properties).