This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
The instructions on page 112 are to "Drop all three classes(...) into the same directory... my question is based on the fact that the only successful class/java-file i compiled was the one called GameHelper. What is the exact syntax and file name(s) of the other two supposed to be, i've tried many and continue to get compile errors... the other two (saved in one .java file together, or two separate .java files) are referred to as SimpleDotCom and SimpleDotComGame.
i think what they are trying to say is that the 3 classes should be in the same directory e.g. C:\Program Files\Java\jdk1.5.0_03 so that you can compile and run them you only compile the SimpleDotComTestDrive file and the rest should compile automatically
then run it.
so to re-iterate, have all 3 java files in a directory typically, where the bin file is.
save all 3 files with their Class_Name.java, here is the code:
compile "javac SimpleDotComTestDrive.java" this will in turn compile the rest, then run it java SimpleDotComTestDrive this should run all 3 classes as the game.
davy [ December 31, 2006: Message edited by: Davy Kelly ]