开发者

Where can I find the Xlint option in Netbeans?

开发者 https://www.devze.com 2023-04-11 03:23 出处:网络
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:un

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

精彩评论

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

关注公众号