Try with the below change:
The Classpath is set to the root directory where the classes are generated and class's packaged name is provided for java command.
<path id="path.class">
<pathelement location="build"/>
</path>
<target name="run" depends="compile"
description="Runs the complied project">
<!-- Run -->
<java fork="true" classname="sample.calendar.OutlookToGmailCalendarSync" >
<classpath refid="path.class"/>
</java>
</target>
Hope this would help.