0

there is a imformation when I write "javac Test.java" that is " Test.java uses or overrides a deprecated API.
Recompile with -deprecation for details." yes,I want to see the detail,but how,how to do?
for example ,I write like this:javac deprecation Test.java ,but fail,nothing display.....
who can tell me how to use those options correctly?
thanks

2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by 1s2k3y4
0

you can use following syntax to get help for javac command

javac -help

. To use options with javac you have to put a hypen and the option name like this.In the second command i have used a value for classpath option.

javac -deprecation Test.java
javac -classpath c:\myfolder -deprecation Test.java
0

thank you guy
It works.....
You did me a great favor....

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.