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

Recommended Answers

All 2 Replies

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.