Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find the Xlint option in Netbeans?

I get an error Recompile with -Xlint:unchecked for details. in Netbeans. Where can I find the option to uncheck?

like image 564
theking963 Avatar asked Oct 05 '11 14:10

theking963


1 Answers

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

enter image description here

For Maven projects see this answer

like image 124
a_horse_with_no_name Avatar answered Sep 22 '22 13:09

a_horse_with_no_name