MAVGCL
MAVGCL copied to clipboard
window ant error
An error has been detected in your program.
I am building on windows, Ant and jdk were installed and the environment variable registration was successful. (successfully typing "ant -version, java -version" in cmd)
Now, after downloading the file you created, unzip it and run ant deploy_windows. (Modified to work on Windows in the build.xml you created.)
<build.xml>
<target name="metadata" >
<echo>JDK used: jdk 16.0.1</echo>
<tstamp>
<format property="current.time" pattern="dd.MM.yyyy" />
</tstamp>
<buildnumber />
<echo>Current build number:${build.number}</echo>
<propertyfile file="src/main/java/com/comino/flight/build.info">
<entry key="build" value="${build.number}" />
<entry key="build_date" value="${current.time}" />
</propertyfile>
</target>
<target name="mvn" depends="metadata">
<exec dir="./" executable="sh">
<arg line="-c ' C:/Autonomia_develop/USER/mvn/bin clean install'" />
</exec>
</target>
<target name="deploy_window" depends="mvn">
<fx:deploy width="1230" height="865" outdir="dist/deploy" outfile="MAVGAnalysis" nativeBundles="msi">
<fx:application name="MAVGAnalysis" mainClass="com.comino.flight.MainApp" version="0.16">
</fx:application>
<fx:resources>
<fx:fileset requiredFor="startup" dir="dist" includes="*.*" />
</fx:resources>
<fx:info title="MAVGAnalysis" vendor="ecmnet">
<fx:icon href="MAVGAnalysis.icns" />
</fx:info>
<fx:platform>
<fx:jvmarg value="-Xms1G"/>
</fx:platform>
</fx:deploy>
</target>
But it doesn't work.
###<Error>###
C:\Autonomia_develop\MAVGCL\MAVGCL>ant deploy_window Buildfile: C:\Autonomia_develop\MAVGCL\MAVGCL\build.xml
metadata: [echo] JDK used: jdk 16.0.1 [echo] Current build number:14 [propertyfile] Updating property file: C:\Autonomia_develop\MAVGCL\MAVGCL\src\main\java\com\comino\flight\build.info
mvn: [exec] sh: C:/Autonomia_develop/USER/mvn/bin: is a directory [exec] Result: 126
deploy_window:
BUILD FAILED
C:\Autonomia_develop\MAVGCL\MAVGCL\build.xml:23: Problem: failed to create task or type javafx:com.sun.javafx.tools.ant:deploy
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any
Total time: 0 seconds
C:\Autonomia_develop\MAVGCL\MAVGCL>
I would like to use this program very much.
Ask for help.

Hi,
I'm in the exact same situation. I really would like to use your app, but having about zero knowledge on Java dev I can't figure out how to build it. I manage to go throught installing Maven, Ant ect... setting up the env path aswell but then I'm stuck on the same error described Above...
I Also tried to use the info in the readme, using the jlink and jpackage command but without success.... Please if someone know how to build this app, explain it, it would be much appreciated.