Skip to content

Linux 2.19.5 with Java fails to properly load bundled Java #1722

@ghost

Description

I recently downloaded IGV_Linux_2.19.5_WithJava and ran it on my machine. Executing the igv.sh command yielded the following error:

echo Using bundled JDK.
openjdk version "17.0.15" 2025-04-15
OpenJDK Runtime Environment (build 17.0.15+6-Ubuntu-0ubuntu122.04)
OpenJDK 64-Bit Server VM (build 17.0.15+6-Ubuntu-0ubuntu122.04, mixed mode, sharing)
Error occurred during initialization of boot layer
java.lang.module.FindException: Error reading module: /mnt/barry/projects/gene_software/IGV/IGV_Linux_2.19.5/lib/igv.jar
Caused by: java.lang.module.InvalidModuleDescriptorException: Unsupported major.minor version 65.0

After inspecting the Bash script I noticed it does not actually export the PATH variable prepending the Java path:

if [ -d "${prefix}/jdk-21" ]; then
    echo echo "Using bundled JDK."
    JAVA_HOME="${prefix}/jdk-21"
    PATH=$JAVA_HOME/bin:$PATH
else
    echo "Using system JDK. IGV requires Java 21."
fi

After adding export before PATH=$JAVA_HOME/bin:$PATH, the problem was fixed and I was able to boot up IGV as normal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions