Skip to content

Unable to initialize JamVM on macOS #1

@jserv

Description

@jserv

Using OpenJDK 8 from Eclipse Temurin, JRE failed to initialize JamVM:

$ bin/java -XXaltjvm=jamvm -version
Exception occurred while VM initialising.
java/lang/NoClassDefFoundError: java/lang/ClassLoader

Known reasons:

  1. Different JRE layout: JRE for GNU/Linux has explicit architecture directory, such as jre/lib/amd64, but JRE for macOS has dynamic libraries in directory jre/lib.
  2. Different java_home information: It indicates to JRE directory on GNU/Linux, but Contents/Home is specified on macOS.

Test environment

  • macOS Catalina 10.15.7, x86-64
  • OpenJDK 8.0.352
$ bin/java -version
openjdk version "1.8.0_352"
OpenJDK Runtime Environment (Temurin)(build 1.8.0_352-b08)
OpenJDK 64-Bit Server VM (Temurin)(build 25.352-b08, mixed mode)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions