Homebrew : Error: openjdk#8: no bottle available - java

I am trying to install Java 8 with OpenJDK in an M1 Macbook terminal and it gives the following error. Command that I used was brew install openjdk#8
Error: openjdk#8: no bottle available!
You can try to install from source with:
brew install --build-from-source openjdk#8
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.

At the moment, there is no version of openjdk#8 that supports M1 x64 bit chips in Macbooks. But, there is an alternative and it could be installed using this website : https://adoptium.net/temurin/releases/?version=8

Related

" sdk install java 8.0.232.hs-adpt " giving an error on ubuntu 20.04.2

each time that I try to install java through sdk, using this command: sdk install java 8.0.232.hs-adpt
I getting this error :
Stop! java 8.0.232.hs-adpt is not available. Possible causes:
8.0.232.hs-adpt is an invalid version
java binaries are incompatible with your platform
java has not been released yet
Tip: see all available versions for your platform:
I am using ubuntu 20.04.2
Do you need especially java 8.0.232.hs-adpt version?
In case you don't, this worked for me https://ubuntuhandbook.org/index.php/2021/03/oracle-java-16-released-install-ubuntu-20-04/.
You can install open jdk automated but you can not install Orcale's JDK through sdk man or apt, this is because Oracle's licensing agreement of java does not allow the installation to be automated.
You have to go to the Oracle's download page and download the appropriate tar and and you can automate the install with a repository add later on if you really need it.
https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-on-ubuntu-18-04
Yes, java 8.0.232.hs-adpt is for hadoop-hdfs. I am having problem to connect to the port. Even when I have changed the port. Some people told me that it is about my java version, so I need to install it with sdk-man
I will try your solution.

Pygame and Java JDK 13 installation troubles

Good morning guys,
trying to install the Pygame library on my MacBook Pro...
I encountered some issues that I'm sure you're able to help me with!
First of all I installed the last Python version (3.7.4)
Than I tried to install via pip the Pygame library, but the process
was unsuccessful due to the lack of a Java JKD 13.
I downloaded and installed the last JDK 13 version (Jdk-13_osx-x64)
and this process appeared to be successful.
Trying again to finally install the Pygame library an error occurred:
Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk-13.jdk/Contents/Home/bin/apt
Can anyone of you guys help me???
Thanks prior!
For Python and Java developers using macOS, I personally recommend installing Python and Java through HomeBrew.
Before you can start your journey as a software developer, you should install Xcode and xcode-select first which is mandatory.
You can install Xcode from Mac AppStore and xcode-select through the following command:
xcode-select --install
After installing the prerequisites, you can install HomeBrew via:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Which is referenced from here
After you've installed HomeBrew you can install Python3 and AdoptopenJDK via the following command:
brew install python3
brew cask install adoptopenjdk
AdoptopenJDK is an open source JDK recommended by myself other than Oracle JDK.
Apt used to be a command coming with the Java Development Kit around Java 6.
Java 6 is also the latest 32-bit version provided by Apple but that doesn’t run on the newest version of Mac OS.
I think you should look for a newer version of pygame compatible with your system.

problem about installing bazel with homebrew

When I installed bazel with homebrew, I got the following error.
Updating Homebrew... bazel: Java 1.8 is required to install this
formula. JavaRequirement unsatisfied! You can install with Homebrew
Cask: brew cask install homebrew/cask-versions/java8 You can download
from:
https://www.oracle.com/technetwork/java/javase/downloads/index.html
Error: An unsatisfied requirement failed this build.
I installed (newest version) Java with homebrew.
I do not want to install two versions of Java in my mac.
How do I install bazel based on the available Java?
I do not want to install two javas in my mac.
You have to, or remove the version you currently have. Bazel needs java 8 and no other versions are supported as mentioned in the docs:
You must install version 8 of the JDK. Versions other than 8 are not supported.
JDK is not mandatory. Please check bazel github release page: https://github.com/bazelbuild/bazel/releases

Java installation failed on Mac

I'm attempting to install JDK 8 Update 121.pkg on a Mac running macOS Sierra 10.12.3.
The installer produces the following error message, see screenshot:
"The installation failed... Contact the software manufacturer for assistance."
How would I contact Oracle? Or is there a better fix?
I would recommend you use Homebrew and a tool like jenv to manage the different Java versions on OSX:
brew cask install java
brew install jenv
OSX needs its outdated system-default Java for the occasional task, so you don't want to go replacing it outright.

Install cuda java on mac 10.9

I am trying to install the GNU scientific library using homebrew on OSX (version 10.9.5) following this link:
$ brew install caskroom/cask/brew-cask
$ brew cask install cuda java
$ brew install clang-omp swig bazel cmake libusb maven nasm yasm xz pkg-config
When I type brew cask install cuda java I get the following error message:
Error: Cask 'cuda' definition is invalid: Bad header line: parse failed
What does this mean, and how do I resolve this? If there is another way to get GSL on Java that would also be helpful.
That formula doesn't seem to exist.
You can look on https://github.com/caskroom/homebrew-cask/tree/master/Casks yourself to see a list of formula offered. There is a cuda and cuda-z formula shown, but no cuda java.
If you want to make absolutely sure you are not missing something, try:
brew search cuda java

Categories