Deprecation

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  
uotilaAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
minttConnect With a Mentor Commented:
Oh that's easy
javac -deprecation program_name.java
0
 
uotilaAuthor Commented:
Edited text of question
0
 
msmolyakCommented:
javac without parameters would show you all the acceptable options. Also the JDK documentation describes all the executables included into the kit.
0
 
uotilaAuthor Commented:
Great....thanks...could not find that addressed in any book.
0
All Courses

From novice to tech pro — start learning today.