Solved

Deprecation

Posted on 1998-07-12
4
375 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn different types of Android Layout and some basics of an Android App.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

707 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