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

Backport older Java versions

Open aep-sunlife opened this issue 11 months ago • 2 comments

Description:

Support Java 7-.

Justification:

To benefit from GitHub Actions and convenient setup-java workflows, concurrent with efforts to upgrade Java in legacy projects, e.g. scientific applications.

aep-sunlife avatar Jan 15 '25 20:01 aep-sunlife

Hello @aep-sunlife, Thank you for this feature request. We will investigate it and get back to you as soon as we have some feedback.

priyagupta108 avatar Jan 16 '25 09:01 priyagupta108

Hi @aep-sunlife , have you checked which distributor is still offering java 7 releases?

have you checked already if the following might work?

steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
  with:
    distribution: 'zulu'
    java-version: '7'
- run: java HelloWorldApp.java

In case that is not working, please consult Azul.com if they are willing to submit a PR. Regards Christian

skateball avatar Feb 11 '25 21:02 skateball

Hi @aep-sunlife,

Thank you for your thoughtful feature request and for highlighting the needs of teams working with legacy Java environments. After careful consideration, we have determined that the vast majority of major Java distributions no longer support Java 7, with only a select few vendors offering limited, paid support. This presents significant challenges in terms of sourcing secure and reliable binaries, as well as maintaining compatibility across the modern GitHub Actions runner environments. Furthermore, the technical complexities and ongoing maintenance burden required to safely enable and validate support for such an outdated platform are substantial.

If you are facing a specific issue related to setup-java, please feel free to share your relevant workflow files, error logs, and any additional details. We would be happy to look into particular problems you are encountering and offer guidance where possible, within the limits of currently supported Java versions. Also, we encourage teams to consider upgrading to a more recent, widely supported Java version where possible.

lmvysakh avatar Jul 15 '25 09:07 lmvysakh

Hello @aep-sunlife,

Just a friendly reminder to take a look at this issue when you have a moment. Your input would be greatly appreciated. Thank you!

lmvysakh avatar Jul 31 '25 11:07 lmvysakh

Hi @aep-sunlife,

Just a gentle reminder! Could you please let us know if there are any updates from your side regarding this issue?

lmvysakh avatar Aug 07 '25 12:08 lmvysakh

Hi @aep-sunlife,

Could you please let us know if there are any updates from your side regarding this issue?

lmvysakh avatar Aug 20 '25 14:08 lmvysakh

Hello @aep-sunlife,

Due to inactivity, We are going to close this issue for now. Please feel free to reopen this issue or create a new one if necessary. Thank you!

lmvysakh avatar Aug 28 '25 06:08 lmvysakh