install JDK, not OpenJDK

Hello Team,

Is it any way to install JDK 10.0.2 to macos environment ? I can install only OpenJDK 10.0.2.
I would like to have (see the screenshot).

  1. I need the JDK because when i build my android application it shows (see the screenshot).

  2. I think you can just download "macOS Compressed Archive" from official Java download page and untar it, something like this could be added to your appveyor.yml:

    install:
    - sh: curl -LOb "oraclelicense=a" https://download.oracle.com/otn-pub/java/jdk/15.0.2+7/0d1cfde4252546c6931946de8db48ee2/jdk-15.0.2_osx-x64_bin.tar.gz -o jdk-15.0.2_osx-x64_bin.tar.gz
    - sh: tar zxf jdk-15.0.2_osx-x64_bin.tar.gz
    - sh: ./jdk-15.0.2.jdk/Contents/Home/bin/java --version
    

    Downloading itself looks a little bit hacky, but it works: https://ci.appveyor.com/project/FeodorFitsner/simple-console/builds...

  3. Hello Feodor Fitsner .
    Thanks a lot, you are really helped me.
    That's shame that Oracle doesn't provide "macOS Compressed Archive" for 10 version.

  4. You can, theoretically, mount .dmg and see its contents: https://osxdaily.com/2011/12/17/mount-a-dmg-from-the-command-line-i...

  5. Thank you!

Reply to this discussion Internal reply only staff will see it

Markdown

Attaching KB article:

» »

Read more…

Already uploaded files

  • photo_2021-02-02_13-36-31.jpg 9.85 KB
Attach files

Up to 10MB each.

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions