Solved

Deprecation

Posted on 1998-07-12
4
373 Views
Last Modified: 2010-03-30
I have written a java program that compiles, but I get a warning that I need to recompile using -deprecation.  I am in a Unix environment and typically use "javac program_name.java" to compile.  Would anyone care to let me know how to add this to my compilation?  ( I am using a deprecated API)  thanks  
0
Comment
Question by:uotila
  • 2
4 Comments
 

Author Comment

by:uotila
ID: 1225903
Edited text of question
0
 

Accepted Solution

by:
mintt earned 20 total points
ID: 1225904
Oh that's easy
javac -deprecation program_name.java
0
 
LVL 5

Expert Comment

by:msmolyak
ID: 1225905
javac without parameters would show you all the acceptable options. Also the JDK documentation describes all the executables included into the kit.
0
 

Author Comment

by:uotila
ID: 1225906
Great....thanks...could not find that addressed in any book.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MySqlDump not dumping triggers 1 43
jsp insert to database example 2 46
Html Table Looping (part 2) 5 27
American Express @Work site and Java 4 24
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
The viewer will learn how to implement Singleton Design Pattern in Java.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question