OpenLiberty / OpenLiberty/liberty-tools-eclipse
Invalid Java chosen for Execution Environment in JRE config tab
Open
@awisniew90 is already working on this.
Since Jun 15, 2023.
bug
- Dominant language
- Java
- Stars
- 16
- Forks
- 20
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 16
Description
Liberty Tools choses a default JRE to use by selecting the best option in the "Execution Environment" section of the JRE tab in the LT configuration window. It's possible that this will result in a non JDK being chosen which does not work with dev mode.
This can result in the following error when running "Start" or "Start in Container"
[INFO] --- liberty:3.7.1:devc (default-cli) @ guide-getting-started ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.836 s
[INFO] Finished at: 2023-06-15T13:53:52-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.openliberty.tools:liberty-maven-plugin:3.7.1:devc (default-cli) on project guide-getting-started: Execution default-cli of goal io.openliberty.tools:liberty-maven-plugin:3.7.1:devc failed: Plugin io.openliberty.tools:liberty-maven-plugin:3.7.1 or one of its dependencies could not be resolved: The following artifacts could not be resolved: com.sun:tools:jar:1.8.0: Could not find artifact com.sun:tools:jar:1.8.0 at specified path /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/../lib/tools.jar -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.