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.
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:
Searched paths:
/usr/lib/jvm/java-6-openjdk/jre
Searched paths:
/usr/lib/jvm/java-6-sun
C:\Program Files\Java\jdk1.6*
, C:\Program Files (x86)\Java\jdk1.6*
Searched paths:
/usr/lib/jvm/java-7-openjdk/jre
, /usr/lib/jvm/java-7-openjdk-<arch>/jre
C:\Program Files\Java\jdk1.6*
, C:\Program Files (x86)\Java\jdk1.6*
Searched paths: none, you have to set JAVA_HOME manually. Use this if autodetection fails or if your Java is installed in a non-standard directory. If you think the directory is standard for given distribution, let us know, we'll add it into next STX:LIBJAVA release.
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.
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.
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'.
<info@exept.de> , <stxlibjava-dev@googlegroups.com>