jsp 运行环境的配置之Tomcat7 设置…

用户在Windows环境下遇到配置Tomcat与JAVA_HOME路径不匹配的问题,详细描述了配置过程和遇到的错误,并寻求解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Question

window 下查看java_home ---<wbr><wbr><wbr> echo%java_home %<br></wbr></wbr></wbr>


The CATALINA_HOME environment variable is not defined correctly

Asked by:<wbr></wbr>matu007

CATALINA_HOME=C:\JavaTomca<wbr style="font-size: 13px; font-family: inherit;"></wbr>tServer\to<wbr style="font-size: 13px; font-family: inherit;"></wbr>mcat6014\b<wbr style="font-size: 13px; font-family: inherit;"></wbr>in
CLASSPATH=.;C:\Program Files\Java\jre1.6.0_02\lib<wbr style="font-size: 13px; font-family: inherit;"></wbr>\ext\QTJav<wbr style="font-size: 13px; font-family: inherit;"></wbr>a.zip
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\Some User
JAVA_HOME=C:\Program Files\Java\jdk1.5.0_12
Path=C:\WINDOWS\system32;C<wbr style="font-size: 13px; font-family: inherit;"></wbr>:\WINDOWS;<wbr style="font-size: 13px; font-family: inherit;"></wbr>C:\WINDOWS<wbr style="font-size: 13px; font-family: inherit;"></wbr>\System32\<wbr style="font-size: 13px; font-family: inherit;"></wbr>Wbem;C:\Pr<wbr style="font-size: 13px; font-family: inherit;"></wbr>ogram Files\ATI Technologies\ATI Control Panel;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Progra<wbr style="font-size: 13px; font-family: inherit;"></wbr>m Files\QuickTime\QTSystem\;<wbr style="font-size: 13px; font-family: inherit;"></wbr>C:\JavaTom<wbr style="font-size: 13px; font-family: inherit;"></wbr>catServer\<wbr style="font-size: 13px; font-family: inherit;"></wbr>tomcat6014<wbr style="font-size: 13px; font-family: inherit;"></wbr>\bin
PATHEXT=.COM;.EXE;.BAT;.CM<wbr style="font-size: 13px; font-family: inherit;"></wbr>D;.VBS;.VB<wbr style="font-size: 13px; font-family: inherit;"></wbr>E;.JS;.JSE<wbr style="font-size: 13px; font-family: inherit;"></wbr>;.WSF;.WSH<wbr style="font-size: 13px; font-family: inherit;"></wbr>
PROCESSOR_ARCHITECTURE=x86<wbr style="font-size: 13px; font-family: inherit;"></wbr>
PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 10, AuthenticAMD
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=040a
ProgramFiles=C:\Program Files
PROMPT=$P$G
QTJAVA=C:\Program Files\Java\jre1.6.0_02\lib<wbr style="font-size: 13px; font-family: inherit;"></wbr>\ext\QTJav<wbr style="font-size: 13px; font-family: inherit;"></wbr>a.zip
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\SOMEUS~1\<wbr style="font-size: 13px; font-family: inherit;"></wbr>LOCALS~1\T<wbr style="font-size: 13px; font-family: inherit;"></wbr>emp
TMP=C:\DOCUME~1\SOMEUS~1\L<wbr style="font-size: 13px; font-family: inherit;"></wbr>OCALS~1\Te<wbr style="font-size: 13px; font-family: inherit;"></wbr>mp
USERDOMAIN=OWNER-DOMAIN
USERNAME=Some User
USERPROFILE=C:\Documents and Settings\Some User
windir=C:\WINDOWS

MY JDK LOCATION IS:
C:\Program Files\Java\jdk1.5.0_12

AND TOMCAT LOCATIO IS:
C:\JavaTomcatServer\tomcat<wbr style="font-size: 13px; font-family: inherit;"></wbr>6014

THE ERROR I GET IS:

C:\JavaTomcatServer\tomcat<wbr style="font-size: 13px; font-family: inherit;"></wbr>6014>start<wbr style="font-size: 13px; font-family: inherit;"></wbr>up.bat
The CATALINA_HOME environment variable is not defined correctly
This environment variable is needed to run this program

When i ECHO �TALINA_HOME% i get C:\JavaTomcatServer\tomcat<wbr style="font-size: 13px; font-family: inherit;"></wbr>6014\bin

WHAT AM I DOING WRONG ...

I MOVED MY TOMCAT TO C:\JavaTomcatServer\tomcat<wbr style="font-size: 13px; font-family: inherit;"></wbr>6014 from the C:\Documents and Settings\Some User\Desktop location this morning and re-set my CATALINA_HOME AND THE PATH varaibles appropriately....

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值