Where can I find the Xlint option in Netbeans?
I get an err开发者_如何学Goor Recompile with -Xlint:unchecked for details.
in Netbeans. Where can I find the option to uncheck?
You don't "uncheck" that option, you need to add the -Xlint:unchecked
parameter to the parameters passed to the Java compiler.
For Ant based projects, this is done through Project Properties -> Build -> Compiling
in the "Additional compiler options" input field at the bottom of the dialog (where it says "e.g.: -Xlint:unchecked")
For Maven projects see this answer
-Xlint
is a JVM parameter. In your project follow this steps:
- Project properties
- Run
- VM Options
And there in the text field you write -Xlint:unchecked
精彩评论