开发者

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")

Where can I find the Xlint option in Netbeans?

For Maven projects see this answer


-Xlint is a JVM parameter. In your project follow this steps:

  1. Project properties
  2. Run
  3. VM Options

And there in the text field you write -Xlint:unchecked

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜