University | Up | Oberon | Russian Oberon Page | Author | Tetris | Ticker | Download J()B
Russian version


JOBTM
S. Sverdlov 1998

Oberon-2 compiler



Characteristics

Source language Oberon-2
Target language Java Virtual Machine (JVM) byte code (.class files)
J()B compiler execution environment Windows-95, Windows NT (console application)
Applications, compiled by J()B, execution environment Any, Java Virtual Machine supporting platform
Applets, compiled by J()B, execution environment Any Internet browser with Java support. Appletviewer from Java Development Kit (JDK)
  • Modules, compiled from Oberon-2, can be used with classes, compiled from Java.
  • The class files of created by J()B can be loaded by Java-tools: Borland JBuilder etc.
  • Java Development Kit (JDK) can be loaded free from http://www.javasoft.com/products/jdk/
  • System requirements Less than 1MB of memory for compilation; ~ 500K on disk
    Libraries
    • Oakwood Guidelines compatible modules : In, Out, Files, Strings, Math, MathL, XYplane
    • 46 definitions modules for Java API 1.02 (javalang, javaawt, javaapplet etc.)

    University | Up | Oberon | Russian Oberon Page | Author | Tetris | Ticker | Download J()B


    J()B installation

    J()B is distributed as a single self-extracting archive.


    University | Up | Oberon | Russian Oberon Page | Author | Tetris | Ticker | Download J()B

    Hello, World!

    Let source code located in file hello.o:

    Compilation:

    Compiler created two files: Hello.class and Hello.dfn. Now, run program (Hello.class):

    Good!. For compilation and execution of our program we used files job.bat and java.bat.


    University | Up | Oberon | Russian Oberon Page | Author | Tetris | Ticker | Download J()B

    Look at files Hello.dfn and Hello.class:

    Hello.dfn is ASCII-file:

    Class file is binary. It is disassembled:


    University | Up | Oberon | Russian Oberon Page | Author | Tetris | Ticker | Download J()B

    Black Square Applet

    This is the first applet compiled by J()B .

    Black Square is a famous picture of Kasimir Malevich.

    Now, compilation:

    For the running Black Square applet use the appletviewer program from JDK. As parameter for appletviewer it is possible to specify the source code file, if this file contains <APPLET> tag:

    Run appletviewer (av.bat batch file):

    After that on the screen there is such window:


    The Oberon Webring Navigator
    Skip Prev | Prev | Next | Skip Next | Random | Next 5 | List Sites | Join


    University | Up | Oberon | Russian Oberon Page | Author | Tetris | Ticker | Download J()B

    S. Sverdlov
    c3c@uni-vologda.ac.ru

    July 1998

    J.Class Optimizer Rambler's Top100

    Russian version


    Oberon - Webring