marcin7848
marcin7848

Reputation: 5

Mvn clean install error

I wrote some code with Sping boot. Everything is working. I wanted to generate fat jar file with using Maven. I entered to my project and wroted this to cmd line: "mcn clean install". This should generate this jar file, but It showed me this error:

error

My friend, on linux tried do the same and there is not erroros. Jar file was generated. So what's wrong?

Upvotes: 0

Views: 1276

Answers (1)

Paul Hicks
Paul Hicks

Reputation: 14009

It looks like you've set your JAVA_HOME variable to a JRE directory. Change it to a JDK so that maven can find javac and compile your code.

Upvotes: 2

Related Questions