Before installing PFE you must download and install Java from Sun's web site
at http://java.sun.com/j2se/1.5.0/download.jsp
Be sure to choose J2SE 5.0 JDK and no other option.
Only after Java has been successfully installed can you install PFE (the editor) and the remaining support software.
PFE is installed by downloading and executing PFEInstall.exe
There is no automatic de-installation program; however, if you've finished with PFE and don't want to use it again then you may wish to delete the folder PFE_UWE which can be found in the Program Files folder. Personally, I don't recommend this!
If you download and install a new version of Java from Sun's web site, then you should run PFEInstall.exe again so that the new version will get used.
If a newer version of PFEInstall.exe becomes available, then you may use it to update an existing installation. Your lecturer will tell you if it's necesssary to update.
NEW
Sometimes the install program doesn't correctly set up the Windows Registry. If this happens, then you can't compile within PFE. Fortunately, there's a simple fix:
End of new section
If your version of PFE becomes faulty, rerunning PFEInstall.exe will probably fix it.
If rerunning PFEInstall.exe doesn't fix a faulty installation, then I recommend the following steps:
To run PFE, look in the Start Menu > All Programs > Programmer's File Editor
PFE is an extremely powerful editor which we have modified so that it uses similar key commands to emacs. However, be aware of the following minor differences:
You can compile and execute Java programs without leaving PFE.
Try this:
A separate window opens for the compilation process. This window closes when the compilation is complete. The text that appeared in the compilation window is captured into a second window called CommandOutput1
The program now executes. When it finishes, the window CommandOutput1 contains all the messages it output.
Execute-Windows is used for programs which interact with the user using GUI components only.
Execute-DOS is used for programs which interact with the user using crude keyboard input classes (like TextInput). As a beginner, you'll probably use this option quite a lot.
This option applies the usual indentation and other rules to the program to produce a more prettily formatted version. After the operation is complete, you must select YES to load the updated version back into PFE. The unchanged version can be found in the file whose name ends with .java-o
Instant Feedback is part of an automatic marking system. It looks at your program and makes rude comments about the way it's laid out and the lack of comments. Use Instant Feedback when you're preparing assessed work to be handed in for marking.
Bob Lang
Sept 2004