How to recompile with -Xlint:unchecked?

viggom555 picture viggom555 · May 30, 2012 · Viewed 53.6k times · Source

I keep getting this message in BlueJ/Java.

http://cache.gyazo.com/19c325e77bbc120892d1035dcfda5377.png

I know there are several other questions like this already on StackOverflow, but none of the answers were specific enough for me, a Java noob. For example, one of them said to add something on the javac command line," and I have no idea what is that. So use that information to know how specific you must be with me. Sorry. Thanks!

Answer

Epicblood picture Epicblood · May 30, 2012

open up command prompt in the directory with your source files. then type javac -Xlint:unchecked *.java