I am trying to run Eclipse to develop Android apps. When I first opened Eclipse it provided a link to install legacy JVM from apple.com, after that was installed I am getting this error message
Version 1.6.0_65 of the JVM is not suitable for this product.
Version: 1.8 or greater is required
I installed the newer version (8u151) from java.com but that didn't help. I found the following link to download version 1.8 but that page has only the latest versions: http://www.oracle.com/technetwork/pt/java/javase/downloads/jdk8-downloads-2133151.html
Anyone figured out how to install Eclipse on Mac High Sierra?
I was able to get Eclipse work by installing the full
Java SE Development Kit 8u151 from http://www.oracle.com/technetwork/pt/java/javase/downloads/jdk8-downloads-2133151.html
java.com download or Apple's legacy JVM download did not work for Eclipse installation.
The last time this kind of thing bit me I was inadvertently installing the run-time Java (which is what Apple usually provides a link to) on my server, not the full Java SDK (which has the compilers and stuff you need to do developmentn).
I usually hunt for the full Java SE Development Kit at http://www.oracle.com/technetwork/java/javase/downloads/.
Scroll down until you see Download the Java SE Development Kit http://www.oracle.com/technetwork/java/javase/downloads/jdk-netbeans-jsp-142931.html
Related
This question falls somewhere between Firebase Tools, MacOS and Java. Probably 75% Java, 20% Firebase Tools and 5% MacOS.
Starting with v10.5, firebase-tools started stating that 'Support for Java version <= 10 will be dropped soon in firebase-tools#11. Please upgrade to Java version 11 or above to continue using the emulators.'
I run macOS v11.6.5 on a Macbook Pro from mid-2014. When I go to Java's Downloads page, it recommends Java 'Version 8 Update 331'. Not Java 11.
Information on downloading Java 11 seems to be scarce. Oracle's page of certified configurations includes MacOS 11, but I can't find anywhere obvious where Java 11 can be readily downloaded.
A big part of the problem seems to be the terminology used. If I run java -version, I get:
java version "1.8.0_331"
Java(TM) SE Runtime Environment (build 1.8.0_331-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.331-b09, mixed mode)
Okay, I have build 1.8 of the Java Runtime Environment, aka the JRE if you are a Java enthusiast. That is apparently what is triggering the warning in Firebase Tools.
There is also a Java product out there called 'Java SE 11'. The product itself is ambiguous, but the checksums all say 'SDK'. (A Software Development Kit: a thing that enables developers to develop Java programs. The name doesn't imply a Runtime Environment: a thing that enables Java to run on an operating system.) There is an article out there which claims that, if you install Java SE 11 and run java -version, it will spit out java version "11.0.7". That will probably satisfy Firebase Tools.
But Oracle's release notes say: 'In Windows and macOS, installing the JDK in previous releases optionally installed a JRE. In JDK 11, this is no longer an option.' No longer an option... as in now you implicitly get JRE 11 with SDK 11? Or as in the SDK and JRE are now fully divorced, and the JRE must be ferreted out of its hiding like a wild beast?
UPDATE 6/5/22: Java's checksums page now says 'JDK', and I guess that is better than 'SDK' because it implies 'Java Development Kit', which this Wikipedia article claims to include both a JRE ('java') and SDK (most of the other files).
To install Java SE:
Go here.
Scroll down to find your product. I chose Java SE 11. (Oracle will probably list later versions as they are made available.)
Choose your operating system. I chose MacOS.
Choose your file set. I chose the DMG installer.
Download your chosen file set.
5. Do whatever is required by your platform to install Java SE using the downloaded file set from #5.
After installing Java SE 11, java -version now says "11.0.14" and Firebase Tools is now satisfied. My best guess is that JRE 11 was implicitly downloaded, and that developers need to start ignoring the main Download page used by everyone else. (Why didn't the main Download page recommend Java 11 from the start?) Hopefully someone will see this question and clarify whether in the future, the 'Java SE' product implicitly includes both the JRE and SDK, and that the numbering system will always encompass both. In other words, hopefully when someone says we need 'Java 11', it means that we need to download SE 11, containing JRE 11 and SDK 11.
This link has a JDK installer that solved my problem today. I needed to close and reopen all my VScode windows to get it to work.
https://www.oracle.com/java/technologies/downloads/
With latest versions this error appears: !! emulators: firebase-tools no longer supports Java version before 11. Please upgrade to Java version 11 or above to continue using the emulators.
You can download Java SE Development Kit 18 from this link. Just choose your operating system, download and install the file. When installation is complete you need to restart you terminal and voila it works now:
firebase emulators:start
But Oracle's release notes say: 'In Windows and macOS, installing the JDK in previous releases optionally installed a JRE. In JDK 11, this is no longer an option.' No longer an option... as in now you implicitly get JRE 11 with SDK 11? Or as in the SDK and JRE are now fully divorced, and the JRE must be ferreted out of its hiding like a wild beast?
With Java 8 and earlier, the end user of a Java application was responsible for providing a Java runtime environment for the application to run on. This is what the JRE was for. The user would have to install this runtime environment on their system in order to run Java applications. This is also why the https://www.java.com/en/download/ page recommends Java 8 (the JRE), which was the last version of Java where an end-user should concern themselves with installing a runtime environment.
Starting from Java 9, it is now the application distrubutor's responsibility to provide a Java runtime that can run the application. So, there are no more JREs.
The application developer should use jlink, which is a tool included in the SDK, to create a 'runtime image' (essentially a bespoke JRE to run a single application), that can be used to run the application, and bundle that runtime image with the application. The jpackage tool can also be used to create application images (including a runtime image), as well as installers.
I am looking to Download IBM Java JDK 8 for windows 10 OS or Windows Server 2012 R2 OS.
Does IBM provide JAVA JDK 8 software so that we can install and test it?
Or
Does IBM provide only AIX and Linux supported IBM Java 8 installation software?
I referred the IBM page, it contains only AIX, Linux version of Java installation software.
https://developer.ibm.com/javasdk/downloads/sdk8/
IBM says
The SDK is available only as part of an IBM product.
Which means follow the links at the end of the page you linked from your question, download Eclipse, use the JDK that will be installed with Eclispe. Then, if you don't want Eclipse, delete it and keep the SDK.
OR
You can use OpenJ9, which is the JDK used by the IBM SDK.
As an aside I have to wonder why you need the IBM JDK in particular.
I run a new Mac with OS Sierra Version 10.12.1, installed Java 8.111 which is recognised successfully by the test program and eventually installed eclipse neon 4.2. But when I try to start it, I get the message "To open “Eclipse” you need to install the legacy Java SE 6 runtime". There is a link to the site "https://support.apple.com/kb/DL1572?locale=en_US" dated from July 22 2015 and telling to install java for OSX 2015-01 for the OS 10.7 to 10.11. There is also a link with explanation starting with a warning, that this information is about an older unsupported Java version, Download the latest version of Java for OS X directly from Oracle. There is some information hard to understand ( why should Java 6 be installed, since it is deprecated and even dangerous?)
Since I didn't find any other mean and thought the page was maybe not updated I installed the tool, but the launch eclipse still stops unexpectedly with an error report.
Thanks for ideas to overcome this
Like #greg-449 pointed out, install Java 8 JDK (not JRE) to get Eclipse Neon running on macOS Sierra.
Do not install Java 6. I tried that, and got an error message saying Java 8 is needed.
I have a clean install of El Capitan. I have PHPStorm installed on my Macbook Air. When I try to run the application, I get an error that says PHP storm can't be opened because it requires legacy Java SE 6. I've attached an image of the error below.
I had the same problem when I installed Yosemite but I was able to install the legacy java fix (Java for OS X 2014-001) from Apple's website. When I try installing that same java fix I get the following Error:
Java for OS X can't be installed on this disk. A newer version of this package is already installed
Any thoughts and help will be greatly appreciated!
Thanks
Download Java 6 for El Capitan:
Java for OS X 2015-001 Beta
https://support.apple.com/kb/DL1824
I've used Homebrew to install JDK 1.6.0_65:
brew tap homebrew/cask-versions
brew cask install java6
If you have a problem with Java version on OsX Yosemite or El Capitain, you should download bundled Webstorm (or any other IDE from Jetbrains). It's working, I've tried it by myself.
https://www.jetbrains.com/webstorm/download/
And yes, this is not a programming related question, but it's an IDE for programming and when you come to work at morning and you can't code — that's problem — and you don't care if it's related ;)
i changed version to 1.8 here in below instructions and PhpStorm is now working for me.
At the moment all our products require Apple JDK 1.6 to be installed in order to run on Mac. JDK 1.7 from Oracle is not officially supported yet and has known problems that stop us from using it by default. Oracle JDK 1.7.0_40 has added support for Retina and works much better than previous versions on Mac. You are welcome to give it a try in case you have any problems with Apple JDK.
To force running under JDK 1.7 edit /Applications/.app/Contents/Info.plist file, change JVMVersion from 1.6* to 1.7* :
JVMVersion
1.7*
Open Terminal.app and write sudo nvram boot-args="rootless=0" + return
Reboot
Install Java from https://support.apple.com/kb/dl1572?locale=en_US
This will install Java 6, 7 and 8. Enjoy!
I was working in a Java 1.6 project in Windows, and now I have to work from my laptop, that is a Macbook Pro (Intel Core 2 Duo) with a MacOsX Leopard 10.5.8 installed.
In the same laptop I've worked in the past with Java 1.5 with any problems, but now I can't work with 1.6, and I don't know what I'm doing wrong.
When in a terminal I write: java -version I get java version "1.6.0_26"
But when I'm trying to install last version of Netbeans (7.0.1) I get the message:
It's not possibe to install NetBeans 7.0.1 in this volume. This
software can be installed and work only with Java 6
Then I tried to work with Eclipse. I've download last version of the IDE, and open the project. I get some compile errors (the parts of Java 1.6).
I went to Preferences -> Java -> Compiler->Compiler compliance level from 1.5 to 1.6
Then I get a message that says:
When selecting 1.6 compliance, make sure to have a compatible JRE
installed and activated (currently 1.5) Configure
But when I try to change to 1.6
The selected JRE does not support the current compiler compliance
level of 1.6
What I have to do to work with Java 1.6?
EDIT:
I've noticed that at
/System/Library/Frameworks/JavaVM.framework/Versions/
1.6 seems not to be installed
On OS X Leopard (10.5) the JDK 1.6 can only be used on 64bit-hardware (also in the Apple FAQ). If you are on a 32bit-hardware, you will not be able to run Java 1.6.
If you are on 64bit hardware, you can install it via SoftwareUpdate or via the Developer Tools. To select the running version of Java you can use the Java Preferences.
Here you will find a chart which (Apple)-JDK is running under which OS X version.
There is an "unofficial" port I have not tried: The project SoyLatte brings JDK 1.6 to OS X 10.4. and later - perhaps you can have a try with this.