Skip to content

scyjava does not recognise Java version of openjdk=17.0.18 from conda-forge #91

Description

@ncittm

The conda package openjdk=17.0.18 reports the following version:

$ java --version
openjdk 17.0.18-internal 2026-01-20
OpenJDK Runtime Environment (build 17.0.18-internal+0-adhoc.conda.src)
OpenJDK 64-Bit Server VM (build 17.0.18-internal+0-adhoc.conda.src, mixed mode)

This confuses the function parsing the version, running

docker run -e JAVA_HOME=/opt/conda/lib/jvm --rm -it mambaorg/micromamba:2-cuda13.2.1-ubuntu24.04 bash -c "\
micromamba install --quiet openjdk=17.0.18 python=3.14.6; \
pip install -qqq 'scyjava==1.12.5'; \
python3 -c 'import scyjava; ver = scyjava.jvm_version()'"

leads to

Traceback (most recent call last):
  File "/opt/conda/lib/python3.14/site-packages/scyjava/_jvm.py", line 144, in jvm_version
    return tuple(map(int, v.split(".")))
ValueError: invalid literal for int() with base 10: '18-internal'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
    import scyjava; ver = scyjava.jvm_version()
                          ~~~~~~~~~~~~~~~~~~~^^
  File "/opt/conda/lib/python3.14/site-packages/scyjava/_jvm.py", line 146, in jvm_version
    raise RuntimeError(f"Inscrutable java version: {v}")
RuntimeError: Inscrutable java version: 17.0.18-internal

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