File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Compilation error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Compilation error" Watch "Compilation error" New topic

Compilation error

k silva

Joined: Jan 21, 2008
Posts: 9
When appears wrong equals to that?

src/com/example/model/ uses unchecked or unsafe operations.

Note: Recompile with -X-lint: unchecked for details.

help me
Christophe Verré

Joined: Nov 24, 2005
Posts: 14687

It's just a JDK1.5 warning, don't worry about it.

[My Blog]
All roads lead to JavaRanch
k silva

Joined: Jan 21, 2008
Posts: 9
Thank's Christophe
Vibhuti Goel

Joined: Sep 24, 2008
Posts: 3
Is it because of that warning message, I am not able to compile Servlet Version 2 (from Headfirst Servlets & JSP)?
I am getting this error. Can you please check and help me with the solution.

src\com\example\web\ cannot access
bad class file: .\classes\com\example\model\BeerExpert.class
class file contains wrong class: com.example.model.BeerExpert
Please remove or make sure it appears in the correct subdirectory of the classpath.
BeerExpert be = new BeerExpert();
1 error

bhanu chowdary
Ranch Hand

Joined: Mar 09, 2010
Posts: 256
Please post the command you are using to compile. Also check your import statements.
bhanu chowdary
Ranch Hand

Joined: Mar 09, 2010
Posts: 256
This could be useful.
subject: Compilation error
Similar Threads
How to cast an Object to a HashMap with out getting unchecked cast warning
"Why does Javaranch use a CGI based backend instead of Java technology"
What objects eligible for GC? Considering Exception obj here an object
Please explain the meaning of this annotation