maven配置过程中出现Unsupported major.minor version

<span style="color: rgb(85, 85, 85); font-family: ΢���ź�; font-size: 14px; line-height: 25px;">Maven3.3.9安装过程中出现Unsupported major.minor version解决方法</span>
</pre><pre name="code" class="plain">C:\Users\c>java -version
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)

C:\Users\c>mvn -v

Error: JAVA_HOME not found in your environment.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.

主要原因是没有在环境变量中设置JAVA_HOME,之前直接在Path 中设置java的环境变量,现在知道设置JAVA_HOME的作用了


你可能感兴趣的:(maven)