Hai.,
After running this
ANT (for RMI), I came across an Error "Build Failed :
Java Returned 1"
I can't understand it. Please can anyone help me.
Sourse code:
<project>
<target name="compile">
<javac srcdir="D:\Practise\RMI">
<include name="myRMIClient.java"/>
<include name="myRMIServer.java"/>
</javac>
</target>
<target name="stub" depends="compile">
<rmic classname="myRMIImpl" base="D:\Practise\RMI"/>
</target>
<target name="background" depends="stub">
<exec executable="cmd" spawn="true">
<arg line="/c start rmiregistry" />
</exec>
</target>
<target name="RunServer" depends="background">
<jar destfile="D:\Practise\RMI\myRMIServer.jar"
basedir="D:\Practise\RMI\"
includes="D:\Practise\RMI\myRMIServer.class">
<manifest>
<attribute name="Main-Class" value="myRMIServer"/>
</manifest>
</jar>
<java jar="D:\Practise\RMI\myRMIServer.jar" fork="true" failonerror="true" >
<classpath>
<pathelement location="D:\Practise\RMI\" />
<pathelement path="myRMIImpl_Skel.class, myRMIImpl_Stub.class," />
</classpath>
</java>
<echo message = "Server Running --- Waiting for Client Request " />
</target>
</project>