wood burning stoves*
The moose likes Beginning Java and the fly likes Compling problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Compling problem" Watch "Compling problem" New topic
Author

Compling problem

cry kuranga
Greenhorn

Joined: Feb 23, 2007
Posts: 1
I still very new to Java and I'm so confused will this statement when I was compling:

Note: H:\Program Files\Xinox Software\JCreator Pro\MyProjects\college\MainFrame.java uses unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

Please assist....
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Welcome to JavaRanch!

My guess is that you are using collections (like a List or Set) without proper use of generics. The compiler warning is just a warning -- this alone should not prevent the file from compiling.

To see the exact causes, recompile with the -Xlint flag as suggested.

>javac -Xlint:unchecked myFile.java


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Compling problem