Invalid Java chosen for Execution Environment in JRE config tab

Aperta
#403 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

@awisniew90 ci sta già lavorando.

Dal 15/6/2023.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug

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.
Screenshot 2023-06-15 at 1 56 52 PM

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
Lingua principale
Java
Stelle
16
Fork
20
Merge medio
16h 1m
PR unite (30g)
7

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OpenLiberty/liberty-tools-eclipse

Tutte le issue di OpenLiberty/liberty-tools-eclipse

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.