The Wayback Machine - https://web.archive.org/web/20240907072257/https://github.com/processing/processing/issues/5827
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed: JDK 8u202 required #5827

Closed
kayserifserif opened this issue Mar 28, 2019 · 6 comments
Closed

Build failed: JDK 8u202 required #5827

kayserifserif opened this issue Mar 28, 2019 · 6 comments

Comments

@kayserifserif
Copy link

Description

First time contributor! Tried to build source code on my local machine according to the instructions but failed when running ant run.

Expected Behavior

Expected source code to build.

Current Behavior

Getting this error when trying to build.

BUILD FAILED
/Users/kathey/Documents/code/processing/build/build.xml:308: The following error occurred while executing this line:
/Users/kathey/Documents/code/processing/build/build.xml:518: JDK 8u202 required.
To build on OS X, you must install Oracle's JDK 8u202 from
http://www.oracle.com/technetwork/java/javase/downloads
Or... type 'ant download-jdk-macosx' to download it to your Desktop.
Note that only 8u202 (not a later or earlier version) will work. 
And it must be the JDK, not the JRE. And do not try to defy me again.

Steps to Reproduce

  1. Clone source repository.
  2. Navigate to Processing directory.
  3. Type:
cd build
ant run

Your Environment

I am on macOS 10.14.3. I successfully downloaded JDK from here. When typing java -version into the command line, I get:

java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)

Possible Causes / Solutions

I'm not sure if JDK 8 downloaded successfully, or if there are multiple versions of Java installed and the system isn't finding JDK 8. How can I fix this issue?

@kayserifserif
Copy link
Author

Forgot to add that I also tried to run ant download-jdk-macosx as the message suggests, which gives me:

download-jdk-macosx:
[downloader] Redirecting to https://edelivery.oracle.com/otn-pub/java/jdk/8u202-b08/1961070e4c9b4e26a04e7f5a083f551e/jdk-8u202-macosx-x64.dmg
[downloader] Redirecting to http://download.oracle.com/otn-pub/java/jdk/8u202-b08/1961070e4c9b4e26a04e7f5a083f551e/jdk-8u202-macosx-x64.dmg?AuthParam=1553809146_039d7908a3e7b8a1fc4fabe7d7a175e1
[downloader] Redirecting to https://download.oracle.com/otn-pub/java/jdk/8u202-b08/1961070e4c9b4e26a04e7f5a083f551e/jdk-8u202-macosx-x64.dmg?AuthParam=1553809146_039d7908a3e7b8a1fc4fabe7d7a175e1
[downloader] Downloading /Users/kathey/Desktop/jdk-8u202.dmg from https://download.oracle.com/otn-pub/java/jdk/8u202-b08/1961070e4c9b4e26a04e7f5a083f551e/jdk-8u202-macosx-x64.dmg?AuthParam=1553809146_039d7908a3e7b8a1fc4fabe7d7a175e1

BUILD SUCCESSFUL

However, running ant run again after this still gives me the same error about JDK 8u202.

@kevin51jiang
Copy link

From what I can see, you installed java version 8u201, but the compiler wants 8u202.

Make sure you're getting the version installed (scroll down on that same webpage) and try it again.

@benfry
Copy link
Contributor

benfry commented Apr 1, 2019

After downloading jdk-8u202.dmg, you have to install it (in case you didn't already).

And having done that, open a new Terminal window, which will hopefully pick up 202 as the most recent (and correct) version to use. The shell won't pick up the new installation until a new window is opened.

To check, type java -version in a new window. Until it's saying 8u202, the build won't work properly.

@kayserifserif
Copy link
Author

@kevin51jiang You're right! I must have downloaded 8u201 without seeing 8u202 lower down on the page. @benfry I checked again and it works now! Thanks all for the help!

@benfry
Copy link
Contributor

benfry commented Jun 11, 2019

For anyone finding this issue because of problems with the build script… Oracle now requires a user account and login for download Java releases, which breaks the build.

You'll need to manually install Java 8u202 from this page in order to build Processing. On macOS, download the JDK. On Windows and Linux, only the JRE is required. But it must be version 8u202.

@processing processing locked as resolved and limited conversation to collaborators Jun 11, 2019
@benfry
Copy link
Contributor

benfry commented Sep 21, 2020

Now fixed as of 89a0808

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants