linux下tomcat无法启动报错
来源:互联网 发布:阿里云服务器安全配置 编辑:程序博客网 时间:2024/05/20 23:37
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或者jre路径。
解决办法:在setclasspath.bat的开头声明环境变量,打开tomcat的bin目录下面的setclasspath.sh,添加红色部分,路径修改为自己机器jdk和jre路径即可。
vim setclasspath.sh
#!/bin/sh
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# -----------------------------------------------------------------------------
# Set CLASSPATH and Java options
#
# $Id: setclasspath.sh 795037 2009-07-17 10:52:16Z markt $
# -----------------------------------------------------------------------------
*************************************************加上下面的配置信息
export JAVA_HOME=/usr/java/jdk1.8.0_31
export JRE_HOME=/usr/java/jdk1.8.0_31/jre
这个根据你系统jdk的实际的安装路径配置
- linux下tomcat无法启动报错
- Linux下Tomcat 启动报错touch
- linux下tomcat启动报错
- linux下tomcat无法启动
- linux下tomcat无法启动
- linux下tomcat无法启动
- Linux下Tomcat无法启动
- linux下tomcat无法启动
- linux下tomcat无法启动
- 在Linux下,oracle11gr2 netca 无法启动 报错
- linux启动tomcat报错
- 一个在linux下启动Tomcat报错的解决方案
- linux下启动tomcat报错:The BASEDIR environment...
- Linux下tomcat启动报错:port already in use
- Linux下Tomcat启动报错 Error listenerStart
- linux下启动tomcat找不到环境变量报错
- Linux下Tomcat启动报错 Error listenerStartstartup
- Linux下Tomcat启动报错:port already in use
- PythonTip(6~10)题详解
- Android开发艺术探索<Drawable系列之四StateListDrawable >
- Python练习题
- Unity 游戏框架搭建 (十三) 无需继承的单例的模板
- Ajax获取接口抛出的异常信息
- linux下tomcat无法启动报错
- JAVA MD5
- 仿阿里云悬浮效果
- # 初学SSH
- ubantu上常用解压文件的命令
- intellij-idea使用笔记-(1)
- struts-自己写个框架
- app的启动白屏解决
- mysql-(二)-数据约束