4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

SpringbootでbootRunを実行したときにエラーが出た[Gradle]

Posted at

GradleでSpring bootアプリケーションを実装しようとしたときに躓いたエラーがあったので、忘備録として書いておく。

プロジェクトを作成後、画像にあるbootRunを実行したらエラーが発生。
(IDEはIntelliJ IDEA)

image.png

Execution failed for task ':bootRun'.
> Process 'command 'C:\Users\user.name\.jdks\openjdk-16.0.2\bin\java.exe'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.

 原因

bootRun実行時に別のJavaファイルが実行中だったためエラーが発生したとのこと。

対策

Windowsの場合、タスクマネージャーを開いて実行中のJavaファイルを停止させてから再度bootRunを実行する。(この時はJava.exeというファイルが実行中だったのでこちらを停止させた。)

とりあえず、忘備録として書いておきました。

4
2
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
4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?