install JDK, not OpenJDK

Aliaksandr's Avatar

Aliaksandr

02 Feb, 2021 02:17 PM

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. 1 Posted by Aliaksandr on 02 Feb, 2021 02:32 PM

    Aliaksandr's Avatar

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

  2. Support Staff 2 Posted by Feodor Fitsner on 03 Feb, 2021 03:00 AM

    Feodor Fitsner's Avatar

    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. 3 Posted by Aliaksandr on 03 Feb, 2021 08:38 AM

    Aliaksandr's Avatar

    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. Support Staff 4 Posted by Feodor Fitsner on 03 Feb, 2021 11:39 PM

    Feodor Fitsner's Avatar

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

  5. 5 Posted by Aliaksandr on 04 Feb, 2021 06:37 AM

    Aliaksandr's Avatar

    Thank you!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

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

Attached Files

You can attach files up to 10MB

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

18 Oct, 2021 12:38 PM
16 Oct, 2021 04:34 PM
15 Oct, 2021 08:29 PM
15 Oct, 2021 06:34 PM
13 Oct, 2021 03:47 PM

 

13 Oct, 2021 06:27 AM
13 Oct, 2021 05:54 AM
12 Oct, 2021 06:48 PM
12 Oct, 2021 06:47 PM
12 Oct, 2021 12:36 PM
11 Oct, 2021 10:05 AM