Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » JavaFX native desktop deployment EXE (Trying to create an exe file with title pane icons)
JavaFX native desktop deployment EXE [message #1705339] Thu, 13 August 2015 21:51
Dwight Norris is currently offline Dwight NorrisFriend
Messages: 16
Registered: January 2015
Junior Member
index.php/fa/22898/0/I have tried every combination for the last week Code.Makery is the best tutorial I have seen here are the step by step process I have used with the corresponding Error Report.
Could someone walk me through this process or offer
I would like the app to be self contained with its own JAR
sdk jre in ev path jre
suggestions to correct the errors

CSV deployment steps

Create AFX Csv Project with Eclipse Luna
Right Click project New Source Folder named resources
resources folder contains two image files
merlin.gif and AFXCsvProject.png 32 by 32 (no spaces in name)

Open build.fxbuild
Vendor Name = Joe
Application Title = AFX Csv Project
Application Class = appCSVFile.CSVMain
Packaging Format = exe

Run Generate ant build.xml only

Under build add folder package and under package add folder windows
to the windows folder I paste AFXCsvProject.png (no spaces in name)

Under build add folder dist and paste resources folder into dist folder

Edit build.xml file

<path id="fxant">
<file name="${java.home}\..\lib\ant-javafx.jar"/>
<file name="${java.home}\lib\jfxrt.jar"/>
<file name="${basedir}"/>

<fx:resources id="appRes">
<fx:fileset dir="dist" includes="AFX Csv Project.jar"/>
<fx:fileset dir="dist" includes="libs/*"/>
<fx:fileset dir="dist" includes="resources/**"/>

Right Click build.xml and select Run As 1.Ant Build

Error Report

[taskdef] Could not load definitions from resource com/sun/javafx/tools/ant/antlib.xml. It could not be found.

C:\Users\User Name\workspace\AFX Csv Project\build\build.xml:98: Problem: failed to create task or type
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet

line 98 <fx:resources id="appRes">
<fx:fileset dir="dist" includes="AFX Csv Project.jar"/>
<fx:fileset dir="dist" includes="libs/*"/>
<fx:fileset dir="dist" includes="resources/**"/>
  • Attachment: New Error.bmp
    (Size: 555.90KB, Downloaded 1385 times)
Previous Topic:Java Error
Next Topic:Beginner needs some advice
Goto Forum:

Current Time: Mon Jun 01 12:58:45 GMT 2020

Powered by FUDForum. Page generated in 0.03719 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top