MAVGCL icon indicating copy to clipboard operation
MAVGCL copied to clipboard

window ant error

Open jadendev0202 opened this issue 4 years ago • 1 comments

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 / declarations have taken place. No types or tasks have been defined in this namespace yet

Total time: 0 seconds

C:\Autonomia_develop\MAVGCL\MAVGCL>

I would like to use this program very much.

Ask for help. KakaoTalk_20210607_162120356 KakaoTalk_20210607_162137865 KakaoTalk_20210607_162148325 KakaoTalk_20210607_162203153 KakaoTalk_20210607_162218264 image image

jadendev0202 avatar Jun 07 '21 08:06 jadendev0202

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.

Elbarto avatar Nov 16 '21 16:11 Elbarto