If you can read this page, you have already successfully

How to use the Java System

  1. Open a terminal window and type the following command to prepare step 3

    xhost +
    
  2. Log in to the remote system sun01 as user ooad. This can be done with the following command:

    rlogin -l ooad sun01.sts.tu-harburg.de
  3. Redirect the output to your local computer. This is done by the following command:
    setenv DISPLAY <local_computer_name>.cip2b.tu-harburg.de:0
    The <local_computer_name> can be found on a small printed label somewhere on your local computer.
    Example: If your local computer is called manwe, enter
    setenv DISPLAY manwe.cip2b.tu-harburg.de:0
  4. Change to the directory that belongs to your working group:
    cd ooad<xx>
  5. Start working with Java

Important Steps in Writing and Running Your First Java Program

  1. Create some source code within your text editor like the class Cell
    xemacs &
    Don't forget to start the editor from the command line of sun01 and not from the command line or workspace menu of your local workstation.

  2. Save it as .java - file, use the name of the class plus the extension .java (e.g. Cell.java)

  3. Compile the source file: javac
    javac Cell.java 
  4. You get bytecode within a .class - file (Cell.class)

  5. Run your application by interpreting the primary class' bytecode
    java Cell
  6. The Java interpreter looks for the main-method and executes it.