|
|
|
Frequently asked |
|
|
|
| The questions listed here are the most common ones that students usually pose when starting to work with the Java compiler and Java programs. Check this listing if you have questions and you can probably find an answer faster than any other way! (Some of these questions and answers also exist in Appendix D of the workbook, entitled Helpful Hints.) |
|
Q: Where can I find help installing the Java compiler on my own computer? |
|
A: Page viii of the JavaPlease! workbook provides a summary of the process of installing the compiler, and Appendix A provides detailed information. The JavaPlease! CD/ROM contains a script file that executes automatically when you insert the CD/ROM into any drive, making this process particularly easy. |
|
Q: How can I use the JavaPlease! environment on a lab computer instead of my own PC? |
|
A. Yes, by all means! As you can read on page 162 of the workbook, a fold named \JavaPlease_version_FLOPPY exists on the JavaPlease! CD/ROM. It contains a file named @readme.txt file with complete instructions on installing the JavaPlease! environment on either a floppy disk or a modern USB-based flash-RAM device for use with lab computers. |
|
Q: How do I correct the error message "Error(s) in your code prevent a clean compile..."? |
|
A: JavaPlease! shows you this error message when the Java compiler can't recognize some element of your Java coding or you have made a punctuation or other "syntax" error. See page 159 of the workbook, which illustrates how the Java compiler reports the details of these errors to you. You go back to your Java code, edit it to change at least one of the lines that are reported to contain errors, and then reprocess the Java code again. The process often involves several iterations of these actions. But correcting one error in you Java code can often remove more than one Java error, due to the way the Java code is interpreted by the Java compiler. |
|
Q: How do I stop an executing Java program I am running with JavaPlease ? |
|
A: JavaPlease! executes your Java programs via a script file which provides a safeguard in case you code a program that includes an endless loop. Just press the Ctrl and c keys together, and answer y to the question that appears, "Terminate Batch job (Y/N)?". This safeguard is described on page 12 of the workbook and is repeated on every page facing programming exercises and problems. It's also described more fully on page 160. Appendix E illustrates the problem with the Java program Nasty_example1.java, the code for which is contained on your JavaPlease! CD/ROM. |
|
|