我尝试在 ANT 下运行 Activiti BPM 工具,但出现以下错误:- 错误:- 'java' 未被识别为内部或外部命令;当我尝试在 Windows 7 下使用 CMD 命令行启动演示应用程序时,出现以下错误:-
C:\activiti-5.10\activiti-5.10\setup>ant demo.start
Buildfile: C:\activiti-5.10\activiti-5.10\setup\build.xml
demo.install:
internal.cfg.create:
[copy] Copying 1 file to C:\activiti-5.10\activiti-5.10\setup\build\activit
i-cfg
[zip] Building zip: C:\activiti-5.10\activiti-5.10\setup\build\activiti-cf
g.jar
[echo] copying configuration to ../workspace/activiti-engine-examples/src/m
ain/config
[unzip] Expanding: C:\activiti-5.10\activiti-5.10\setup\build\activiti-cfg.j
ar into C:\activiti-5.10\activiti-5.10\workspace\activiti-engine-examples\src\ma
in\config
internal.classpath.libs:
internal.taskdef.launch:
h2.start:
[echo] starting H2 database...
[launch] launching cmd 'C:\activiti-5.10\activiti-5.10\apps\h2\h2.start.bat '
in dir 'C:\activiti-5.10\activiti-5.10\apps\h2'
[launch] waiting for launch completion msg 'TCP server running'...
[launch] 'java' is not recognized as an internal or external command,
[launch] operable program or batch file.
[launch] launched process completed
[echo] H2 database started
tomcat.start:
[launch] launching cmd 'C:\activiti-5.10\activiti-5.10\apps\apache-tomcat-6.0
.32\bin\startup.bat ' in dir 'C:\activiti-5.10\activiti-5.10\apps\apache-tomcat-
6.0.32\bin'
[launch] waiting for launch completion msg 'Using CLASSPATH:'...
[launch] Using CATALINA_BASE: "C:\activiti-5.10\activiti-5.10\apps\apache
-tomcat-6.0.32"
[launch] Using CATALINA_HOME: "C:\activiti-5.10\activiti-5.10\apps\apache
-tomcat-6.0.32"
[launch] Using CATALINA_TMPDIR: "C:\activiti-5.10\activiti-5.10\apps\apache
-tomcat-6.0.32\temp"
[launch] Using JRE_HOME: "C:\Program Files\Java\jdk1.7.0_06"
[launch] Using CLASSPATH: "C:\activiti-5.10\activiti-5.10\apps\apache
-tomcat-6.0.32\bin\bootstrap.jar"
explorer.browser.open:
demo.start:
BUILD SUCCESSFUL
Total time: 5 seconds
有谁知道出了什么问题?BR