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

eclipse commandlet ignores EXTRA_JAVA_VERSION #986

Closed
hohwille opened this issue Nov 17, 2022 · 0 comments · Fixed by #987
Closed

eclipse commandlet ignores EXTRA_JAVA_VERSION #986

hohwille opened this issue Nov 17, 2022 · 0 comments · Fixed by #987
Labels
blocker severe bug that blocks users in their daily work and has to be fixed asap bug Something isn't working eclipse related to Eclipse IDE java related to Java code, the Java Virtual Machine and directly related tooling (OpenJDK, Adoptium) setup related to the setup process of devonfw-ide (setup[.bat] and devon ... setup)

Comments

@hohwille
Copy link
Member

Expected behavior

Via #678 it is possible to configure EXTRA_JAVA_VERSION and install an additional JDK with a different version for IDEs.

Actual behavior

However, eclipse is not executed with this JDK.
I get this error:

Version 1.8.0_262 of the JVM is not suitable for this product. Version 11 or greater is required.

However, in my devon.properties I do have this:

EXTRA_JAVA_VERSION=11.0.13_8

This used to work and IMHO I broke this with #934

Steps to reproduce (bug) / Use Case of feature request (enhancement)

  1. Configure JAVA_VERSION=8u312b07
  2. Configure EXTRA_JAVA_VERSION=11.0.13_8
  3. Configure ECLIPSE_VERSION=2022-09
  4. launch eclipse (devon eclipse).

Related/Dependent Issues

Comments/Hints:

In this line:

if [ -n "${EXTRA_JAVA_VERSION}" ]

The EXTRA_JAVA_VERSION does not seem to be defined yet, as the devon.properties are implicitly loaded here:

source "$(dirname "${0}")"/../commandlet-cli

Affected version:

  • 2022.11.001
@hohwille hohwille added the bug Something isn't working label Nov 17, 2022
@hohwille hohwille added this to the release:2022.11.002 milestone Nov 17, 2022
@hohwille hohwille added blocker severe bug that blocks users in their daily work and has to be fixed asap Team_IDE eclipse related to Eclipse IDE java related to Java code, the Java Virtual Machine and directly related tooling (OpenJDK, Adoptium) setup related to the setup process of devonfw-ide (setup[.bat] and devon ... setup) labels Nov 17, 2022
hohwille added a commit to hohwille/ide that referenced this issue Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker severe bug that blocks users in their daily work and has to be fixed asap bug Something isn't working eclipse related to Eclipse IDE java related to Java code, the Java Virtual Machine and directly related tooling (OpenJDK, Adoptium) setup related to the setup process of devonfw-ide (setup[.bat] and devon ... setup)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant