LoginSignup
0
0

More than 1 year has passed since last update.

IntellijのKotlin実行で失敗するときにみたところ

Posted at

はじめに

この記事を書こうと事前にエラーをメモっておいたのですが、わかりやすいエラーの部分をコピーしておらず微妙なタイトルになりました
もし実行できなくて困った方はこの可能性があるかもしれないので、確認してみてください

問題

Intellijで実行をUIからすると以下のエラーがでました

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  33.558 s
[INFO] Finished at: 2023-02-11T10:29:35+09:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.thoughtworks.gauge.maven:gauge-maven-plugin:1.3.1:execute (default) on project hoge-e2e: Gauge Specs execution failed -> [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:

解決方法

JDKKotlin SDKになっていたのが原因でした

正常に動作するにはopenjdk-19にする必要がありました

外部ライブラリ->Kotlin SDKを右クリック(一番上にあります)->プロジェクト

image.png

SDKopenjdk-19に変更して適応しました

変更後は以下のようになっています

image.png

おわりに

言語仕様を全然理解していないのでこういった小さなことでもかなりの時間躓いてしまいます
はやくなかよくなりたいです

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0