zoukankan      html  css  js  c++  java
  • tomcat Error:NB:JAVA_HOME should point to a JDK not a JRE 解决方法

    环境:win7

    tomcata7.0解压版本

    执行:service.bat install

    报错:JAVA_HOME should point to a JDK not a JRE

    网上找了几种解决方案,其中一种是成功的:

    在setclasspath.bat的头部定义了JAVA_HOME和JRE_HOME的值,那么在这里手动设置JAVA_HOME变量

    rem ---------------------------------------------------------------------------
    rem Set CLASSPATH and Java options
    rem
    rem $Id: setclasspath.bat 505241 2007-02-09 10:22:58Z jfclere $
    rem ---------------------------------------------------------------------------

    set JAVA_HOME=C:Program FilesJavajdk1.5.0_05
    set JRE_HOME=C:Program FilesJavajre1.5.0_05

    rem Make sure prerequisite environment variables are set
    if not "%JAVA_HOME%" == "" goto gotJdkHome
    if not "%JRE_HOME%" == "" goto gotJreHome
    echo Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
    echo At least one of these environment variable is needed to run this program
    goto exit

  • 相关阅读:
    day04
    day02
    day01
    if语句用户交互字符串
    python安装和pycharm安装教程
    day1预习
    博客园的使用
    python day 3
    从cbv到fbv:用函数写视图与用类写视图的区别(drf与restful)
    resful规范: 进行数据交换时的代码潜规则
  • 原文地址:https://www.cnblogs.com/wdkshy/p/7090564.html
Copyright © 2011-2022 走看看