Reputation: 5
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:
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
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