我正在开发OpenGTS,我正在尝试使用build.xml和命令ant all
来编译它。我一直在收到这个错误:
[java]错误:无法找到或加载主类org.opengts.util.CompiletimeVars
Java返回:1
代码:
<!-- (re)create compile time source file here? -->
<echo message="Creating CompileTime module ..."/>
<java classname="org.opengts.util.CompiletimeVars" fork="true" failonerror="true">
<arg value="-configFileDir=${basedir}"/>
<arg value="-template?=${basedir}/CompileTime.jtemp"/>
<arg value="-package=org.opengts"/>
<arg value="-output=${src.gts}/org/opengts/CompileTime.java"/>
<arg value="-overwrite=false"/> <!-- do not overwrite -->
<arg value="-extra=${CompiletimeVars.extra}"/>
<arg value="${CompiletimeVars.arg}"/>
<arg value="${CompiletimeVars.arg.1}"/>
<arg value="${CompiletimeVars.arg.2}"/>
<arg value="${CompiletimeVars.arg.3}"/>
<classpath>
<pathelement location="${build.lib}/gtsutils.jar"/>
</classpath>
</java>