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

Hotspot and OpenJ9 tarballs extract to the same directory #1066

Open
fraik opened this issue May 1, 2019 · 1 comment
Open

Hotspot and OpenJ9 tarballs extract to the same directory #1066

fraik opened this issue May 1, 2019 · 1 comment
Labels
bug Issues that are problems in the code as reported by the community

Comments

@fraik
Copy link

fraik commented May 1, 2019

Platform:
MacOS

Architecture:
x64

Both HotSpot and OpenJ9 tarballs untar into the same directory. If the destination directory contains the name of the JVM (i.e. hotspot or openj9) updating or switching between JVMs would (imho) be more straightforward and possibly less confusing out of the box.

Steps to reproduce

  1. visit https://adoptopenjdk.net/
  2. select "Other platform"
  3. select "OpenJDK 8 (LTS)"
  4. select "HotSpot"
  5. select "macOS x64"
  6. select "Download JDK (tar.gz)"
  7. select "Back to platform"
  8. select "OpenJ9"
  9. select "MacOS x64 Large Heap"
  10. select "Download JDK (tar.gz)"
  11. untar both HotSpot and OpenJ9 tarballs
  12. notice HotSpot JVM has been overwritten by the OpenJ9 JVM
# untar (hotspot)
[user@box TestZone]$ tar xf ~/Downloads/OpenJDK8U-jdk_x64_mac_hotspot_8u212b03.tar.gz

# check JVM (hotspot)
[user@box TestZone]$ jdk8u212-b03/Contents/Home/bin/java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_212-b03)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.212-b03, mixed mode)

# untar (openj9)
[user@box TestZone]$ tar xf ~/Downloads/OpenJDK8U-jdk_x64_mac_openj9_macosXL_8u212b03_openj9-0.14.0.tar.gz

# check JVM (now overwritten by openj9)
[user@box TestZone]$ jdk8u212-b03/Contents/Home/bin/java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-b03)
Eclipse OpenJ9 VM (build openj9-0.14.0, JRE 1.8.0 Mac OS X amd64-64-Bit 20190417_48 (JIT enabled, AOT enabled)
OpenJ9   - bad1d4d06
OMR      - 4a4278e6
JCL      - 5590c4f818 based on jdk8u212-b03)

Of course the destination directory can be moved to a different name but (imho) it would be better if the JVM-name is included by default.

Kind regards,
Freek

@karianna karianna added this to the May 2019 milestone May 2, 2019
@karianna karianna added the bug Issues that are problems in the code as reported by the community label May 2, 2019
@karianna
Copy link
Contributor

karianna commented May 2, 2019

related to #1016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that are problems in the code as reported by the community
Projects
Status: Todo
Development

No branches or pull requests

2 participants