I've got a build.xml script that builds my Java application on MacOs just fine.
On Windows it fails with:
Exception: java.io.FileNotFoundException: E:\ogamp-all-platforms-v2.2.4\jar\gluegen-rt-android-natives-android-armv6.jar (The system cannot find the file specified)
Note missing first character on the after 'E:\'.
The error seems to come from this definition:
<fx:resources id="appRes">
<fx:fileset dir="build" includes="EazyCNC.jar" />
<fx:fileset dir="lib" />
<fx:fileset dir="." includes="jogamp-all-platforms-v2.2.4/jar/*.jar" />
</fx:resources>
I'm at loss what could be wrong, tried all short of hacks and guess for example if I prepend the path with 'xxx' then for some reason I do not get the error and the build succeeds but the jogamp libries are not included in the .exe and the app fails at the point in code where it first accesses those libs.
This is with Eclipse 4.8.0 and JDK 1.8.0_181 and Inno Setup 5.6.1
EDIT, further info:
If I change the name of the file mentioned in the error message ("gluegen-rt-android-natives-android-armv6.jar") then that change is reflected in the error message! Note that the file itself is not directly mentioned in the build script, only the parent dir. So my conclusion is that the ant correctly constructs the fileset but some other part of the build process fails to open the file, perhaps incorrectly reporting the file path.
Or could this be related to the fact that this is all happening in a VirtualBox and I've mapped the project folder from MacOs host to Windows E: drive letter so it would appear as the path starts from the 'root' directory of that drive...