JDK Installer produces 403 exit code

Issue

Trying to use JDK installer but the build produces an exit code 403
Installing JDK jdk-8u202-oth-JPR
Downloading JDK from https://download.oracle.com/otn/java/jdk/8u202-b08/1961070e4c9b4e26a04e7f5a083f551e/jdk-8u202-linux-x64.tar.gz
ERROR: Step 'E-mail Notification' aborted due to exception:
java.io.IOException: Failed to request https://edelivery.oracle.com/akam/otn/java/jdk/8u202-b08/961070e4c9b4e26a04e7f5a083f551e/jdk-8u202-linux-x64.tar.gz exit code=403
	at hudson.tools.JDKInstaller.locate(JDKInstaller.java:492)
	at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:150)
	at hudson.tools.InstallTranslator.getToolHome(InstallerTranslator.java:69)
	at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:109)
	at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206)
	at hudson.model.JDK.forNode(JDK.java:148)

Environment

Resolution

The JDK installer is downloaded from Oracle’s website and the exit code 403 (Permission denied)
represents the sites response to your request to download the JDK.

This can happen if you’ve incorrectly set (or not at all) a bad Oracle credential.

Use the URL https://${JENKINS_URL}/descriptorByName/hudson.tools.JDKInstaller/enterCredential
to set your Oracle user login credential and try your build again.

Have more questions?

0 Comments

Please sign in to leave a comment.