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 1.8.0.40 jre in ev path jre 1.8.0.45
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">
<filelist>
<file name="${java.home}\..\lib\ant-javafx.jar"/>
<file name="${java.home}\lib\jfxrt.jar"/>
<file name="${basedir}"/>
</filelist>
</path>

<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/**"/>
</fx: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.
do-deploy:

BUILD FAILED
C:\Users\User Name\workspace\AFX Csv Project\build\build.xml:98: Problem: failed to create task or type javafx:com.sun.javafx.tools.ant:resources
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/**"/>
</fx:resources>
  • Attachment: New Error.bmp
    (Size: 555.90KB, Downloaded 1853 times)
Previous Topic:Java Error
Next Topic:Beginner needs some advice
Goto Forum:
  


Current Time: Fri Sep 20 15:08:24 GMT 2024

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

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

Back to the top