Skip to content

AWS Bluage - jdk version mismatch during Ant build

0

I am getting an error while trying to build a package for carddemo refactoring.

Implement Integrate refactorings Configure Ant in Eclipse Run package.xml Ant script to build refactoring archive

When I tried to build the package using Ant 1, gives me the following error, so the build failed. "Specified VM install not found: type Standard VM, name jdk-11.0.15.1"

My appstream came with the following jdk version: C:\Work>java -version openjdk version "17.0.10" 2024-01-16 LTS OpenJDK Runtime Environment Corretto-17.0.10.7.1 (build 17.0.10+7-LTS) OpenJDK 64-Bit Server VM Corretto-17.0.10.7.1 (build 17.0.10+7-LTS, mixed mode, sharing)

The jdk version was changed on 10/1/2025. The Ant build is looking for version 11.0.15.1, but the version available in Appstream is 17.0.10.

Please let me know how to fix this issue.

1 Answer
0

The error you're encountering is due to a version mismatch between the JDK specified in your Ant build configuration and the JDK available in your AppStream environment.

To resolve this issue, you need to update your Ant build configuration in Eclipse to use the available JDK version (17.0.10) instead of looking for JDK 11.0.15.1. Here's how to fix it:

  1. In Eclipse, go to Window > Preferences > Ant > Runtime
  2. Check the Ant Home directory to ensure it's pointing to the correct Ant installation
  3. Go to the "JRE" tab in the same Ant Runtime preferences
  4. Update the JRE/JDK configuration to use the available Corretto 17.0.10 JDK instead of JDK 11.0.15.1
  5. Apply the changes and close the preferences dialog
  6. Clean and rebuild your project

Alternatively, you can also modify your Ant build script (package.xml) to explicitly use the available JDK version instead of relying on the default configuration.

This issue is common in the AWS Blu Age L3 Workshop environment when there's a mismatch between the JDK version specified in the build configuration and the one available in the AppStream environment. It's important to ensure that all components (JDK version, Blu Age version, etc.) are aligned properly for the workshop exercises to work correctly.
Sources
AWS Blu Age L3 Workshop - Error on Automation - Execute | AWS re:Post
AWS Blu Age- Dependency problems when importing projects_Execution Backend | AWS re:Post

answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.