This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt in head first s and j

 
hem kumar
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey i tried the first mvc desing pogram in HFSJ . But when i tried to compile the BeerExpert.java program given in page 81 i was not able to compile it. It prints out some message saying recompile it with -Xlint . Then i recompile it with that thing it gave so many error like raw adding to list etc. plz tell me how to rectify it. I'm using jdk 1.5 with Tomcat 5.0 and evrything configred properly. Thank u in advance...
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did the compiler give you an error message or a warning message?
There are some new features in JDK1.5 that will cause warnings to appear if not used. Plenty of perfectly good 1.4 code will cause these warnings.
If a .class file was created, then it compiled.

If you're not using any 1.5 features, you can quiet the warnings down by using the -source 1.4 compiler switch.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic