Coder Social home page Coder Social logo

homebrew-openjdk's Introduction

⚠ DEPRECATION NOTICE ⚠

This homebrew tap is officially deprecated in favor of the temurin casks provided directly from the Homebrew project, and will receive no further updates after 2021-08-01 (Aug 01, 2021). Please adjust your usage accordingly:

Untap this brew tap:

$ brew untap AdoptOpenJDK/openjdk

To download the latest version (16):

$ brew install --cask temurin

To install other versions:

$ brew tap homebrew/cask-versions
$ brew install --cask temurin8

AdoptOpenJDK - HomeBrew TAP

Usage

To always get the latest and greatest AdoptOpenJDK, run:

$ brew install --cask adoptopenjdk

The adoptopenjdk cask will automatically upgrade to the newest patch or major release as soon as it comes out.

To stay with a specific major release, activate the AdoptOpenJDK tap with brew tap and then install the desired version with brew install --cask <version>:

$ brew tap AdoptOpenJDK/openjdk
$ brew install --cask <version>

To install AdoptOpenJDK 14 with HotSpot, run:

$ brew tap AdoptOpenJDK/openjdk
$ brew install --cask adoptopenjdk14

Multiple major releases can be installed side-by-side. To get a list of available versions, run brew search adoptopenjdk or see the list here in the README.

Available Versions

Java Version JDK JRE
Latest OpenJDK with Hotspot JVM adoptopenjdk adoptopenjdk-jre
Latest OpenJDK with OpenJ9 JVM adoptopenjdk-openj9 adoptopenjdk-openj9-jre
OpenJDK8 with Hotspot JVM adoptopenjdk8 adoptopenjdk8-jre
OpenJDK8 with OpenJ9 JVM adoptopenjdk8-openj9 adoptopenjdk8-openj9-jre
OpenJDK9 with Hotspot JVM adoptopenjdk9 n/a
OpenJDK10 with Hotspot JVM adoptopenjdk10 n/a
OpenJDK11 with Hotspot JVM adoptopenjdk11 adoptopenjdk11-jre
OpenJDK11 with OpenJ9 JVM adoptopenjdk11-openj9 adoptopenjdk11-openj9-jre
OpenJDK12 with Hotspot JVM adoptopenjdk12 adoptopenjdk12-jre
OpenJDK12 with OpenJ9 JVM adoptopenjdk12-openj9 adoptopenjdk12-openj9-jre
OpenJDK13 with Hotspot JVM adoptopenjdk13 adoptopenjdk13-jre
OpenJDK13 with OpenJ9 JVM adoptopenjdk13-openj9 adoptopenjdk13-openj9-jre
OpenJDK14 with Hotspot JVM adoptopenjdk14 adoptopenjdk14-jre
OpenJDK14 with OpenJ9 JVM adoptopenjdk14-openj9 adoptopenjdk14-openj9-jre
OpenJDK15 with Hotspot JVM adoptopenjdk15 adoptopenjdk15-jre
OpenJDK15 with OpenJ9 JVM adoptopenjdk15-openj9 adoptopenjdk15-openj9-jre
OpenJDK16 with Hotspot JVM adoptopenjdk16 adoptopenjdk16-jre
OpenJDK16 with OpenJ9 JVM adoptopenjdk16-openj9 adoptopenjdk16-openj9-jre

Switch between different JDK versions

  1. Add the below function in your ~/.bashrc or ~/.zshrc
jdk() {
        version=$1
        export JAVA_HOME=$(/usr/libexec/java_home -v"$version");
        java -version
 }

For Fish shell user, add the below function in your ~/.config/fish/functions

function jdk
	set java_version $argv
	set -Ux JAVA_HOME (/usr/libexec/java_home -v $java_version)
	java -version
end
  1. Source the profile and you can change the version like below:
 jdk 1.8
 jdk 9
 jdk 11
 jdk 13

Adding a new cask

If a new major version has been released (e.g 14) add it to casks.txt. Normally you just need to copy the list of casks from the previous major version. e.g

# OpenJDK14
adoptopenjdk14
adoptopenjdk14-jre
adoptopenjdk14-openj9
adoptopenjdk14-openj9-jre

homebrew-openjdk's People

Contributors

aahlenst avatar adoptopenjdk-github-bot avatar aldokelvianto avatar ansman avatar commitay avatar devstuff avatar gdams avatar go-rahul avatar grischard avatar jackodsteel avatar jehrhardt avatar karianna avatar louy2 avatar majk1 avatar mthmulders avatar nadirj avatar okeanos avatar shireeshabongarala avatar skyisle avatar vonunige avatar zdtsw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebrew-openjdk's Issues

Error while attempting to install the adoptopenjdk-openjdk9 formula

The download link seems to be broken.

brew tap AdoptOpenJDK/openjdk
brew install adoptopenjdk-openjdk9
Updating Homebrew...
==> Installing adoptopenjdk-openjdk9 from adoptopenjdk/openjdk
==> Downloading https://github.com/AdoptOpenJDK/openjdk9-releases/releases/download/jdk-9%2B181/OpenJDK9_x64_Mac_jdk-9.181.tar.gz

curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "adoptopenjdk-openjdk9"
Download failed: https://github.com/AdoptOpenJDK/openjdk9-releases/releases/download/jdk-9%2B181/OpenJDK9_x64_Mac_jdk-9.181.tar.gz

Getting brew install to appear in `/usr/libexec/java_home`

I performed a brew install adoptopenjdk-openjdk10 and it appears to have installed correctly in /usr/local/Cellar/adoptopenjdk-openjdk10/jdk-10.0.1+10

Can you please help me have it be detected by /usr/libexec/java_home, at present /usr/libexec/java_home -v doesn't list it

ChecksumMismatchError: SHA256 mismatch when installing adoptopenjdk-openjdk11

==> Installing adoptopenjdk-openjdk11 from adoptopenjdk/openjdk
==> Downloading https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/down
Already downloaded: /Volumes/Fezzik/Users/drc/Library/Caches/Homebrew/downloads/154143ed1f7540b66ebceb732063de00c27467a5796256bea5e4492690833116--OpenJDK11-jdk_x64_mac_hotspot_11_28.tar.gz
Error: An exception occured within a child process:
  ChecksumMismatchError: SHA256 mismatch
Expected: 809a797d72a78668095913cdb2b39d1cf03ab76d144fd9a660031e4f604165ab
Actual: e99866dfaf2b245a966b2d1e83a76b4f6f13727859c37ee248eb6c763951e536
Archive: /Volumes/Fezzik/Users/drc/Library/Caches/Homebrew/downloads/154143ed1f7540b66ebceb732063de00c27467a5796256bea5e4492690833116--OpenJDK11-jdk_x64_mac_hotspot_11_28.tar.gz
To retry an incomplete download, remove the file above.

Install fails at `brew link` step.

I tried to install adoptopenjdk-openjdk10 and got the following error.

$ brew install adoptopenjdk-openjdk10
==> Installing adoptopenjdk-openjdk10 from adoptopenjdk/openjdk
==> Downloading https://github.com/AdoptOpenJDK/openjdk10-releases/releases/down
==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws
######################################################################## 100.0%
Warning: These binaries are not JCK compliant and should not be used in production
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink lib/libfreetype.dylib
Target /usr/local/lib/libfreetype.dylib
is a symlink belonging to freetype. You can unlink it:
  brew unlink freetype

To force the link and overwrite all conflicting files:
  brew link --overwrite adoptopenjdk-openjdk10

To list all files that would be deleted:
  brew link --overwrite --dry-run adoptopenjdk-openjdk10

Possible conflicting files are:
/usr/local/lib/libfreetype.dylib -> /usr/local/Cellar/freetype/2.9.1/lib/libfreetype.dylib
==> Summary
🍺  /usr/local/Cellar/adoptopenjdk-openjdk10/jdk-10.0.2+13: 713 files, 413.2MB, built in 1 minute 50 seconds

Error when installing openjdk8

Error: Failure while executing; /usr/bin/sudo -E -- /bin/mv -f -- /usr/local/Caskroom/adoptopenjdk8/8,192:b12/jdk8u192-b12 /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk exited with 1. Here's the output:
mv: rename /usr/local/Caskroom/adoptopenjdk8/8,192:b12/jdk8u192-b12 to /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk: No such file or directory

LTS cask

It would be great to have cask following LTS releases, i.e.: adoptopenjdk which would install jdk11, jdk17, jdk23 when they are released.

Add VonUniGE to installer team

I would like to nominate @VonUniGE to join the installer team. He has submitted updates/fixes to our homebrew casks and it would be great to get him merge/review permissions.

@VonUniGE are you happy to join?
@AdoptOpenJDK/build any objections?

OpenJDK 10 fails with 404 error

brew install adoptopenjdk-openjdk10
==> Installing adoptopenjdk-openjdk10 from adoptopenjdk/openjdk
==> Downloading https://github.com/AdoptOpenJDK/openjdk10-releases/releases/download/jdk-10%2B23/OpenJDK10_x64_Mac_

curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "adoptopenjdk-openjdk10"
Download failed: https://github.com/AdoptOpenJDK/openjdk10-releases/releases/download/jdk-10%2B23/OpenJDK10_x64_Mac_jdk-10.23.tar.gz

Cask for JDK11 has a version string inconsistent with other JDKs

I was looking at the different cask files and noticed that all of the JDK11 files use the pattern 11.x.y,z as versioning pattern and then make use of the #{version.before_comma} variable to create directories etc. where the JDK lives.
All the other JDK versions provided here and all the other Unix flavours I know of only denote the major version in the path, e.g. 10,0.2:13. In some cases multiple aliases are symlinked for common path variants.
From a developer perspective only using the major version in the path is also preferable because IDEs and tools such as maven (with toolchains for example) usually don't expect the JDK/JRE path to change on a patch level basis.

Additionally, the cask files for OpenJDK 11 only name themselves AdoptOpenJDK whereas all the others also put the major version number into the name such as AdoptOpenJDK 10.

adoptopenjdk12 is older than adoptopenjdk

$ brew cask info adoptopenjdk
adoptopenjdk: 12.0.2,10
https://adoptopenjdk.net/
Not installed
From: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/adoptopenjdk.rb
==> Name
AdoptOpenJDK Java Development Kit
==> Artifacts
jdk-12.0.2+10 -> /Library/Java/JavaVirtualMachines/adoptopenjdk-12.0.2.jdk (Generic Artifact)
==> Caveats
More versions are available in the AdoptOpenJDK tap:
  https://github.com/AdoptOpenJDK/homebrew-openjdk

  brew tap adoptopenjdk/openjdk

$ brew cask info adoptopenjdk12
adoptopenjdk12: 12.0.1+12
https://adoptopenjdk.net/
/usr/local/Caskroom/adoptopenjdk12/12.0.1+12 (189.3MB)
From: https://github.com/adoptopenjdk/homebrew-openjdk/blob/master/Casks/adoptopenjdk12.rb
==> Name
AdoptOpenJDK 12
==> Artifacts
OpenJDK12U-jdk_x64_mac_hotspot_12.0.1_12.pkg (Pkg)

/usr/local/include is not writable on installing JDK11

Get this error trying to install jdk11:

Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink include/classfile_constants.h
/usr/local/include is not writable.

You can try again using:
  brew link adoptopenjdk-openjdk11
==> Summary
🍺  /usr/local/Cellar/adoptopenjdk-openjdk11/jdk-11.28: 601 files, 298.5MB, built in 6 minutes 13 seconds

It seems it is assuming there is a /usr/local/include directory, however no such file or directory exists:

iMac:~ Luke$ ls -ald /usr/local/include
ls: /usr/local/include: No such file or directory

Checksum mismatch for JDK 8 202 b08 Hotspot

Problematic PR #54. Running brew cask install adoptopenjdk8 results in:

Error: Checksum for Cask 'adoptopenjdk8' does not match.
Expected: 35e8f9b18f6c7b627dba13a4c6f45e6266552ccd7156043d92391443db0d60d6
Actual:   059f7c18faa6722aa636bbd79bcdff3aee6a6da5b34940b072ea6e3af85bbe1d

The actual checksum matches the download and the matching ...sha256.txt file on the Github releases page.

add an openjdk7 formula for machine setup

We currently have to source the jdk7 manually for our machine setups. We should source an openjdk7 macOS binary and add it to this repo so that we can automate this

Uninstalling packages prompts for password many many times

I am trying to remove the package and it seems to be prompting me for the password many times (30 times before I got bored). I am not sure if it is deleting each file individually or what is going on here.

image

Running homebrew as sudo is not permitted so how can I get around these prompts?

OpenJ9 latest

Thank you very much for implementing BREW deployment of AdoptOpenJDK!

Can you, please, implement tracking of the latest OpenJ9, without explicitly specifying jdk version, similar to how you did it for OpenJDK:

brew cask install adoptopenjdk

I guess, it would be something like:

brew cask install adoptopenjdk-openj9

While at that, can you also provide large/small heap differentiation across all OpenJ9 versions?

Cask adoptopenjdk8 exists in multiple taps

When I try to run brew cask upgrade, I get the following error message:

$ brew cask upgrade
==> Casks with `auto_updates` or `version :latest` will not be upgraded
==> Upgrading 1 outdated package:
caskroom/versions/adoptopenjdk8 8,202:b08 -> 8,212:b03
Error: Cask adoptopenjdk8 exists in multiple taps:
  caskroom/versions/adoptopenjdk8
  adoptopenjdk/openjdk/adoptopenjdk8

This is because I use both taps caskroom/versions and AdoptOpenJDK/openjdk.

I just wonder what is the proper way to workaround this issue?

Can not install openjdk10

I run:

brew cask install adoptopenjdk10

I'm getting 404:

Downloading https://github.com/AdoptOpenJDK/openjdk10-binaries/releases/download/jdk-10.0.2%2B13/OpenJDK10U-jdk_x64_mac_hotspot_10.0.2_13.tar.gz

curl: (22) The requested URL returned error: 404 Not Found

adoptopenjdk-openjdk11 not set as system java on macOS 10.13.6

I installed adoptopenjdk-openjdk 11 via homebrew today on macOS 10.13.6. It installed fine but a linking error occured for which I filed a seperate issue.
This is issue is about adoptopenjdopenjdk11 not beeing recognized via /usr/libexec/java_home -V which is unfortunate since a lot of java apps on mac check this path for java and won't launch. You still need a workaround like the one described here https://gist.github.com/chaines27/7f9a91237e79e6b4b28899b96d74986f.

Please add large heap binaries

Eclipse is not working with adoptopenjdk8-openJ9 Please see here but works with adoptopenjdk8-openJ9 large heap binary. Is it possible to add Large heap OpenJ9 binaries to homebrew.

Missing (or Invalid?) Certs in openjdk10

Once i got openjdk10 to install #126
I would get the following SSL Error on run:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I noticed on StackOverflow this person was able to fix it by copying over the certs from jdk8: https://stackoverflow.com/questions/53246399/jdk8-jdk10-pkix-path-building-failed-suncertpathbuilderexception-unable-to

This is likely the same issue mentioned here in oracle/graal where they did the same thing (copy certs from jdk 8): oracle/graal#378 (comment)

Update to jdk8u181-b13

Looks like jdk8u181-b13 is out for Mac, but this is still installing jdk8u172-b11. Should the script be updated to point to the newer version?

Download of OpenJDK9 failed

> brew install adoptopenjdk-openjdk9
==> Installing adoptopenjdk-openjdk9 from adoptopenjdk/openjdk
==> Downloading https://github.com/AdoptOpenJDK/openjdk9-releases/releases/download/jdk-9%2B181/OpenJDK9_x64_Mac_jdk-9.181.tar.gz

curl: (22) The requested URL returned error: 404 Not Found
Error: An exception occured within a child process:
  DownloadError: Failed to download resource "adoptopenjdk-openjdk9"
Download failed: https://github.com/AdoptOpenJDK/openjdk9-releases/releases/download/jdk-9%2B181/OpenJDK9_x64_Mac_jdk-9.181.tar.gz

jmods/*.jmod are broken in homebrew java11 install

After doing "brew cask install adoptopenjdk11", I found that jlink fails with a hash mismatch. Some digging reveals that within the installed jmods directory, all of the .jmod files appear to have been unzipped-then-rezipped, breaking the sha256 hash references contained within them.

For example, within Contents/Home/jmods:

$ jmod describe java.base.jmod | grep "hashes java.xml "
hashes java.xml SHA-256 929bfb518525ecbf6f8cae090a934a1281e766953aa7556770c1373a5b44712f
$ sha256sum java.xml.jmod 
7a5c784efc2c4d0bd8471b376c72f4817bb2098c9cc3fd8ce96e4aa2f70d4871

Clearly, these hashes do not match. The same hash-mismatch happens for all of the jmod files.

The same hash-mismatch is present in the raw pkg files on github, so it isn't a post-installation issue.

If I instead download a plain tar.gz directly from github, rather than using homebrew or the pkg files, the hashes for that java.xml.jmod file will match, both showing value 21d97155832d8dc63f88bbf3589aeaa19ba2310243b1016646853b36fb98be1e

A binary compare shows that the good and bad java.xml.jmod files are very different, except for the first few header bytes. But if I unzip them both, they both contain identical contents, and the only difference appears to be in the zip archive itself. The bad jmod files have internal zip timestamps of 19-Aug-05, with unx filesystem type, and zip entries for directories. The good jmod files have internal zip timestamps of 19-Jul-18, with fat filesystem type, and no zip entries for directories. The number and sizes of all the contained files are identical.

How to Uninstall

I have installed using

brew tap AdoptOpenJDK/openjdk
brew install adoptopenjdk-openjdk8

It seems to have overwritten the existing java installations. How do I uninstall?

AdoptOpenJDK 8 libfontmanager.dylib requires libfreetype.6.dylib

When I attempted to run IntelliJ IDEA 2018.2 using Adopt OpenJDK 8 as the boot JDK, it failed with the following:

Caused by: java.lang.UnsatisfiedLinkError: /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre/lib/libfontmanager.dylib: dlopen(/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre/lib/libfontmanager.dylib, 1): Library not loaded: @rpath/libfreetype.6.dylib
  Referenced from: /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre/lib/libfontmanager.dylib
  Reason: image not found

I was able to recover by manually installing freetype from homebrew: brew install freetype

Can we solve this with a dependency on the cask(s)?

OpenJDK 8 install fails at 'brew link'

Here is what I get on installing jdk 8.

Error: The brew link step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink include/classfile_constants.h
/usr/local/include is not writable.

You can try again using:
brew link adoptopenjdk-openjdk8
==> Summary
🍺 /usr/local/Cellar/adoptopenjdk-openjdk8/jdk8u172-b11: 577 files, 170.4MB, built in 27 seconds
$ brew install adoptopenjdk-openjdk8
Warning: adoptopenjdk/openjdk/adoptopenjdk-openjdk8 jdk8u172-b11 is already installed, it's just not linked
You can use brew link adoptopenjdk-openjdk8 to link this version.
$ brew link adoptopenjdk-openjdk8
Linking /usr/local/Cellar/adoptopenjdk-openjdk8/jdk8u172-b11...
Error: Could not symlink include/classfile_constants.h
/usr/local/include is not writable.

How to make this link?

Thank you for your work!!

Unable to install openjdk via brew

I followed all steps and tapped to the repository but even then it doesn't work:
I am showing also that my homebrew installation generally works

W brew install iperf
==> Downloading https://homebrew.bintray.com/bottles/iperf-2.0.12.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring iperf-2.0.12.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/iperf/2.0.12: 8 files, 122.7KB

W brew tap AdoptOpenJDK/openjdk
==> Tapping adoptopenjdk/openjdk
Cloning into '/usr/local/Homebrew/Library/Taps/adoptopenjdk/homebrew-openjdk'...
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 9 (delta 1), reused 2 (delta 0), pack-reused 0
Unpacking objects: 100% (9/9), done.
Tapped 2 casks and 1 formula (37 files, 34.4KB).
W brew install adoptopenjdk-openjdk8
Error: No available formula with the name "adoptopenjdk-openjdk8" 
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
  git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.

Offering a JDK12 nightly cask

Would it make sense to offer a JDK12 nightly cask (similar to the Firefox Nightly one in the Homebrew/homebrew-cask-versions repository or other -nightly casks)?

JDK12 is the next major version and actively being developed, having an easy way to stay up to date with the ongoing releases, e.g. by having a nightly cask, would be an interesting proposition I think is worth investigating.

Interestingly the adoptopenjdk.net website makes no mention of JDK12 on the homepage and also offers no nightly downloads if that is a factor in what should be offered via casks.

There is a java-beta cask (see Homebrew/homebrew-cask-versions/java-beta.rb) but that appears not to use (Adopt)OpenJDK binaries and also is a fixed version (currently 12,33) while at the same time not disclosing this in the label (OpenJDK Early Access Java Development Kit) and cask name (java-beta).

Overwrites Oracle Java Setup

Workflow:

  1. brew cask install java
  2. brew install adoptopenjdk-openjdk10
  3. brew cask reinstall java

Expected:

  1. Oracle Java
  2. Warning that java is already installed
  3. Oracle Java

Instead:

  1. Oracle Java
  2. OpenJDK
  3. OpenJDK

openjdk builds but fails to link correctly

I installed adoptopenjdk-openjdk11 via homebrew today. Openjdk11 installed just fine but failed to link correctly.
Here's the output with the error:
Error: Failed changing dylib ID of /usr/local/Cellar/adoptopenjdk-openjdk11/jdk-11.28/Contents/Home/lib/server/libjsig.dylib
from @rpath/libjsig.dylib
to /usr/local/opt/adoptopenjdk-openjdk11/Contents/Home/lib/server/libjsig.dylib
Error: Failed to fix install linkage
The formula built, but you may encounter issues using it or linking other
formula against it.
==> Summary
🍺 /usr/local/Cellar/adoptopenjdk-openjdk11/jdk-11.28: 603 files, 298.5MB, built in 15 seconds

This error seems to prevent the openjdk 11 to register correctly and be identified as system java via /usr/local/bin/java --version.

JDK11 tap calls sudo despite brew prefix in $HOME

I have my brew prefix set to ~/brew , but brew cask install adoptopenjdk11 runs this command: /usr/bin/sudo -E -- env LOGNAME=jeff USER=jeff USERNAME=jeff /usr/sbin/installer -pkg /Users/jeff/brew/Caskroom/adoptopenjdk11/11,0.3:7/Open JDK11U-jdk_x64_mac_hotspot_11.0.3_7.pkg -target /

Java version not compatible with Gradle

I'm setting up Minecraft Forge to use AdoptOpenJDK from here, but Gradle can't parse the Java version correctly:

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine java version from '10.0.2'

Changing my JAVA_HOME to point to Oracle's JDK (1.8) works fine but any AOJDK versions I have installed goes pearshaped.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.