ant build failed (compile error)

Two colleagues got problems compiling the java sources. output listing:
------------------------------------------
C:\Program Files\Software AG\Field Service Automation>ant
now compiling, building and deploying FSA - application…
install will continue after this step!
please wait!
You will be ask for the deployment-destination in a separate window, soon…
C:\Program Files\Software AG\Field Service Automation\src\java\com\softwareag\tm
b\smartclient\tmdb\TMAccess.java:219: incompatible types
found : java.lang.Object
required: org.w3c.dom.xpath.XPathResult
XPathResult result = xPathEvaluator.evaluate(query,doc, null,
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
1 error

BUILD FAILED
---------------------------------------------
We found out that there was no sort order in a dir command as default. But the Library folder should be sorted alpha-numeric for the compile. For this problem I modified the build.xml file in the …\field service automation\src folder. It is attached to this entry. please use this file, if you have the same problem.

Problem description:
In the new FSA classes ( we received these last Friday) exist a problem with the SyncAdapter class.
SyncAdapter uses AbstractObject and it does not compile the SyncBaseImpl classes of server and smartclient, because SyncBaseImpl uses BaseAbstractObject.
If we changed SyncAdapter to BaseAbstractObject then common.syncSyncBLImpl does not compile the class.
In addition, the classes do not agree with the java sources.

Answer:
BaseAbstractObject does not exist anymore in the Beta version!
The dei-nstall of FSA doesn’t remove the compiled java classes and also somes sources. So If You do an Update, please remove the remaining Field Service Automation folder manually, after de-install!
But save your own modified files before!!!