I would like to use ant to start a java server, but it complain
classpath not find:
BUILD FAILED
/home/cvs/project/uml_editor/bin/build.xml:59: Could not find
editor.uml.remote.remoteImpl. Make sure you have it in your classpath
The command to start server is:
java -cp ${bin.dir} -Djava.rmi.server.codebase=http://[host]/~cvs/uml_editor/
-Djava.security.policy=${policy.dir}/policy editor.uml.remote.remoteImpl
Then I write the ant target as:
<target name="startrm">
<java classname="editor.uml.remote.remoteImpl" >
<classpath path="${bin.dir}"/>
<sysproperty key="java.rmi.server.codebase"
value="http://[host]/~cvs/uml_editor/"/>
<sysproperty key="java.security.policy" value="${policy.dir}/policy"/>
</java>
</target>
According to http://jakarta.apache.org/ant/manual/using.html#path, I
should set the classpath correctly, but why I can't run my server?
--
Carfield Yim, visit my homepage at http://[host]