Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packr cannot recognise jrePath Temurin JRE and JDK zips for Windows #220

Open
touhidurrr opened this issue May 14, 2022 · 8 comments
Open

Comments

@touhidurrr
Copy link

I tried with JRE and JDK Temurin 11 builds for Windows x64 and x86_64 from here:
https://adoptium.net/temurin/releases/

Packr cannot recogise either JDK or JRE and throws the following error:

> java.io.IOException: Couldn't find JRE in JDK, see '/home/runner/work/buildUnciv/buildUnciv/desktop/packr/tmp'

Example Tests:
https://github.com/touhidurrr/buildUnciv/runs/6430297670?check_suite_focus=true#step:6:170

@karlsabo
Copy link
Member

I can't tell what you're running. You can check that directory to make sure it has a 'jvm.dll' file in there with the proper directory structure.

@touhidurrr
Copy link
Author

touhidurrr commented May 14, 2022

I can't tell what you're running. You can check that directory to make sure it has a 'jvm.dll' file in there with the proper directory structure.

In short it was working fine with some Java 8 oldjdks. However when I tried to use latest Temurin 11 JDK or JRE zips for windows x64 or x86_64, it failed. The only thing the changed for packr was the link in this line:
https://github.com/touhidurrr/buildUnciv/blob/9bf7ec0416c399aa9056bc70798b5a52b269cd66/.github/workflows/buildAndRelease.yml#L49
i don't think packr would throw java.io.IOException: Couldn't find JRE in JDK for anything esle.

@karlsabo
Copy link
Member

I haven’t tried the latest adoptium jdks. You could try forking and updating the test to see what happens.

JvmRemoteArchiveInformation(uri("https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u275-b01/OpenJDK8U-jdk_x64_windows_hotspot_8u275b01.zip").toURL(),

@touhidurrr

This comment was marked as off-topic.

@touhidurrr
Copy link
Author

Ignore #220 (comment), I forgot this was a Windows specific issue. Also my analysis isn't correct.

@touhidurrr
Copy link
Author

For Temurin:

~$ find . | grep -P 'jvm.dll|libjvm.so|libjvm.dylib'
./bin/client/jvm.dll
./bin/server/jvm.dll

for OldJDK

$ find . | grep -P 'jvm.dll|libjvm.so|libjvm.dylib'
./jre/bin/server/jvm.dll

does it doesn't work because for Temurin it is the folder root?

@touhidurrr
Copy link
Author

touhidurrr commented May 21, 2022

ok @karlsabo I have built the packr from libgdx/packr:master@e6a277d which is the current latest on:
https://github.com/touhidurrr/packr/releases/tag/1653143085084336432

And tested it with Temurin Releases.

The result? Failure. CI Tests

@karlsabo
Copy link
Member

I updated the test suite to use the latest Temurin JDKs and JREs and they work without issue.

Take a look at the list of JDKs and JREs that are used in testing:
https://github.com/libgdx/packr/blob/6d1d5b6eefd3f6b0381ec980c1eb77440b425170/TestAppJreDist/testAppJreDist.gradle.kts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants