2 xieyucheng719 xieyucheng719 于 2015.06.22 20:39 提问

Linux6 Tomcat7 startup Error

[root@localhost bin]# ./startup.sh
Cannot find /usr/tomcat/tomcar7/bin/setclasspath.sh
This file is needed to run this program

PWD=/usr/tomcat/tomcat7/bin
JAVA_HOME=/usr/jdk/jdk1.8.0_45
GDM_KEYBOARD_LAYOUT=us
GNOME_KEYRING_PID=2330
LANG=en_US.UTF-8
GDM_LANG=en_US.UTF-8
GDMSESSION=gnome
HISTCONTROL=ignoredups
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SHLVL=2
HOME=/root
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
LOGNAME=root
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-j2N6elD8Nb,guid=5fe8975b73e2667a3b98d60c000000e9
CLASSPATH=.:/usr/jdk/jdk1.8.0_45/lib/dt.jar:/usr/jdk/jdk1.8.0_45/lib/tools.jar
LESSOPEN=|/usr/bin/lesspipe.sh %s
WINDOWPATH=1
DISPLAY=:0.0
G_BROKEN_FILENAMES=1
COLORTERM=gnome-terminal
XAUTHORITY=/var/run/gdm/auth-for-root-68Fdws/database
_=/usr/bin/env

#/etc/profile

#set java environment

export JAVA_HOME=/usr/jdk/jdk1.8.0_45
export JRE_HOME=/usr/jdk/jdk1.8.0_45/jre
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$JAVA_HOME/bin:$PATH
export CATALINA_BASE=/usr/tomcat/tomcar7
export CATALINA_HOME=/usr/tomcat/tomcar7

qiu jie

3个回答

caozhy
caozhy   Ds   Rxr 2015.06.22 20:44

java环境变量不对,vi /etc/profile查看一下是不是规定了tomcat的路径,我遇到的就是在环境变量里写死了tomcat的路径

zhenglxqf
zhenglxqf   2015.06.23 13:03

export CATALINA_BASE=/usr/tomcat/tomcar7
export CATALINA_HOME=/usr/tomcat/tomcar7
是tomcat7吧

Juforg
Juforg   2015.06.23 20:38

直接 vi startup.sh 把 调用setclasspath.sh的地方删了得了 不然就换个tomcat

xieyucheng719
xieyucheng719 把setclasspath.sh删了会不会
2 年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片