Hi,
do you define the bin.dir property in your build.xml file?
Are you sure you have included the path to the editor-directory, or the
jar-file in which the remoteImpl resides? Maybe you can supply us with more
bits of your build.xml file?
Regards,
Ola Sandness
Accenture
> -----Original Message-----
> From: mailing [mailto:[EMAIL PROTECTED]]
> Sent: 12. juli 2001 10:14
> To: [EMAIL PROTECTED]
> Subject: Classpath problem of running java task
>
>
> 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]
>