Spring boot execute Error (finished with non-zero exit value 1)

leech gamer
Jul 4, 2021

--

> Problem

Execution failed for task : 'Application.main()'.
Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1

> Solution1. Configure project structure

Go to File> Project Structure

  • navigate to the Project tab.
  • If 1.8 is an option, choose 1.8.

> Solution2. Set Gradle Project

Go to IntelliJ IDEA > Preference

  • navigate to the Build, Execution, Development > Build Tools > Gradle
  • setBuild and run using tab and Run tests using
  • Select IntelliJ IDEAD from the Build and run Using and Run tests Using

> Solution3. Kill process and Retry

To see Java process, do this in your terminal

ps -ef | grep java

kill process using pid

kill -9 pid

and Try again

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

leech gamer
leech gamer

Responses (1)

Write a response