Skip to content

window ant error #130

@jadendev0202

Description

@jadendev0202

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.

######

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions