Maven pointing to JRE instead of jdk

前端 未结 7 1841
南笙
南笙 2020-12-10 11:46

I\'ve been working with a co-worker on a problem I have been experiencing on a new project I just joined. Long story short, maven isn\'t building my .war file correctly. W

相关标签:
7条回答
  • 2020-12-10 12:40

    Once you have the JDK installation path:

    1. Right-click the My Computer icon on your desktop and select Properties.
    2. Click the Advanced tab.
    3. Click the Environment Variables button.
    4. Under System Variables, click New.
    5. Enter the variable name as JAVA_HOME.
    6. Enter the variable value (one of the paths mentioned above) as the installation path for the Java Development Kit.
    7. Click OK.
    8. Click Apply Changes.

    You might need to restart windows.

    This worked for me.

    0 讨论(0)
提交回复
热议问题