setup-java icon indicating copy to clipboard operation
setup-java copied to clipboard

Q: Clarify why Java release 11 isn't available.

Open rbygrave opened this issue 3 years ago • 4 comments

As per docs and testing the release version is 17 and up and does not include 11.

I'd just like to clarify why 11 is not available. Are there any plans to make 11 available?

That is, as a library author that has projects targeting Java release 11 I am effectively required to use Java 17 to build and test those projects (or use an alternate setup distribution). This seems less than optimal for those projects that are targeting 11.

Run JAVA=$JAVA_HOME_17_X64/bin/java
  JAVA=$JAVA_HOME_17_X64/bin/java
  DOWNLOAD=$GITHUB_ACTION_PATH/src/Download.java
  if [ ! -z "" ]; then
    $JAVA $DOWNLOAD 
  else
    $JAVA $DOWNLOAD oracle.com 11 latest
  fi
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
Exception in thread "main" java.lang.Error: Could not find URI of JDK[release=11, version=latest, os=linux, arch=x64, type=tar.gz]
	at Download.lambda$main$1(Download.java:72)
	at java.base/java.util.Optional.orElseThrow(Optional.java:403)
	at Download.main(Download.java:72)
	at Download.main(Download.java:37)
Error: Process completed with exit code 1.

rbygrave avatar Mar 15 '22 21:03 rbygrave

I'm guessing this is down to licensing. Would be keen to know for sure but ... closing

rbygrave avatar Mar 22 '22 09:03 rbygrave

re-opening the issue to make sure we document this.

delabassee avatar Mar 22 '22 09:03 delabassee

I think it is caused by here in Oracle JDK, and here in jdk.java.net .

Do you have any plan to add earlier JDK release to them?

YaSuenag avatar Jan 16 '23 11:01 YaSuenag

Do you have any plan to add earlier JDK release to them?

No. This action is about JDK 17 and higher.

sormuras avatar Jan 16 '23 12:01 sormuras