[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 379
  • Last Modified:

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  
0
uotila
Asked:
uotila
  • 2
1 Solution
 
uotilaAuthor Commented:
Edited text of question
0
 
minttCommented:
Oh that's easy
javac -deprecation program_name.java
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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now