• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compilation error

 
k silva
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's just a JDK1.5 warning, don't worry about it.
 
k silva
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank's Christophe
 
Vibhuti Goel
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post the command you are using to compile. Also check your import statements.
 
bhanu chowdary
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This could be useful.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic