emscripten-core / emscripten-core/emscripten

emscripten doesn't find/use locally installed Java

Open
#18,275 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

This is similar to emscripten-core/emsdk#1142 but for Java.

I have a system installed Java 8 newer than what emcripten bundles.

Unfortunately there are no working instructions for doing so.

I tried using the command "emsdk uninstall java-8.152-64bit", then edited .emscripten to point to the locally installed java jre 1.8.0.192

But now CI builds fail with the error message "error: error: tool is not installed and therefore cannot be activated: 'java-8.152-64bit'"
which indicates that something deep inside emscripten is checking for the specific bundled java install status.

Installing the bundled java again causes emscripten to use it instead of the version/path specified in .emscripten

Please provide instructions for doing this right, and don't make such hidden boobytraps for sysadmins trying to run a minimal install.

OS version: Windows 10.0.22000.778
emscripten version: 3.1.14 (4343cbec72b7db283ea3bda1adc6cb1811ae9a73)

Command invoked by CI build script: %EMSDK_PATH%\emsdk.bat activate 3.1.14
Output from command:
Resolving SDK version '3.1.14' to 'sdk-releases-upstream-ade9d780ff17c88d81aa13860361743e3c1e1396-64bit'
error: error: tool is not installed and therefore cannot be activated: 'java-8.152-64bit'

Supplemental issue:
"emsdk install java_8.152-64bit" sets all unpacked files to the timestamp of running the unpack, not the upstream timestamps or the timestamps in the downloaded zip file.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.