Maven error :Perhaps you are running on a JRE rather than a JDK?

后端 未结 20 2346
小鲜肉
小鲜肉 2020-11-30 21:32

I\'ve never worked with Maven before and I am following the instructions here. When I run the command

mvn integration-test -Pamp-to-war

It

20条回答
  •  心在旅途
    2020-11-30 21:50

    Apparently, it requires tools.jar file inside the lib folder of my $JAVA_HOME. I did not have the lib folder, so I reinstalled my jdk using command

    apt-get install openjdk-7-jdk openjdk-7-doc openjdk-7-jre-lib
    

    Also, this link may help some people.

提交回复
热议问题