Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window ant error #130

Open
jadendev0202 opened this issue Jun 7, 2021 · 1 comment
Open

window ant error #130

jadendev0202 opened this issue Jun 7, 2021 · 1 comment

Comments

@jadendev0202
Copy link

jadendev0202 commented Jun 7, 2021

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

@Elbarto
Copy link

Elbarto commented Nov 16, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants