Custom native bundle icon

I am using the following tutorial as a guide:
http://docs.oracle.com/javafx/2/deployment/self-contained-packaging.htm#
I have added the <fx:deploy> task to my build.xml as instructed, and am getting a working native (Mac) bundle, but am unable to change the icon for it.
I have added the verbose attribute and the output contains the following:
Using default package resource [icon] (add package/macosx/Game_Jumpman.icns to the class path to customize)
According to the tutorial, I should not have to change my classpath as I am using NetBeans 7.2.
I have added the requested file to my root project folder, to my src folder, to my build folder but it just doesn't get picked up.
The output still says the default is used.
Does anyone have any idea what I'm doing wrong here ?

Igor, I have copied ant-javafx.jar over from 7u10, but still nothing.
Ant says the following:
Launching <fx:jar> task from /Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/lib/ant-javafx.jar
Launching <fx:deploy> task from /Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/lib/ant-javafx.jarThis is the file I replaced with the version from 7u10.
My build.xml contains the following:
<target name="-post-jfx-deploy">
    <fx:deploy verbose="true" width="${javafx.run.width}" height="${javafx.run.height}" nativeBundles="all" 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:resources>
        <fx:info title="${application.title}" vendor="${application.vendor}" >
            <fx:icon href="package/macosx/Game_Jumpman.icns"/>
        </fx:info>
    </fx:deploy>         
</target>The href attribute is relative to build.xml I assume ?
If so, the file is at the correct location.
But still no custom icon.

Similar Messages

  • Custom native window icons and Jump List api for Windows?

    Hi,
    can I add custom window icons for a Stage?
    Skype did it for its "compact mode":
    http://cloud.addictivetips.com/wp-content/uploads/2011/08/Compact-View.jpg
    (there's a fourth icon in the title bar)
    And can I modify the task bar entries (Jump List)? I am talking about this:
    http://i51.tinypic.com/jauwqr.jpg
    http://cache.gawkerassets.com/assets/images/17/2012/01/medium_9122b374825de2a368e7560b83cc352d.jpg

    can I add custom window icons for a Stage?Not in a Stage with StageStyle.DECORATED http://docs.oracle.com/javafx/2.0/api/javafx/stage/StageStyle.html#DECORATED
    Use StageStyle.UNDECORATED or StageStyle.TRANSPARENT
    The JavaFX Sample application demonstrates custom icons in an UNDECORATED window when you run it as a standard application rather than as an applet. You download it's source from the same page you downloaded JavaFX from.
    There is a Jira request which would assist in creating Windows which look a bit more like the Skype Window http://javafx-jira.kenai.com/browse/RT-20020 "support Aero Glass effects for top-level windows" - my guess is that this just refers to the Glass background and not the icons embedded in the titlebar, though a combination of the Glass Background and StageStyle.UNDECORATED would allow you to create your own icons which look similar to the standard Windows Aero ones and create an look almost exactly like the Skype one.
    For further integrations like the JumpList, JavaFX does not support that out of the box today.
    You can create a feature request in jira if you want.
    There are third party libraries which provide this support for Java - and they should work with JavaFX as JavaFX is just Java.
    Here is a link to a third party library to create a Windows 7 JumpList: http://www.strixcode.com/j7goodies/

  • Build native bundle for mac (.app/.dmg) has no file right to access files....

    Hi,
    today I build my first native bundle (.dmg) for Mac.
    Everything works very well except that my running app has no access to local files. The files are shown but the app does not have the right to read.
    The windows version has no problem to access local files.
    Any ideas what i have to add for Mac.
    Thanks
    Michael
    Buildscript:
    <project name="JavaFXSample" default="build and deploy" basedir="."
             xmlns:fx="javafx:com.sun.javafx.tools.ant">
        <target name="build and deploy">
            <property name="applet.width" value="500"/>
            <property name="applet.height" value="500"/>
            <property name="application.title" value="ZP_Prototype2"/>
            <property name="application.vendor" value="TestVendor"/>
            <property name="build.classes.dir" value="/Users/mb_ta_michi/NetBeansProjects/ZP_Prototype2/build/classes/"/>
            <property name="basedir" value="/Users/mb_ta_michi/NetBeansProjects/ZP_Prototype2/"/>
            <property name="dist.dir" value="/Users/mb_ta_michi/NetBeansProjects/ZP_Prototype2_BUNDLE/"/>
            <property name="javafx.lib.ant-javafx.jar" value="/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/lib/ant-javafx.jar"/>
            <taskdef resource="com/sun/javafx/tools/ant/antlib.xml"     
                    uri="javafx:com.sun.javafx.tools.ant"
                    classpath="${javafx.lib.ant-javafx.jar}"/>
            <fx:application id="zpAppID"
                    name="ZP_Prototype2"
                    mainClass="zp_prototype2.ZP_Prototype2"
                    />
            <fx:resources id="appRes">
                <fx:fileset dir="./../misc/libs2add" includes="*.jar"/>
                <fx:fileset dir="${dist.dir}" includes="*.jar"/>
            </fx:resources>
            <fx:jar destfile="${dist.dir}/ZP_Prototype2.jar">
                    <fx:application refid="zpAppID"/>
                    <fx:resources refid="appRes"/>
                    <manifest>
                        <attribute name="Implementation-Vendor"
                                value="${application.vendor}"/>
                        <attribute name="Implementation-Title"
                                value="${application.title}"/>
                        <attribute name="Implementation-Version" value="1.0"/>
                    </manifest>
                    <fileset dir="${build.classes.dir}"/>
            </fx:jar>
            <fx:deploy width="${applet.width}" height="${applet.height}"
                    outdir="${dist.dir}"
                    embedJNLP="false"
                    outfile="${application.title}"
                    nativeBundles="all"
                    >
                <fx:application refId="zpAppID"/>
                <fx:resources refid="appRes"/>           
                <fx:info title="${application.title}"
                        vendor="${application.vendor}"/>
                 <!-- Custom JVM setup for application -->
                <fx:platform>
                    <fx:jvmarg value="-Xmx512m"/>
                    <fx:jvmarg value="-Xms512m"/>
                    <property name="my.property" value="something"/>
                </fx:platform>
            </fx:deploy>
        </target>
    </project>

    Exact same problem here, and no workaround.
    Windows Phone 8.1; WindowsPhone.app 3.1.1, iTunes 11.2.2, OSX 10.8.5
    The following solution doesn't work on my Mac:
    http://forums.wpcentral.com/mac-os-x/223845-window​s-phone-app-not-syncing-itunes.html

  • Bug: Custom AIR Application icons on Mac OS X don't display after install

    There are circumstances where custom AIR application icons don't display in certain Finder views after installation.
    This is apparent when viewing the application in a docked folder popup. The icon renders as a blank with a sort of no entry slash across it. Another example where this occurs is in a Downloads folder in the Dock (if you immediately create an alias to the app in the your Downloads folder, and your Downloads folder is in the Dock).
    In addition, the maximum icon size of 128x128 really not that large. I wish AIR applications could have larger icons, like real applications.

    I've seen this occur with numerous applications (native OS X and AIR) and typically restarting the dock (rebooting or logout/login) fixes it for me.  Doing a quick search on Google show's that it's a pretty common occurrence.  Are you still seeing this occur after rebooting?
    As for the large icon support, I would like to encourage you to vote for the following two feature requests!
    Application Icon Size
    512x512 Icon Support
    Thanks,
    Chris

  • Can't apply custom channel strip icons in MS v2.2.2??

    Hi all.  I've been adding and using custom channel strip icons (in addition to patch icons) in MainStage for a couple of years now but have only just noticed that I can't apply custom channel strip icons in MS v2.2.2....for some reason I can only apply Logic's default icons for channel strips in v2.2.2.  When I try to apply a custom icon to a channel strip, the icon region is blank.  However, I have no problems applying custom icons to patches.
    I've never had an issue with this in v2.1.x.
    Is anyone else able to apply custom icons to channel strips in MS v2.2.2?
    Cheers
    Gary

    CCT, I worked it out.  For starters, you should be able to get custom Channel Strip icons working in MS v2.1.3 if you put the icons here: user\Library\Application Support\Logic\Images.  My installation directory is the root Library but I've realized in the past days that others' installation directory is their user library.  This seems to be the reason why custom Channel Strip icons don't work if placed in the root Library for those users.
    For MS v2.2.2, the icons need to be placed in the MS app itself i.e. Show Package Contents: \Contents\Resources\Images.  Don't ask me why but they appear correctly when placed there. I wouldn't be surprised that this situation is a bug that was overlooked by Apple when they developed v2.2.x
    I have both versions of MS on my system and in v2.2.2, my icons are duplicated because they're in the v2.2.2 app as well as ~\Library\Application Support\Logic\Images.  However, only those icons located in the v2.2.2 app actually work.

  • Native bundle & Netbeans7.3

    I was able to create a native bundle for deployment using NB7.2 following the instructions in the FX deployment tutorial. For various reasons, I upgraded to NB7.3 with some hassle relating to library files.
    But now the Native packing doesn't work. There is a checkbox in the Deployment dialog but checking it doesn't cause the bundle to be created. I have tried doing a clean & build to no avail.
    I have looked at the build.xml file but it bears little resemblance to the 7.2 version.
    Does anyone know how to create a native bundle using NB7.3?
    Thanks for your help
    Alex

    Hi,
    Can't speak for Leopard users but Battery 3 works fine with Logic Pro 8 and Tiger. It was already on my system when I upgraded and Logic 8 found it immediately. I've had no Battery-related crashes with either 7 or 8. In fact I've had more problems with Ultrabeat.

  • SOUNDTOYS Native bundle anyone had experience with these plug ins?

    I am considering purchasing the native bundle and wondered what experiences anyone has had with them good and bad - level of support - good company like UAD? or Poor like Native Instruments?

    Awesome...
    "If only one can remain"... Soundtoys

  • Custom channel strip icon in MS2

    Hey, I have a .PNG file that I used in MS1 as a channel strip icon, but the same exact file doesn't work in MS2.0.1. I dragged it into the right folder, and it shows up in the list of icons, but when I pick it, no icon shows. When I click the selector again, "No Icon" is highlighted instead of my custom image. It's not a major issue, but this did work in MS1 so I'm curious as to why it stopped working in MS2. Any thoughts?

    CCT, I worked it out.  For starters, you should be able to get custom Channel Strip icons working in MS v2.1.3 if you put the icons here: user\Library\Application Support\Logic\Images.  My installation directory is the root Library but I've realized in the past days that others' installation directory is their user library.  This seems to be the reason why custom Channel Strip icons don't work if placed in the root Library for those users.
    For MS v2.2.2, the icons need to be placed in the MS app itself i.e. Show Package Contents: \Contents\Resources\Images.  Don't ask me why but they appear correctly when placed there. I wouldn't be surprised that this situation is a bug that was overlooked by Apple when they developed v2.2.x
    I have both versions of MS on my system and in v2.2.2, my icons are duplicated because they're in the v2.2.2 app as well as ~\Library\Application Support\Logic\Images.  However, only those icons located in the v2.2.2 app actually work.

  • Failed to launch JavaFX application with native bundle exe

    Hi,
    I have created a JavaFX application, and created its native bundle using Ant. When I am trying to launch application using Jar from bundle created with double click, it successfully launching my application. But when I am trying double click on MyApplication.exe (say), it throwing JavaFX Launcher Error *"Exception while running Application"*.
    I have searched about this issue, I found about jre, so I did replace jre from *"C:\Program Files\Java\jdk1.7.0_10\jre"* to my application bundle folder -- *\bundles\MyApplication\runtime\jre*, then I tried to launch exe with double click, it successfully launched.
    I have compared both jre, there are many missing jar, exe, dll and some properties files I found.
    I have these environment settings -
    JAVA_HOME -- C:\Program Files\Java\jdk1.7.0_10
    JREFX_HOME -- C:\Program Files\Oracle\JavaFX 2.2 Runtime
    Path contains an entry of C:\Program Files\Java\jdk1.7.0_10\bin JAVA_HOME and JREFX_HOME are used as in my build.xml to take ant-javafx.jar and jfxrt.jar --
    ${env.JAVA_HOME}/lib/ant-javafx.jar
    ${env.JREFX_HOME}/lib/jfxrt.jarMy steps to create bundle are -
    <target name="CreatingExe" depends="SignedJar">
                 <fx:deploy width="800" height="600" nativeBundles="all" outdir="${OutputPath}" outfile="${app.name}">
                          <fx:info title="${app.title}"/>
                          <fx:application name="${app.title}" mainClass="${main.class}"/>
                          <fx:resources>
                               <fx:fileset dir="${OutputPath}" includes="*.jar"/>
                         <fx:fileset dir="${WorkingFolder}/temp"/>
                   </fx:resources>
               </fx:deploy>
    </target>What more needed in build.xml so that application launch correctly with exe ?
    Thanks

    You code is not dealing with the DACL access to Winsta0\Default.  Only the LocalSystem account will have full access and the interactively logged on user which is why regedit is not displaying properly.  You'll need to grant access to your user. 
    You also need to deal with UAC since that code is going to give you a non-elevated token via LogonUser().  You need to get the full token via a call to GetTokenInformation() + TokenLinkedToken.
    thanks
    Frank K [MSFT]
    Follow us on Twitter, www.twitter.com/WindowsSDK.

  • Customize Db Constraint Error (Custom Msg bundle vs Custom Trans FrameWork)

    Dear all,
    As in ADF 4GL Guide : ch. 25.8.3 & 25.8.4, Customizing Database Constraint Error can be done, either by using:
    - Custom Message Bundles
    OR
    - Custom Transaction Class
    In the examples there, it is still not clear what is the benefit of using Custom Transaction Class while using Custom Message Bundles seems to be simpler.
    So, actually how can the second option be better compared to the first one ?
    Than you for your help,
    xtanto

    xtanto,
    I agree with your assesment - custom message bundles is much simpler for this use case. If you wanted to do something more "fancy" with the error handling, you would use the custom DBTransactionImpl class. This paragraph from the guide sums it up, I guess:
    If the default facility for assigning a custom message to a database constraint violation
    does not meet your needs, you can implement your own custom constraint error
    handling routine.
    I haven't run into a situation where I've needed to use the DBTransactionImpl approach.
    Best,
    John

  • Loadable Bundle Icon

    I have a loadable bundle (NOTE: not an application).  I have put the icon file in the Resource folder and correctly set the Info.plist value of the CFBundleIconFile to the name of the icon file (e.g. test.icns).  The icon was created by Icon Composer application. I have rebuilt the cache and rebooted.
    The icon does not appear.  I get the generic bundle icon (lego brick). 
    I created a similar icon and loaded it into a test application. That icon appeared. Is it possible that the Finder only uses icons in Application Bundles and not Loadable Bundles?
    I can change the icon via copy/paste into the Get Info icon field.  This correctly works and creates the hidden file "Icon?" (really "Icon\r") in the package. Is there a way to do this via a command line or AppleScript script?

    The solution lies in the -iconForFile method of the NSWorkspace Class. I built a Command Line Tool the takes the image I need and uses the above method to set the icon.
        [[NSWorkspace sharedWorkspace] setIcon:content forFile:targetFile options: NSExclude10_4ElementsIconCreationOption ];
    where content is the NSImage content of the icon and targetFile is the path to the target bundle.

  • How do I apply a custom folder/file icon in Yosemite?

    How do I apply a custom folder/file icon in Yosemite?

    Select the image you wish to use and press COMMAND-C to copy it. Select the folder/file icon. Press COMMAND-I to open the Get Info window. Click in the icon image in the top left corner, then press COMMAND-V to paste your image.

  • Bundle icons not correct

    Just testing some apps and have found that my bundle icons aren't showing as what they should be
    I uploaded the ico file from my own copy of firefox on my windows machine as the icon for my mac bundle - is this the correct way or should I be doing this from the mac?
    As my firefox bundle on my test mac vm only shows up as the standard blue icon?
    otherwise working quite well so far

    On 20/04/2012 06:36, gleach1 wrote:
    > Just testing some apps and have found that my bundle icons aren't
    > showing as what they should be
    >
    > I uploaded the ico file from my own copy of firefox on my windows
    > machine as the icon for my mac bundle - is this the correct way or
    > should I be doing this from the mac?
    >
    > As my firefox bundle on my test mac vm only shows up as the standard
    > blue icon?
    Unfortunately ZCC doesn't understand Mac icons - AFAICT it's still the
    old Windows/Linux code.
    > otherwise working quite well so far
    Glad to hear it!
    HTH.
    Simon
    Novell/SUSE/NetIQ Knowledge Partner
    Do you work with Novell technologies at a university, college or school?
    If so, your campus could benefit from joining the Novell Technology
    Transfer Partner (TTP) program. See novell.com/ttp for more details.

  • Traversal of custom item menu icons in form

    Here is one doubt for me
    me created one menu design with customitem subclass creating background image with sprite class and menu icons over it as in mobile(grid view) using default method paint() g.drawImage();
    and then appended this customitem to form. Now the problem is how to traverse among the custom item menu icons.
    i am aware of traverse() and traverout() methods, but don't know how to enable it
    Pls suggest me expecting a positive reply
    Thanks
    charles v c

    this is the code that i use
    import java.util.Vector;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.MIDlet;
    import javax.microedition.midlet.*;
    import javax.microedition.io.*;
    import java.io.*;
    public class IconsTester implements CommandListener, ItemStateListener {
    private Display display;
    private Form mainForm;
    private ChoiceGroup optionsGroup;
    private int itemNum;
    private Command CMD_NEXT= new Command("Next", Command.ITEM,
    2);
    private Command CMD_BACK= new Command("Back", Command.BACK,
    1);
    private Image newApp = null;
    private Image viewApp = null;
    private Image cancelApp = null;
    public IconsTester(Display d, Form backF)
    display = d;
    mainForm = new Form("Appointments");
    mainForm.append("Choose an action to be performed: ");
    Image[] imageArray = null;
    try {
    newApp = Image.createImage("/success.png");
    viewApp = Image.createImage("/search.png");
    cancelApp = Image.createImage("/time.png");
    imageArray = new Image[] { newApp, viewApp, cancelApp };
    catch (java.io.IOException err) {
    System.out.println(err);
    mainForm.append(new Spacer(40,40));
    mainForm.append(newApp);
    mainForm.append(new Spacer(40,40));
    mainForm.append(viewApp);
    mainForm.append(new Spacer(40,40));
    mainForm.append(cancelApp);*/
    mainForm.addCommand(CMD_BACK);
    mainForm.addCommand(CMD_NEXT);
    mainForm.setCommandListener(this);
    mainForm.setItemStateListener(this);
    display.setCurrent(mainForm);
    public void commandAction(Command c, Displayable s) {
    if (c == CMD_BACK) {
    display.setCurrent(Login.list);
    else
    mainForm.setItemStateListener(this);
    public void itemStateChanged(Item item)
    if( item.equals(newApp))
    {    itemNum = 0;
    new NewAppointment(display, mainForm);
    else if( item.equals(viewApp))
    {    itemNum = 2;
    new NewAppointment(display, mainForm);
    else if( item.equals(cancelApp))
    {    itemNum = 1;
    new NewAppointment(display, mainForm);
    }

  • Native Installer Icons

    Is it possible to use the custom icons (as with the AIR installer) on the native installer, so the .dmg/.exe installer files use these?
    Currently, there is only a generic icon with the installers.
    Thanks

    Unfortunately, this isn't available directly through AIR.  However, there are third party utilities on Windows that will allow you to modify the icon resources and it should be simple enough on Mac through File Info.
    If you'd like to see this functionality added to AIR, I'd like to suggest you add a feature request to our ideas.adobe.com page.
    Thanks,
    Chris

Maybe you are looking for

  • The music I sync into my iPod touch is all literally out of order and in the library it's not. Why is this?

    I checked the starting time for songs in the library and on my iPod and they all say 0:00. What I mean when I say it's out of order is for example, the first ten seconds are skipped and placed somewhere in the middle of the song and some other parts

  • How can I control a dc motor speed using an optical switch?

    I am trying to use LabVIEW to create a VI that controls the speed of a DC motor. The system needs to have an user set rpm and the DC motor needs to adjust the duty cycle to obtain the correct rpm dependant on the load. A disk with holes and an optica

  • Exception class help

    Hi, i create exception class like it write in the sap help and when i want to send the exception with parameters to the ABOVE METHODS i don't susses  i just get the message without the parameter ? there is simple guideline how o transfer the exceptio

  • How to unlock a disabled ipod

    my son forgot his pass work for his ipod, not it is disabled and we cant get it going. how can i do it

  • Select CLAUSE error using CURSORS & XSU.Please SEE.

    Hi, I need to create NESTED XML using the DBMS_XMLQuery package. I was instructed to use this for a Test purpose: SQL> set long 40000 SQL> SELECT dbms_xmlquery.getXML('select deptno, dname, '|| 2 'cursor(select empno, ename, sal from emp e where e.de