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

后端 未结 20 2344
小鲜肉
小鲜肉 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 22:01

    I faced the issue even though JAVA_HOME was pointing to JDK. It took time to figure out why it was throwing the exception.

    The issue was I set JAVA_HOME as admin user on my window machine. You need to add JAVA_HOME environment variable pointing to right JDK to your user profile environment variable settings.

提交回复
热议问题