Tomcat is not running even though JAVA_HOME path is correct

前端 未结 18 2160
情深已故
情深已故 2020-12-09 16:07

When I am trying to run tomcat using startup.bat I get the following error,

The JAVA_HOME environment variable is not defined correctly
This env         


        
18条回答
  •  粉色の甜心
    2020-12-09 16:49

    Set Environment Variable ([Windows Key]+[Pause Key], switch to "Advanced", click "Environment Variables", in "System Variables" (lower list), click "New" (or "Edit" if you already have it),

    name: JAVA_HOME

    value: C:\PROGRA~1\Java\JDK16~1.0_3

    for C:\Program Files\Java\jdk1.6.0_32

    click "ok",

    go to "path" in "system variables",

    add ; at the end of the line (unless there is already one there),

    add: C:\PROGRA~1\Java\JDK16~1.0_3\bin

    click "ok" through all. -- restart your computer (advisable)

提交回复
热议问题