aspose file tools*
The moose likes Servlets and the fly likes doubt in head first s and j Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "doubt in head first s and j" Watch "doubt in head first s and j" New topic
Author

doubt in head first s and j

hem kumar
Ranch Hand

Joined: Sep 05, 2005
Posts: 97
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...


.....For Every Problem There Is a Solution.....
Regards, Hem
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: doubt in head first s and j