HOW to include the needed libraries to be copied into the self-cotained app

I'm using: Netbeans 7.2, JavaFX 2.2, JDK 7u7. First, I believe the instructions posted at http://docs.oracle.com/javafx/2/deployment/self-contained-packaging.htm#A1349508 are off (when dealing with NetBeans, at least), as the resulting bundle copies the dependent libraries (3rd party) to the root where the main .jar file is placed, but the MANIFEST gets JavaFX-Class-Path with the lib/ prefix.
This is what I have added to build.xml in the project's folder:
   <target name="-post-jfx-deploy">
        <fx:deploy verbose="true" nativeBundles="image" outdir="${basedir}/${dist.dir}" outfile="${application.title}">
            <fx:application name="${application.title}" mainClass="${javafx.main.class}"/>
            <fx:resources>
                <fx:fileset dir="${basedir}/${dist.dir}" includes="*.jar"/>
                <fx:fileset dir="${basedir}/${dist.dir}/lib" includes="*.jar"/>
            </fx:resources>
            <fx:info title="${application.title}" vendor="${application.vendor}"/>
        </fx:deploy>
    </target>This is the tree structure of the dist folder after Clean and Build Project has been triggered by NetBeans:
│   JFXA.html
│   JFXA.jar
│   JFXA.jnlp

├───lib
│       log4j-1.2.16.jar

└───web-files
        dtjava.js
        error.png
        get_java.png
        get_javafx.png
        javafx-chrome.png
        javafx-loading-100x100.gif
        javafx-loading-25x25.gif
        upgrade_java.png
        upgrade_javafx.pngAnd this is the structure of the created bundle (conents of the JRE runtime omitted):
└───JFXA
    │   JFXA.exe
    │   JFXA.ico
    │
    ├───app
    │       JFXA.jar
    │       log4j-1.2.16.jar
    │       package.cfg
    │
    └───runtime
        └───jreProblem is, when I run the application (the *.exe* inside the bundle) it tries to run the main *.jar*, but fails due to the inability to locate compile-time libraries. Apparently, this behavior is due to the MANIFEST of the *.jar* being linked to the folder named lib (defaults), but the build script copies the libraries to the output dir where the actual *.jar* resides (dist). How can I fix this? Thanks.
I think I have ran into the same problem as here: javafxpacker - include libs
Edit*:
Upon .jar extraction and further inspection of the MANIFEST file, I see this:
JavaFX-Class-Path: lib/log4j-1.2.16.jar
Currently, as mentioned above, the libraries end up in the root folder where the main .jar resides, due to:
*<fx:fileset dir="${basedir}/${dist.dir}/lib" includes="*.jar"/>*
So, my question is, what do I need to change in order to get the dependent libraries to be copied into the correct path (with lib prefix), when building a bundle? The *<fx:fileset>* does not seem to support anu attribute that would specify the output path structure..

Use
             <fx:resources>
                <fx:fileset dir="${basedir}/${dist.dir}" includes="*.jar"/>
                <fx:fileset dir="${basedir}/${dist.dir}" includes="lib/*.jar"/>
            </fx:resources>or simply
      <fx:fileset dir="${basedir}/${dist.dir}" includes="**/*.jar"/>Filed http://javafx-jira.kenai.com/browse/RT-24757 to update the docs.
Edited by: igor on Sep 5, 2012 2:23 PM

Similar Messages

  • [svn:fx-trunk] 8190: make sure the HaloClassic theme is not copied into the package b/ c it is no longer supported in flex 4

    Revision: 8190
    Author:   [email protected]
    Date:     2009-06-24 12:26:02 -0700 (Wed, 24 Jun 2009)
    Log Message:
    make sure the HaloClassic theme is not copied into the package b/c it is no longer supported in flex 4
    bug: https://bugs.adobe.com/jira/browse/SDK-20729
    qa: no
    doc:
    checkintests: pass
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-20729
    Modified Paths:
        flex/sdk/trunk/build.xml

    Gordon, it looks like its been a while since you made this post.  Not sure how valid it is now...   I am particularly interested in the LigatureLevel.NONE value.  It seems that it is no longer supported.
    How do I turn of ligatures in the font rendering?
    My flex project involves trying to match the font rendering of Apache's Batik rendering of SVG and ligatures have been turned off in that codebase.  Is there any way (even roundabout) to turn ligatures off in flash?
    Thanks,
    Om

  • Can any one tell me how to include the company logo and some poictures into the Teststand report

    1. Can any one tell me how to include the company logo and some pictures into the Teststand report?
    2. How to include the waveforms into the report?

    http://zone.ni.com/devzone/cda/epd/p/id/3619
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • How long does it need to charge iphone 5 for the first time?

    Does anyone knows how long does it need to charge iphone 5 for the first time?
    Message was edited by: Islius

    Until it reads 100%

  • How can i import tables from a different schema into the existing relational model... to add these tables in the existing model? plss help

    how can i import tables from a different schema into the existing relational model... to add these tables in the existing relational/logical model? plss help
    note; I already have the relational/logical model ready from one schema... and I need to add few more tables to this relational/logical model
    can I import the same way as I did previously??
    but even if I do the same how can I add it in the model?? as the logical model has already been engineered..
    please help ...
    thanks

    Hi,
    Before you start, you should probably take a backup copy of your design (the .dmd file and associated folder), in case the update does not work out as you had hoped.
    You need to use Import > Data Dictionary again, to start the Data Dictionary Import Wizard.
    In step 1 use a suitable database connection that can access the relevant table definitions.
    In step 2 select the schema (or schemas) to import.  The "Import to" field in the lower left part of the main panel allows you to select which existing Relational Model to import into (or to specify that a new Relational Model is to be created).
    In step 3 select the tables to import.  (Note that if there are an Foreign Key constraints between the new tables and any tables you had previously imported, you should also include the previous tables, otherwise the Foreign Key constraints will not be imported.)
    After the import itself has completed, the "Compare Models" dialog is displayed.  This shows the differences between the model being imported and the previous state of the model, and allows you to select which changes are to be applied.
    Just selecting the Merge button should apply all the additions and changes in the new import.
    Having updated your Relational Model, you can then update your Logical Model.  To do this you repeat the "Engineer to Logical Model".  This displays the "Engineer to Logical Model" dialog, which shows the changes which will be applied to the Logical Model, and allows you to select which changes are to be applied.
    Just selecting the Engineer button should apply all the additions and changes.
    I hope this helps you achieve what you want.
    David

  • Recompile all the GMD libraries and forms, then retest the issue.

    Hi
    One of our consultant working in Oracle Process Manufacturing, getting the following error.
    ORA-04062: signature of package "APPS.GMD_FORMULA_DETAIL_PVT" has been changed.
    Then according to Metalink Doc id: 374204.1, the solution is as follows:
    Recompile all the GMD libraries and forms, then retest the issue
    Can anybody suggest me how to recompile these libraries & forms? Is it using adadmin (Compile/Reload Database Entities Tasks) menu or not? Need help.
    Thanks

    Run adadmin and select:
    1. Generate Applications Files menu
    2. Generate form files
    Do you want to regenerate Oracle Forms PL/SQL library files [Yes] ?
    Do you want to regenerate Oracle Forms menu files [Yes] ?
    Do you want to regenerate Oracle Forms executable files [Yes] ?
    Enter list of products ('all' for all products) [all] : gmd
    Generate specific forms objects for each selected product [No] ?

  • What is the need for setting property data inside the JMSMesage

    Hi
    Could anybody please let me know
    *What is the need for setting property data inside the JMSMesage??
    For example i have a seen a similar example as shown ??
    I have seen a
    Message.setStringProperty("Sport","Basketball");
    and also please tell me how can the MDB recievies this property data ??
    Thanks in advance .

    raviprivate wrote:
    Could anybody please let me know
    *What is the need for setting property data inside the JMSMesage??
    For example i have a seen a similar example as shown ??
    I have seen a
    Message.setStringProperty("Sport","Basketball"); Look at the detail JMS documentation on [Message Properties|http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/jms/Message.html] .
    >
    and also please tell me how can the MDB recievies this property data ?? MDB onMessage method argument is the Message object and if you look at the documentation, Message interface has getter methods to retrieve the properties.

  • My HDD crashed in my old PC and I built a new system.  iTunes won't let me sync the music from my ipod back into the new version of iTunes I had to download.  How do I fix?

    My HDD crashed in my old PC and I built a new system.  iTunes won't let me sync the music from my iPod back into the new version of iTunes I had to download.  How do I fix?

    Syncing music via iTunes is only one way: from iTunes to your iPod.  If you need to copy the music from your iPod back to your PC, see this older post from another forum member Zevoneer covering the different ways to do this.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • While running how do I get my podcast to play one song and move to the next and not skip to the next after a few seconds into the song?

    I recently started running and downloaded the Couch to 5K webcasts, while running how do I get my podcast to play one song in it's entirety and move to the next and not skip to the next after a few seconds into the song?  I beleive it's the motion of the running that is causing it, is there a setting I need to change?

    Hello nowrunning,
    Is the "Shake to Shuffle" option turned on in your iPod's settings?  To check, head to Settings -> Music -> Shake to Shuffle and make sure it is set to Off.
    B-rock

  • 1- How do I animate a layer? and how do I add the clips that I've edited into the whole video?

    I'm super new to this. All I need are some simple instructions to these questions: 1- How do I animate a layer? and how do I add the clips that I've edited into the whole video? I know there's probably something on Adobe's website telling me these things, but I prefer this kind of thing.

    Rick has pointed you to a good set of resources. (I may be biased, since I created those resources.)
    Here is a larger set of resources for learning After Effects:
    http://adobe.ly/AE_basics

  • If I have a movie on my mac on iTunes how do i get it off my computer and into the iCloud?

    f I have a movie on my mac on iTunes how do i get it off my computer and into the iCloud?

    You don't need to manually put iTunes Store purchases in the cloud. If that purchase can be stored there in your country, it's done so upon purchase. If not, it isn't possible.
    (84039)

  • HT1727 How do i get itunes to recognize music imported into the file structure?

    How do I get iTunes to recognize music imported into the file structure?

    Press Alt or Ctrl+B to reveal the menu bar if needed.
    Use File > Add Folder to Library if you just want to import it.
    If you're trying to relink broken entries in a library with the corresponding media then some more details would help.
    tt2

  • How do I turn off the alt scroll zoom?  When I'm in Adobe photoshop and illustrator using the pen tool, alt is utilized for another short cut.  I would like to use the alt command for the pen tool instead of zooming into the screen.

    How do I turn off the alt scroll zoom? 
    When I'm in Adobe photoshop and illustrator using the pen tool, alt is utilized for another short cut.  I would like to use the alt command for the pen tool instead of zooming into the screen.

    I tend to select things from left to right and every time I am moving in a downward right diagonal motion during lasso selection I am missing a clear view and I am tending to have a more sloppy selection.  All this does is slow me down since I need to go back and hit those areas again.  The big arrowhead just get's in the way.  The original lasso tool with the thin line and small active point at it's lower left was far better for me.
    I don't like turning the cursors to precise because I like to see the active tool icon where my cursor is and as the icon changes as I hold modifier keys down.  If I am forced to get comfortable with using pricise cursors I guess I will, but man, I've never had to do this in my 15 years of photoshop use...
    I would absolutely LOVE to find a way to get the old lasso icon -- without the arrowhead above it.
    Is there any chance this option could be inlcuded in cursor preferences?  I'd give much thanks, Adobe.

  • I see the other libraries but don't get the "import" ribbon and buttom at the bottom

    I just added a new computer to the homesharing and while I see the other libraries, I don't get the ribbon at the bottom that has the import button. This is only happening on the new system. How can I get the ribbon to come up

    are you using a Mac or PC ?

  • How to I keep Firefox from trying to dial into the internet?

    I use a dial-up modem to access the internet at home. I recently installed Firefox 3.6. I have noticed that when I have hung up the connection, Firefox periodically (fairly frequently) brings up the box for me to dial into the internet again.
    What causes this and how can I turn it off?
    I have disabled the setting allowing Firefox to check for updates to itself or the add-ons. I have also disabled the setting to send information about Firefox crashes (and I haven't had any yet, anyway).
    I'm certain that the web pages I am viewing do not require internet access, since they are local files that I am developing and have no need to get to the 'net for anything.
    I know that the dialup popup is from Firefox, since the little icon in the top left corner is the fox-around-the-globe Firefox logo.
    Thank you for any help you can give me.
    By the way, the "current browser and operating system" below are incorrect, since I am writing message this from a different PC. I am running Windows XP, Firefox 3.6, Firebug addon, not sure what else.

    I recently found out part of the problem myself.
    By looking at Tools -> Error Console, I found that there were a number of errors having to do with Livemark Services.
    I found the problem with these (I think!) by looking at Bookmarks -> Bookmark Toolbar and then something having to do with "headlines". By right-clicking and Delete, I think I can get rid of these annoying dialup popups every few minutes while I'm offline.
    The Error Console also had a few messages about nsBlocklistService. I'm assuming that these are related to Tools -> Options -> Security and "Block reported attack sites" and "Block reported web forgeries". I don't think I'm ready to disable those at this point, so I'm hoping the number of dialup popups will be good enough without the "headlines".
    By the way, the dialup popups occurred even when I was displaying nothing in the Firefox window except about:blank.
    Hope this helps someone else.

Maybe you are looking for

  • I'm trying to download a song and movies that I've purchased.

    Hi, When trying tp download a movie or song that i've purchased from my cloud I receive this msg. "You can download past purchases on this computer with just one Apple ID every 90 days". Any help would be most appreciated!  Thank you

  • 16:9 Resolution List | Why The 1.85:1 or 2.39:1 Ratio Wasn't Standardized?

    Hi. The 16:9 resolutions can be seen on the Display Control Panel in the System Preferences but where can a complete list of just 16:9 resolutions be had including those below 1280 x 720 if any and those above 2560 x 1440 for future displays higher t

  • Missing focus indicator for selectOneRadio

    Hello, I am using JDeveloper 11.1.1.6.0. I am working on a project that is required to meet accessibility standards and have run across an issue with the selectOneRadio. When there is no selection made in the radio (either by default or manual select

  • Deployment of objects in OWB10g with Personal Edition Database

    When trying to deploy objects in a Personal Oracle 10g database with OWB10g, the following error occurs: RPE-01011: Cannot deploy to target database location because it does not have a compatible version. Deployment on the same database but on Enterp

  • FileDownload, downloading data from Server to Client/Share

    Hello together, my Web Dynpro Application shall save 4 Files to the client or to a share. If the User presses SAVE DATA on the application, the data should be saved in a table (this is already done) but also the new and the old data should be saved i