last update: $Date: 2010/03/09 10:45:00 $

Documents

Installation manual

Installing on Macintosh

  1. System Requirement

    Because Jun for Java version 340 and later requires Java 2, it requires Mac OS X.

  2. Installing Java Standard Edition 5.0

    Java Standard Edition 5.0 is included in Mac OS X.

    To develop with Jun for Java, you need to install Developer Tools.

  3. Installing Apple OpenGL

    OpenGL is included in Mac OS X, too.

  4. Installing Apple QuickTime

    To use the multimedia handling functions, you'll need to install QuickTime, which is also included in Mac OS X.

  5. Installing "Jun for Java"

    The most recent version of Jun for Java is available for downloading from SRA's FTP server. Also the runtime version is available. It's free to renaming or moving files or so. But the runtime version has not source files.

    The downloadable files have been archived in ZIP format and restoring them will result the following files and folders. Please restore them in an appropriate folder.

    README ... README file
    changes ... Changes file
    doc/Installation/ ... Directory which contains the installation manual.
    src/ ... Source directory
    src-jni/GL/ ... Source directory of JNI shared library for OpenGL
    src-jni/QT/ ... Source directory of JNI shared library for Apple QuickTime
    lib/jun???.jar ... Class library in JAR format. The ??? stands for the version number
    lib/macosx/libJunGL.jnilib ... JNI-complient shared library file needed to access OpenGL from Jun for Java
    lib/macosx/libJunQT.jnilib ... JNI-complient shared library file needed to access Apple QuickTime from Jun for Java

    The downloaded file contains StPL.

    README-StPL ... README file of StPL.
    src/jp/co/sra/smalltalk/ ... Source directory of StPL.
    src-jni/ST/ ... Source directory of JNI shared library for StPL
    lib/StPL??.jar ... StPL in JAR format. The ?? stands for the version number.
    lib/macosx/libStPL.jnilib ... JNI-complient shared library file needed to access StPL.

    As this library is a port of the original Jun written in Smalltalk (Jun for Smalltalk), Jun for Java uses SRA's "Smalltalk-Style Programming Library". Please read the README file at the StPL directory for more information.

    To rebuild libJunGL.jnilib, etc., execute make in ~/Jun4Java/src-jni/. You need Developer Tools installed.

  6. Invoking the Launcher

    Put the 2 JAR files ("jun???.jar" and "StPL??.jar"), JNI library file ("jun4java.shlib"), and JNI library file for QuickTime ("JunQT.shlib") to the same folder as "jun4java.app", and launch "jun4java.app."

    Or open the Terminal window, and set the DYLD_LIBRARY_PATH environment variable. Then, add the 2 JAR files that have been installed (i.e., "jun???.jar" and "StPL??.jar") to the Java class path, then specify the class containing the method main, and invoke the Java virtual machine.

    For example, this can be accomplished by executing the following command.

        setenv DYLD_LIBRARY_PATH $HOME/Jun4Java/lib/macosx
        java -cp $HOME/Jun4Java/lib/jun758.jar:$HOME/Jun4Java/lib/StPL97.jar jp.co.sra.jun.system.support.JunLauncher
    
    In this, it is assumed that the JAR files have been installed in the path "$HOME/Jun4Java". If they have been installed elsewhere, then revise the specification of CLASSPATH appropriately.

  7. Troubleshooting


http://www.sra.co.jp/people/hoshi/
mailto:hoshi@sra.co.jp