Start a new topic

Java SE Development Kit 8 Downloads. Thank you for downloading this release of the Java™ Platform, Standard Edition Development Kit (JDK™). The JDK is a development environment for building applications, applets, and components using the Java programming language.

How to install Java on macOS 10.14 Mojave?

alwayslockyourbike

I installed macOS 10.14 Mojave on my MacBook.


Then I checked if Java 10 was still up to date. The newest version suggested should be 10.4 (if I recall correctly). I installed the update and afterwards I was asked if I wanted to remove the older version, which I acknowledged.


Then, no update was installed.


I downloaded Java 11 from:


https://www.oracle.com/technetwork/java/javase/downloads/jdk11-downloads-5066655.html


When I click on the downloaded file jdk-11.0.1_osx-x64_bin.dmg, a setup routine is executed. However, no Java 11 is installed.


So, big question: how do I get the latest version of Java on macOS 10.14 Mojave?

Macos
18 CommentsSorted by Oldest First

alwayslockyourbike

I installed jre-10.0.2_osx-x64_bin.dmg from: https://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase10-4425482.html


Download

Java 10.0.2 is installed. CafeTran Espresso 2019 works again.


I guess that I'll just have to ignore this message?



alwayslockyourbike

alwayslockyourbike

What wil happen on November 16? Will Java 10 stop working?



tre

tre

As far as I can see, Version 8 Update 191 is the recommended version. Its release date is the 16th of octobre 2018. Anyway, certain click functions do not work anymore (clicking on filter, on TM hits etc.). This limits the functionality of CT in a decisive manner.

alwayslockyourbike

This is a crazy story: we were on Java 10, cannot install 11 and have to roll back to 8? Natural graphics introduces terrain texture shader for mac.

tre

This seems so. Some time ago I commented here that Mac will give up Java support, and Oracle does not seem to care about that. The only way would be to have a program pack with JRE included, to make sure all users have a consistent program. OmegaT offers this, and many other Java apps do.

alwayslockyourbike

This is 'funny' too:


From the command line, I get version 11 reported:



From the applet in the System Preferences I get 10.0.2 reported:



alwayslockyourbike

Looks like 11 had been installed after all (I based my assumption that installation went wrong on the missing 11 applet in the Preferences). However, at that time, CafeTran Espresso 2019 didn't run on 11. I had to install 10 again, which currently is being used:



alwayslockyourbike

>Oracle does not seem to care about that. The only way would be to have a program pack with JRE included

It seems werid to end Minecraft like this cause they have said it could be the finally update. Minecraft mod pack 1.3 1 mac full version. I dont like what Mojang is doing, it makes no sense.


Another approach would be to migrate to JavaScript for Automation (JXA): no extra software needed, since it is fully supported by macOS and Windows (don't know about Linux).


However, this isn't going to happen.


CafeTran Espresso 2019 is very good and I don't bother about the extra layer that is needed for Java .. as long as everything works well. I mean: as long as Java is updated easily or even automatically and no confusion of an average computer user is caused.

alwayslockyourbike

Just received this answer: How to install Java 11 on macOS 10.14 Mojave?Are you assuming that because there is not PrefPane, it isn't installed?Open Terminal and type:java -versionIt will list what is installed.The preference pane was for the Java Applet Plugin, not for the JDK. Since there is no Internet Plug-in with Java 11, there is no control panel / So the problem was that 11 wasn’t supported by CT.

tre

I remember Igor saying that we should not install the JDK. So shall we use JDK packages now?


The other thing is that CT works with Mojave and Java 8 (the one you usually get), but some click features do not work, so this should be noted. The solution section about what Java to choose should be updated.


A Dutch parachutist has sent me today the Java 10 version mentioned above. At Oracle,com you only get it after registration (I did this, but the confirmation email may take some hours to arrive).

tre

> So the problem was that 11 wasn’t supported by CT.


Eh ..

  1. that 11 wasn’t supported by CT (is it already?)?
  2. that 11 isn’t supported by CT?
  3. that 11 won’t be supported by CT?

alwayslockyourbike

Of course it'll be supported, after tomorrow's coffee.

Login to post a comment

How to compile JDK 8 with the latest Xcode on macOS Mojave, High Sierra or even Catalina beta

Currently (September 2019), openjdk jdk8u can only be compiled with XCode 4, which won't run on the latest macOS.This repo contains patches and information for setting up an environment to compile a JDK using the very latest tools.

By default, build8.sh will build a JDK without Shenandoah GC or JavaFX. Edit the script to turn on these if you need them, or set environment variables (as seen at the top of the script).

A version of this patch has been submitted to the jdk8u-dev mailing list.

Quick start:

The easiest way to get a working JDK8u is:

Caveats:

  • This patch only works with XCode 9, 10 or 11 beta.

  • This patch will produce a JDK that runs on macOS 10.9 and above; the original code runs on macOS 10.7 and above.

  • The resultant JDK has not been run through TCK, but can be used to build Graal.

  • If you see a crash in a destructor, and the destructor is not virtual, try making the destructor virtual and see if it still crashes. If the issue is fixed, please email me.

The quick way

Clone this repo and run build8. You may edit this script to build jdk8u-dev with Shenandoah GC and/or JavaFX.

Install Prerequisites

Some of these are also required for building JDK 11, so your efforts won't be wasted here. The build script will download and install these (except for Xcode; that one's on you) in a local location, so no action is required if you use these scripts

Install XCode 9, 10 or 11, autoconf, freetype and mercurial.Install a bootstrap JDK; either JDK 7 or JDK 8.
If you have a system JDK 8 installed, the build should find it, but it should be ignored if you use build8.sh.

download the JDK and all subrepos

install the patches

configure the JDK

Optionally, add --with-debug-level=slowdebug to debug the JDKIf you're using the XCode 11 beta, disable precompiled headers: --disable-precompiled-headers. There seems to be an issue with honouring include file paths.

build the JDK

run!

TODO

  • Make the patch work with libstdc++
  • Make the patch work with a 'patched' XCode 10 containing libstdc++. (i.e. copy the libstdc++ libraries and header files from an XCode 9 installation)