Closed martinbonnin closed 5 months ago
.pkg
is working
$ /Library/Java/JavaVirtualMachines/jbrsdk-17.0.10-osx-aarch64-b1087.23/Contents/Home/bin/java --version
openjdk 17.0.10 2024-01-16
OpenJDK Runtime Environment JBR-17.0.10+1-1087.23-nomod (build 17.0.10+1-b1087.23)
OpenJDK 64-Bit Server VM JBR-17.0.10+1-1087.23-nomod (build 17.0.10+1-b1087.23, mixed mode)
In my case it works well
tar.gz
by double clicking in Finder
$ ~/workspace/jdk/jbr17/jbrsdk-17.0.10-osx-aarch64-b1087.23/Contents/Home/bin/java -version
openjdk version "17.0.10" 2024-01-16
OpenJDK Runtime Environment JBR-17.0.10+1-1087.23-nomod (build 17.0.10+1-b1087.23)
OpenJDK 64-Bit Server VM JBR-17.0.10+1-1087.23-nomod (build 17.0.10+1-b1087.23, mixed mode)
$ cd ~/workspace/jdk/jbr17
$ ./jbrsdk-17.0.10-osx-aarch64-b1087.23/Contents/Home/bin/java -version openjdk version "17.0.10" 2024-01-16 OpenJDK Runtime Environment JBR-17.0.10+1-1087.23-nomod (build 17.0.10+1-b1087.23) OpenJDK 64-Bit Server VM JBR-17.0.10+1-1087.23-nomod (build 17.0.10+1-b1087.23, mixed mode)
2. After unpacking `tar.gz` in command line
$ tar --version bsdtar 3.5.3 - libarchive 3.5.3 zlib/1.2.12 liblzma/5.4.3 bz2lib/1.0.8
$ tar xzvf jbrsdk-17.0.10-osx-aarch64-b1087.23.tar.gz x jbrsdk-17.0.10-osx-aarch64-b1087.23/ x jbrsdk-17.0.10-osx-aarch64-b1087.23/Contents/ x jbrsdk-17.0.10-osx-aarch64-b1087.23/Contents/CodeResources x jbrsdk-17.0.10-osx-aarch64-b1087.23/Contents/_CodeSignature/ x jbrsdk-17.0.10-osx-aarch64-b1087.23/Contents/Home/ . . .
$ ~/workspace/jdk/jbr17/jbrsdk-17.0.10-osx-aarch64-b1087.23/Contents/Home/bin/java -version openjdk version "17.0.10" 2024-01-16 OpenJDK Runtime Environment JBR-17.0.10+1-1087.23-nomod (build 17.0.10+1-b1087.23) OpenJDK 64-Bit Server VM JBR-17.0.10+1-1087.23-nomod (build 17.0.10+1-b1087.23, mixed mode)
$ ./jbrsdk-17.0.10-osx-aarch64-b1087.23/Contents/Home/bin/java -version openjdk version "17.0.10" 2024-01-16 OpenJDK Runtime Environment JBR-17.0.10+1-1087.23-nomod (build 17.0.10+1-b1087.23) OpenJDK 64-Bit Server VM JBR-17.0.10+1-1087.23-nomod (build 17.0.10+1-b1087.23, mixed m
Only one idea: there may be an issue on unpacking stage. How did you unpacked `tar.gz`?
Well, I am puzzled... I re-downloaded and now it works. But I still have the archive from this morning and extracting this one fails despite both of the files having the same checksum 🤔
$ tar xvzf old/jbrsdk-17.0.10-osx-aarch64-b1087.23.tar.gz
$ ./jbrsdk-17.0.10-osx-aarch64-b1087.23/Contents/Home/bin/java
zsh: killed ./jbrsdk-17.0.10-osx-aarch64-b1087.23/Contents/Home/bin/java
$ rm -rf jbrsdk-17.0.10-osx-aarch64-b1087.23
$ tar xvzf new/jbrsdk-17.0.10-osx-aarch64-b1087.23.tar.gz
$ ./jbrsdk-17.0.10-osx-aarch64-b1087.23/Contents/Home/bin/java
Usage: java [options] <mainclass> [args...]
(to execute a class)
or java [options] -jar <jarfile> [args...]
(to execute a jar file)
or java [options] -m <module>[/<mainclass>] [args...]
java [options] --module <module>[/<mainclass>] [args...]
(to execute the main class in a module)
or java [options] <sourcefile> [args]
(to execute a single source-file program)
And now for the funny part:
$ sha512sum old/jbrsdk-17.0.10-osx-aarch64-b1087.23.tar.gz
bcf49d60b631ca447d8b368b54794e6a33b87afceb83a794d294400a9ee7d9ecd7feada067657a2001bbc9d2c02ca1da9dd3f6f3b90cf37d6384169f0677f95a old/jbrsdk-17.0.10-osx-aarch64-b1087.23.tar.gz
$ sha512sum new/jbrsdk-17.0.10-osx-aarch64-b1087.23.tar.gz
bcf49d60b631ca447d8b368b54794e6a33b87afceb83a794d294400a9ee7d9ecd7feada067657a2001bbc9d2c02ca1da9dd3f6f3b90cf37d6384169f0677f95a new/jbrsdk-17.0.10-osx-aarch64-b1087.23.tar.gz
I'll just blame a cosmic ray or some filesystem corruption or something else 🤷 . Sorry for the noise.
Hi 👋
Trying to download the latest M1 JBRSDK, I get this error when trying to run java:
Checksums seem to match. Any idea what could be wrong?