无法运行演示设置

时间:2012-08-22 12:49:16

标签: ant bpm activiti

我已经下载了Activity 5.10 zip文件,然后我已经下载并配置了Apache ANT,我测试了它并且它成功运行了。 但是我无法按照此链接http://activiti.org/userguide/#demo.setup

中的指定运行演示文件

如果我使用cmd命令行键入以下内容: -

C:\activiti-5.10\activiti-5.10\setup>ant demo.start

我会收到以下错误: -

'ant' is not recognized as an internal or external command, operable program or batch file.

任何人都可以帮我确定问题所在吗? BR

::: UPDATE :::

感谢您的回复,我已经在活动的安装目录中复制了ANT bin文件,然后我再次运行CMD命令,但是我得到了以下错误,我构建失败了, 如下所述: -

C:\Users\Desktop\activiti-5.10\activiti-5.10\setup>ant demo.start
Buildfile: C:\Users\Desktop\activiti-5.10\activiti-5.10\setup\build.xml

demo.install:

internal.cfg.create:
     [copy] Copying 1 file to C:\Users\Desktop\activiti-5.10\activiti-5.
10\setup\build\activiti-cfg
      [zip] Building zip: C:\Users\Desktop\activiti-5.10\activiti-5.10\s
etup\build\activiti-cfg.jar
     [echo] copying configuration to ../workspace/activiti-engine-examples/src/m
ain/config
    [unzip] Expanding: C:\Users\Desktop\activiti-5.10\activiti-5.10\setu
p\build\activiti-cfg.jar into C:\Users\Desktop\activiti-5.10\activiti-5.
10\workspace\activiti-engine-examples\src\main\config

internal.classpath.libs:

internal.taskdef.launch:

h2.start:
     [echo] starting H2 database...
   [launch] launching cmd 'C:\Users\Desktop\activiti-5.10\activiti-5.10\
apps\h2\h2.start.bat ' in dir 'C:\Users\Desktop\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:

BUILD FAILED
C:\Users\Desktop\activiti-5.10\activiti-5.10\setup\build.xml:330: couldn
't find executable for script C:\Users\Desktop\activiti-5.10\activiti-5.
10\apps\apache-tomcat-6.0.32\bin\startup

Total time: 0 seconds

2 个答案:

答案 0 :(得分:0)

看起来您没有在路径变量中设置ant目录。指定ant的完整路径或将其添加到路径变量

答案 1 :(得分:0)

我键入了tomcat.install并解决了问题,因为我需要在apps目录下载tomcat。