How to install java and an editor

How to install java and an editor

  1. First download java 1.5 from the sun java website
  2. http://java.sun.com/j2se/1.5.0/download.jsp
    You want the jdk (Java Development Kit, formerly known as SDK - System Development Kit) not the JRE (Java Runtime Environment, which is what is needed to execute java programs) which does not contain a compiler.

    Note that java 1.5 is also called java 5.

    If you plan to install PFE, make sure you record the path where the compiler is installed so that you can use it to configure PFE to compile. The path will probably be something like

          c:/Program Files/Java/jdk.5.0
          

  3. Now install an editor. In the lab we are using PFE. Complete instructions for installing PFE are here. The following is a brief explanation of what you have to do.

    You can download PFE directly from here. After downloading the zip file, you can install it by simply extracting the contents of the zip file to a new directory in a suitable location such as "c:\program files\PFE". Once you have unzipped, you will want to make a shortcut to PFE32.exe.

  4. After downloading and installing PFE you must configure it so that it will compile and run java. Instructions on downloading, installing, and configuring it are

    Briefly, to configure PFE so that it will compile and run java, you must two things:

  5. You can also install other editors. The disk that comes with your text includes JGRASP, which you can also find on the web. Another good system is JCreator.
  6. One other point - you can use PFE to compile other languages if you know the addresses of the compilers. You can, for example, set up commands to compile and run Ada programs.