aspose file tools*
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
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Compilation error" Watch "Compilation error" New topic
Author

Compilation error

k silva
Greenhorn

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

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

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

help me
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

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


[My Blog]
All roads lead to JavaRanch
k silva
Greenhorn

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

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\BeerSelect.java:21: cannot access classes.com.example.model.BeerExpert
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

Thanks,
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.
 
jQuery in Action, 2nd edition
 
subject: Compilation error