Solved

Deprecation

Posted on 1998-07-12
4
372 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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Java Server Faces parameter pass? 6 50
github account with ecipse 1 47
Tomcat: Unable to run tomcat service. 2 18
login form jsp example 2 25
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

770 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