解决问题:Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
错因:
没有定义JAVA_HOME 也没有jre 环境变量配置
也就是说,我们没有配置好jdk的环境变量
在双击启动apache-tomcat-8.5.31\bin\startup.bat 时,出现 Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run this program 错误!
解决:
需要在系统环境变量里,重新检查或配置好jdk环境!
只需配置以下四个环境变量即可保证jdk配置完成,并且解决tomcat启动时找不到jdk环境的问题!
注意:CLASS_PATH 中有个小点!!!
CLASS_PATH .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar; JAVA_HOME D:\Eclipse\JDK #jdk安装目录CATALINA_BASE E:\jarTools\apache-tomcat-8.5.31 #tomcat安装目录CATALINA_HOME E:\jarTools\apache-tomcat-8.5.31 #tomcat安装目录
最后可以打开cmd测试以下java,java -version ,如果出现下图,代表配置成功,否则就看看你哪里打错了,或者路径问题啦!
解决问题:Neither the JAVA_HOME nor the JRE_HOME environment variable is defined相关推荐
- 解决Neither the JAVA_HOME nor the JRE_HOME environment variable is defined问题
问题描述: 在cmd窗口使用 startup 命令启动Tomcat时,出现 Neither the JAVA_HOME nor the JRE_HOME environment variable is ...
- pssh批量执行启动tomcat报错:Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
文章目录 问题描述 问题分析 解决问题 问题描述 我这边一共4台主机,4台主机tomca路径一致.我想想通过pssh命令工具直接将4台主机的tomcat启动,命令如下: [root@hadoop-ma ...
- 解决Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these...问题
文章目录 1. 复现问题 2. 分析问题 3. 解决问题 4. 总结问题 1. 复现问题 今天把前端项目部署到本地tomcat下,在双击startup.bat时的弹框一闪而过,但不知道问题出现在哪里. ...
- Tomcat服务器环境配置--查看bat文件(解决Neither the JAVA_HOME nor the JRE_HOME environment variable is defined问题)
1. Tomcat环境配置 环境变量配置,博主以为无非就是在系统变量[path]中加上Tomcat目录的bin文件夹路径呗,然后上网一搜,果然就是配置Tomcat的bin目录和lib目录,于是在系统变 ...
- linux安装tomcat Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
这两天我们的开发机重启了好几次,发现每次重启后我的tomcat总是没有启动. 检查java路径,配置正确,后来拿普通账号启动tomcat时报如下的错: 1 Neither the JAVA_HOME ...
- Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
Centos7.5 启动tomcat报错 报错: Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At ...
- jenkins 远程启动tomcat报错:Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
异常现象: jenkins 远程启动tomcat报错:Neither the JAVA_HOME nor the JRE_HOME environment variable is defined 解决 ...
- Neither the JAVA_HOME nor the JRE_HOME environment variable is defined 完美解决(tomcat error)
error: Linux下启动和关闭tomcat报错,如下图所示: Neither the JAVA_HOME nor the JRE_HOME environment variable is def ...
- 解决JAVA_HOME nor the JRE_HOME environment variable is defined
从别的地方复制了一个tomcat, 启动后一闪即退, 使用记事本打开 startup.bat文件, 在文件底部修改, 并追加如下内容 call "%EXECUTABLE%" run ...
最新文章
- 日常笔记-css\html篇
- Python编程基础:第十五节 二维列表2D Lists
- JVM学习笔记之-执行引擎(Execution Engine)
- Redis 购物车 - 删除商品与更新购买数量
- 在fedora下面安装ftp服务器
- PyCharm常用快捷键和设置
- Unity内存管理你应该知道的底层原理
- c语言程序设计上机考试题,C语言程序设计上机考试题目汇编..doc
- [Swift]LeetCode188. 买卖股票的最佳时机 IV | Best Time to Buy and Sell Stock IV
- 好文章推荐 数据库mysql
- Window 浏览器窗口对象
- 我们——程序员应该关注,功能?设计?
- IT项目经理每天每周都在干什么?附简要周报模板
- mysql数据库管理与开发pdf_深入浅出mysql数据库开发、优化与管理维护.pdf
- 旋转矩阵之到底顺时针还是逆时针
- (附源码)计算机毕业设计ssm高校第二课堂管理系统
- 【论文笔记】EagerMOT:3D Multi-Object Tracking via Sensor Fusion
- linux开机动画制作教程,Android开机画面制作(Bootloader阶段)
- win10下禁止自动更新,Window Update禁用无效后续方法
- 最新Java开发进阶!我的华为面试经历分享,请查收
热门文章
- Windows6.1-KB2731771-x64.msu 提示此更新不适用于您的计算机 ie10 ie11 安装失败
- php怎么读取excel里的数据类型,php读取excel表格数据-对PHPExcel一些简单的理解 及怎么读取单元格数据...
- php跨域header处理
- arm-linux下usb驱动的结构和相关函数
- 中创易票通打印票据支票 非凡软件
- mysql数据库出现幻读_MySQL中幻读和幻读存在的问题
- 管理MAC地址转发表
- ssh 私钥公钥生成
- 《人人都是产品经理》——摘录之产品经理的角色认知
- 数说亚洲杯小组赛:冷门四宗“最”知多少?