当我尝试运行和构建Ant时出现此错误:
Problem: failed to create task or type http://com.ibm.adapter:createProject
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet
我检查了运行时JRE(在与工作空间相同的JRE中运行)。 似乎找不到正确的jar,因此我在Ant Home Entries中添加了它(com.ibm.adapter.command),但它还是无法正常工作。
这是脚本(即使这应该没有问题,因为在另一台计算机上工作时,我认为问题仅在于RAD配置)
<project default="CreateRigaVariazioneSostituzione" name="/EssigIntegrazione/RigaVariazioneSostituzione.xml" xmlns:adapter="http://com.ibm.adapter">
<property name="debug" value="true"/>
<property name="projCpy2Java" value="EssigIntegrazione"/>
<target name="CreateRigaVariazioneSostituzione">
<adapter:createProject projectName="${projCpy2Java}" projectType="Java" sourceFolder="/src"/>
....
</target>
</project>
您知道如何解决此问题吗?
答案 0 :(得分:1)
从IBM Installation Manager安装J2C连接器