简体   繁体   English

在哪里可以找到 Netbeans 中的 Xlint 选项?

[英]Where can I find the Xlint option in Netbeans?

I get an error Recompile with -Xlint:unchecked for details.我收到错误Recompile with -Xlint:unchecked for details. in Netbeans.在 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.您不要“取消选中”该选项,您需要将-Xlint:unchecked参数添加到传递给 Java 编译器的参数中。

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 " eg: -Xlint:unchecked ")对于基于 Ant 的项目,这是通过Project Properties -> Build -> Compiling在对话框底部的“Additional compiler options”输入字段中完成的(其中显示“ eg: -Xlint:unchecked ”)

在此处输入图像描述

For Maven projects see this answer对于 Maven 项目,请参阅此答案

-Xlint is a JVM parameter. -Xlint是一个 JVM 参数。 In your project follow this steps:在您的项目中执行以下步骤:

  1. Project properties项目属性
  2. Run
  3. VM Options虚拟机选项

And there in the text field you write -Xlint:unchecked在你写的文本字段中-Xlint:unchecked

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM