[prev] [up] [next]

Java Support - Installation & Configuration

Requirements

1. Smalltalk/X
You need recent Smalltalk/X jv-branch downloaded and installed on your computer. STX:LIBJAVA won't run correctly on official eXept Smalltalk/X distribution downloaded from http://www.exept.de. STX:LIBJAVA is still considered as experimental, work-in-progress and thus it is not yet included in official release.


2. JRE/JDK class files
STX:LIBJAVA does not provide its own java class library, instead it uses (now open-sourced) class library from OpenJDK. Therefore You need the OpenJDK-based JRE/JDK class files be installed on your system. Class files from ordinary Java installation are just fine. If you have a JRE/JDK already installed on your system, STX:LIBJAVA will automatically use it. If it fails to detect it, you have to set it manually - see Configuration - Basic Settings.

Installation

As STX:LIBJAVA is included in Smalltalk/X jv-branch no extra installation steps are required.

Configuration

Basic STX:LIBJAVA configuration is done through user settings. In Launcher, select System / Settings and then select Java.
[missing image] Java Settings Application
Java Settings Dialog

Basic Settings

Release.
Defines which Java release (aka version) class library should be used. Normally, STX:LIBJAVA tries to autodetect which release is installed on the system by searching standard paths for JRE/JDK files.

Available releases are:

JAVA_HOME
A path to JRE. Unless you choose Custom Java release, JAVA_HOME is autodetected. If the JAVA_HOME points into jre subdir in full JDK, STX:LIBJAVA automatically sets the paths and other runtime variables so it makes use of full JDK, including javac classes. Source path is also update accordingly.

Classpath

Defines a class path for Java. A path to directory containing Java .class files or path to .jar or .zip containing classes can be defined here. When the checkbox is unticked. the path element is not taken into the account.

Alternatively, you may add an entry to STX:LIBJAVA's classpath by evaluating:

Java addToClassPath:  '/path/to/my/classes'.

Class path entries defined by Java runtime (such as path to Java runtime library rt.jar) or entries defined by other Smalltalk/X packages are also shown, although they cannot be changed nor removed.

Sources

Defines paths where to find sources for classes. Access to the sources is not required in order to run the code, but is useful when browsing and debugging Java code within Smalltalk/X. Entries could point to a directory with sources or to .jar or .zip containing .java files.

Alternatively, you may add an entry to STX:LIBJAVA's source path by evaluating:

Java addToSourcePath:  '/path/to/my/sources'.

Compatibility Notes

STX:LIBJAVA is being mainly developed and tested on Linux machines using OpenJDK 6. Windows and Sun/Oracle JDK 6 should work, although not tested. OpenJDK 7 is (currently) unsupported/untested.

<info@exept.de> , <stxlibjava-dev@googlegroups.com>

CVS: §Id: N/A §
SVN: $Id: java-installation.html,v 1.2 2013-02-25 11:15:32 vrany Exp $