This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

doubt in head first s and j  RSS feed

 
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
Boost this thread!