Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compling problem

 
cry kuranga
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic