Skip to content

Java-OS4 0.5.4

Latest

Choose a tag to compare

@derfsss derfsss released this 23 Jun 19:04

A Java 8 runtime for AmigaOS 4 (PowerPC) — JamVM 2.0 + the OpenJDK 8 class library, with a native AWT/Swing toolkit.

Fixed

  • sun.boot.class.path separator on AmigaOS. The property was the VM's raw :-joined boot path, but path.separator is ; on AmigaOS (: is the volume separator). OpenJDK's sun.misc.Launcher split it on path.separator and read the whole value as one bogus entry beginning niopatch.zip:, so AmigaDOS popped a "Please insert volume niopatch.zip" requester and every getBootstrapResource() failed. That made sun.reflect.misc.MethodUtil define Trampoline via the bootstrap loader and throw "Trampoline must not be defined by the bootstrap class loader" — first hit running Swing applications and the test suite (reported on amigans.net). sun.boot.class.path is now emitted as a ;-separated list of absolute paths anchored at java.home, so it splits correctly and every boot resource resolves. HelloJava was never affected.

Added

  • tests/regression/BootClassPathTest.java — a regression test that fails on the pre-0.5.4 VM and passes on 0.5.4 (and on a reference JVM).

Upgrading is recommended for anyone on 0.5.1–0.5.3. Headless apps, java -version, and the conformance suite are otherwise unchanged.

Install

Unpack the .lha, double-click the Java-OS4 drawer to run the installer (AmigaOS 4.1 Installation Utility). Requires clib4.library 2.1+ in LIBS: (bundled, installed if missing). See the README and CHANGELOG.