JWS - JNLP - icon using .ico-files?

After reading the enhancements here http://download.oracle.com/javase/6/docs/technotes/guides/javaws/enhancements6.html
I tried to use .ICO-files in the JNLP-<icon>-Tag without success. Also .PNG-files don't work.
The search with google also found only questions but no answers.
Additionally I only found samples using .GIF-files!
We want to use "rounded" pictures for desktop links, thus we need a format with transparent colors support.
Additionally we want to have the ability to use different sizes depending on desktop settings.
The .ICO-file format - out of the box - supports both of that!
Does anyone has a RUNNING sample-JNLP using an .ICO-file or .PNG-file? Or can point me to a solution to that problem?
Running: Java 1.6.0.22, Windows XP & Windows 7
Thanks in advance

Hello,
have you took the application/x-java-archive-diff MIME type into your tomcat-web.xml?
I have found this in the jnlp-specifications:
>
6.3 Version-based Download Protocol
For the version-based download protocol, all resources are uniquely identified by a URL/version-id pair. Thus, a JNLP Client can at any given time request a specific version of a resource located at a specific URL.
The JNLP Client issues an HTTP GET request that includes the specific version of the resource that it needs. The request includes the field version-id, which specifies the requested version. For example, given the following jar element:
<jar href="http://www.mysite.com/b.jar" version="2.3+"/>
then the JNLP Client must issue the following HTTP GET request14:
http://www.mysite.com/c.jar?version-id=2.3%2B
The JNLP Client must examine the HTTP response status code and MIME type to determine if the result was successful. The valid responses are described in section 6.1.2. For the above jar element, the application/x-java-archive-diff MIME type cannot be returned. It can only be returned for incremental requests.
The version string used in the request is not necessarily exact, e.g., 2.3+. The Web server must specify the exact version-id of the resource that is returned in the response by setting the HTTP header field: x-java-jnlp-version-id. The exact version returned must be one that matches the requested version string.
6.3.1 Incremental Updates for JAR files
JNLP allows incremental updates to be applied to JAR files. Typically, downloading an incremental update will be much faster than downloading the new version. Incremental updates are distributed in the form of JARDiff files, which are described in Appendix B.
If the JNLP Client has a previous version of a given JAR file already cached, e.g., version 2.2, then this fact can be specified in the request. The Web server can then potentially provide an incremental update that can be applied to the existing file, instead of returning the contents of the new file.
An incremental update is enabled by providing information about the version that is already cached by the JNLP Client in the HTTP request. The field current-version-id is used to specify the existing local version. For example:
http://www.mysite.com/c.jar?version-id=2.3%2B&current-version-id=2.2
The current-version-id must always be exact. If several versions of a given resource are in the cache, then the highest version-id that is lower than the requested version should be used. The Web server is not required to return an incremental update, but could just return the requested JAR file.
The returned contents of the response are the same as for the request without the current-version-id field, except that a JARDiff file might be returned. In that case, the response MIME type must be application/x-java-archive-diff.
>
MfG
hansmueller

Similar Messages

  • How to use .ICO files in RH7?

    Hi,
    I'm not able to add .ico images into my help topics. Ideally,
    I'd like to be able to link to exactly the same files as the
    developers.
    In a related topic, I'm also looking for a good graphics tool
    for converting .ico files to .png files.
    Any ideas? Thanks!

    Welcome to our community, Wemu
    I don't believe you will have any success just linking to the
    files. You will need to convert to .GIF, .PNG or .JPG.
    You may find the link below useful:
    www.convertico.com
    Cheers... Rick

  • Using .ico files

    I got some valuable information here on my last post, and so I thought I'd see if anyone could help me out again. I'm new to Flash, and after searching the web for awhile I think I've run into a wall - or else my lingo isn't quite right to get me down the correct path. I'm trying to find out if it's possible to use a .ICO file instead of a .PNG or .JPEG file in my Flash project. Is this even possible?
    The reason I'm asking is that the project I'm putting together uses ActionScript 2.0 code (not sure if that makes a difference or not) and displays a bunch of images for a bunch of different applications. So instead of creating a .PNG file for each application, since I've already got .ICO files on hand, I'd rather use those (saving me a ton of time). Suggestions? Ideas?
    Thanks!
    Rick

    So what about using a class like this one? Like I said, I'm new, but it appears as if this thing parses a .ICO file and displays it as a .BMP file (although it's upside down in the example .FLA file).
    http://code.google.com/p/icodecoder/downloads/list

  • Using .ico files in applications

    Does anyone know how I can create a put a .ico file in the top corner of my application?

    The general census seems to be that you need to convert the .ico to a .gif, .jpg or .png and then do the following
    ImageIcon ico = new ImageIcon("path\\filename.png");
    this.setIconImage(ico.getImage());
    Hope this is what you want.

  • Deploy Icon Using  .Jar files?

    Hi !
    i have created the .jar file using following command..
    D:\myapp\icon> jar -cvf myappicon.jar *.gif
    then 'Copy' this myappicon.jar file to the D:\frs\forms90\java directory
    then i open formsweb.cfg and edit this as following..
    [myApp]
    …
    archive_jini=f90all_jini.jar,myAppIcons.jar
    imagebase=codebase
    Then i set icon name property some button to "save" and some button to "save.gif"
    Then i start the form by giving the following URL in the Browser
    http:\\mymachine.com:7778/forms90/f90servlet?config=myapp
    then the browser show this message
    java.lang.classNotFoundException:oracle.forms.engine.Main
    Now what i should do or what are the error or what i missed??
    Do i need to make changes in registry.dat file???
    How to define default.icons.iconpath in registry.dat file give example plz??
    Please guide me
    thanks
    Rana Adnan

    Rana,
    please - no duplicate questions. Please help to keep this forum clean.
    thanks
    Frank
    Ps.: I provided an answer in the first question I found with this topic.

  • Wants to get some info about .ico file usage in InDesign

    Hi
    There is some .ico file used in a project.
    In the .rc file, resouce information is define and given a numeric id to this resouce file.
    Then this numeric id is #defined in the ID.h file and used where needed in .fr panel for display a picture on a panel. Things are working well in ms window os as I think .rc file is meant for this platform.
    But On mac what more changes I have to do in my project so that I can use these .ico files.
    Thanks

    You can use the PNG based resources, these files are platform independent files and can be used both in the MAC and Win version of your plugin. For the approach you are currently using you will have to create MAC specific resource file(.r or .rsrc) file just as you create the .rc file for windows.
    For using the PNG based resource all you need is to define a resource as follows
    resource PNGA(kYourIconResourceID) "Icon.png" in the .fr file
    and also define the "kYourIconResourceID" in the id.h file and you are all set to use the png file both in WIN and MAC plugins. All the application tools icon use png file, so this is the preferred platform independent way to go.
    Manan Joshi
    - Efficient InDesign Solutions -
    MetaDesign Solutions
    http://metadesignsolutions.com/services/indesign-development.php

  • .ico file in JLabel

    is it possible to use *.ico file for the image in the JLabel..
    I tried it but it's not working...or I am just doing it wrong..
    ImageIcon icon = new ImageIcon("image.ico");          
    JLabel image = new JLabel(icon);
    JPanel panel = new JPanel();
    panel.add(image);
    please help..thanks.

    http://www.geocities.com/marcoschmidt.geo/java-image-coding.html
    This page has a list of image encoders and/or decoders, including an .ico decoder.

  • Windows Native .ico JNLP icons

    I'm having trouble passing a Windows native .ico file as the shortcut icon for my JWS app.
    From http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4625362 and the release notes for JRE 1.6 it appears that native .ico files are supported.
    I tried every combination of kind='' tag and size that I can think of but I couldn't get it to work on my machine with 1.6. All I got was the generic Java app icon. Is a certain format of .ico required? Resolution? Any working examples out there?
    Thanks,
    Chris

    Thanks for confirming your success.
    I looked at the bug report linked earlier and could
    see no sign that anybody had actually seen a .ico
    file work.
    Is your JWS app. publicly available?
    If not, would you be prepared to either
    a) put up a small 'test app' with the .ico referenced
    in a JNLP file on your site, or..
    b) supply an .ico file that I can use in an
    example off my own site?
    It might be handy to have at least one link on
    that bug report thread that shows how it is done
    and provides a testable example.

  • Icon (*.ico) files in developer 6i

    Hi Guys and Gals,
    I have just installed developer 6i on my computer which runs with Windows 98 operating system. Every thing works properly but only one funnything is i found only four or five icon files (.ico) in my harddisk. Then searched in the windows registry to see in which directory these icon files are located, unfortunately i couldn't find out any registry entry for icons. (It's usual - If icon's are not there means why registry entry for icons?.) So now my toolbar buttons are almost naked except save and exit buttons, i don't know from where only these two buttons got icons.
    Any one had the same problem?
    Please give me a solution.
    With regards
    Rahman.
    null

    Hi,
    The icons in webforms have to be in .gif or .jpg format. This is because the webform user interface is handled by java and java uses .gif or .jpg instead of .ico files.
    In order to display icons on web, you will have to set the icons path in Registry.dat file. The Registry.dat file is located in ORACLE_HOME\FORMS60\JAVA\ORACLE\FORMS\REGISTRY\.
    You need to create a directory mapping for the web listener and add the virtual directory to the 'iconpath' setting in the Registry.dat file.
    For eg, if you have the following directory mapping in your web listner,
    C:\ORANT\webdb\images\ /images/
    then, edit the Registry.dat file as follows,
    default.icons.iconpath=/images/
    Now, all the icons are searched in C:\ORANT\webdb\images
    Note that, when you change the Registry.dat file, you need to stop and restart the Forms server listener in order for the changes to become active.
    Hope this helps.
    Best Regards,
    Deepak Rai
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Tomzl:
    I work with forms 6i. In client server option icons are visible. In web option I can't see icons.<HR></BLOCKQUOTE>
    null

  • How to save the Icon  to database or .ico file?

    hi
    I get Icon instance by using
    Icon myIcon= FileSystemView.getFileSystemView().getSystemIcon(new File("J:/Program Files/XPSTool/XPSTool.exe"))
    but I not know how to save the myIcon to the database or a .ico file ;
    please help me !!!!!!!
    thanks vey much .

    Doublepost: http://forum.java.sun.com/thread.jspa?threadID=790795

  • Why won't my favicon show up when the code and the favicon.ico file are correct? I am using Dreamweaver CC.

    I have tried numerous .ico file makers and am using the code <link rel="shortcut icon" href="/favicon.ico" /> in the <head> section and the favicon.ico sits above the index file, but it is not showing up on the tab in Firefox or IE. I have also tried numerous designs, as I thought that might be the problem -- here are a couple and . What am I doing wrong? I have tried everything and Googled everything. I also use PC, but I hope that doesn't stop the Mac users from helping me.

    Thank you Jon. As I mentioned to Nancy, the Favicon finally showed up this morning. But also thank you for another time saving piece of advice that saved me a lot of time and effort and is not mentioned anywhere. You are so right, "There's really no reason to add the code in the <head> if the favicon.ico is in your site root. Simply placing it there will do the trick in all browsers." I only put the code on my index page because I wasn't sure it would ever show up, and lo and behold, when it finally did this morning, it did on all pages and they had no code.
    It is unfortunate that on all the websites (and I read what felt like all of them) dealing with Favicons, no one mentions these points. It's simple
    create the 16px by 16px favicon.ico
    Place it in the site root
    Empty your cache and bookmark the page
    Wait -- it will show up, possibly the next day.
    Margaret

  • Is there a way to use my own PNG and/or ICO files within the TouchSmart software?

    I have an IQ526 running Windows 7 x64.
    Everything runs great... except the mechanical Volume Up/Down/Mute on the unit's right-hand side has stopped working... but that's not my question.
    Actual Question:
    Is there a way to add some of my own PNG or ICO files to use within TouchSmart.
    Some programs have the ugliest default icons so I'd like to make things look a little nicer.
    Any help would be greatly appreciated.
    Mel C.

    Hello XCroupier:
             No you can not use your own pictures in Windows 7 for icons. Only as desktop background. Microsoft took a way that feature from us. If you upgrade to Windows 7 Ultimate and download XP mode the windows xp theams will work only if they are compatible to graphic card. In HP Touchsmart 3 software click on personalized and then on create a tile. Then click windows program then click on advance. Few more  choices icons will display. Not knowing the icons format doesn't help us. Not only that but there isn't a way to add them into icon window. Thanks to microsoft for taken our creative ways of setting up our own destop like XP Version had. frrw

  • How to disable print icon in pdf file, which is created using servlet

    Hai,
    I have created one pdf file using HttpServletResponse.setContentType("application\pdf"). I want to disable the toolbars of the created pdf file. I want to disable the print, save and other icons in pdf file. Can anybody help me to resolve this problem.
    Thanks,

    I got the pdf into my workflow in a binary data and i passed this binary data to the function module so_document_attacthment_ap1.
    in that i am specifing that the file type is .pdf and i received mail with the pdf attachment too.

  • Using the file icon instead of the Thumbnail icon

    is it possible to use the file icon instead of the thumbnail icon on the desktop? If so, how?
    Thanks,
    Travis

    View menu --> Show view options --> Show Icon preview --> uncheck it

  • PROBLEM : JWS & JNLP Used to Load Application To User System

    Please See The Following Page That has my Problem mentioned in Detail Regarding JWS & JNLP Problem.
    http://forum.java.sun.com/thread.jspa?threadID=782060
    Just Let me know the SOLUTION PLZ ! ! ! ITS UTMOST URGENT

    PLZ HELP THIS IS URGENT !1) Please stop SHOUTING at us, and realise that
    something that is URGENT to you is URGENT to
    you, but nobody else!
    2) If this problem is so urgent to you, it might have
    been a better idea to answer zadok's question than
    reply with a message shouting your urgency.
    For example, if you had said something like..
    "Sorry, I made that post on the other forum before
    I knew about this forum. This forum seems better
    for my question."
    You might have got response like ..
    "Sure. Please make sure you add a 'conclcusion'
    to the other thread, like 'message moved to XYZ forum'."
    (you might not get that response, as well, but it is
    always worth a try - also note the hints in the reply!)
    I have created a Download Manager Apllication using Swings.I do not know where the term 'Swings' originated,
    but note that it is the 'Swing' toolkit.
    I have deployed it using Java Web Start & JNLP.
    Now, I am facing the following problem for which I
    am not able to find any solution.
    HOW CAN I SAVE THE APPLICATION STATE ON LOCAL SYSTEM ???(again with the shouting..)
    The PersistenceAPI should be good for that.
    http://java.sun.com/j2se/1.5.0/docs/guide/javaws/jnlp/javax/jnlp/PersistenceService.html
    I have a sandboxed project that uses it to store
    the GUI state on shut-down and restore it at start-up.
    http://www.1point1c.org/spacesim/
    Note that while the applications launched by
    'spacesim.jnlp' uses the PS, it is
    a) not intended as an example of using the
    service, and the code is vastly more complicated
    than what you require for storing/restoring an URL
    and byte count.
    b) not available with 'support'.
    You might be able to find some better example of
    using the PersistenceService by searching either
    here or Sun's site on (something like)
    "PersistenceService example"
    If those search terms don't work for you, drop
    back into the forum and someone might be able to
    suggest better ones, or a direct link.
    But please stop shouting at us.

Maybe you are looking for

  • Multiple ipods on same pc?

    I have 3 ipods on the same computer. how do I set them up so they each have their own itunes library - i.e. so they don't necessarily share songs? It's a problem because they have different gb's. my running ipod has only 8 gb, my home ipod has 160, a

  • How to delete all emails in one click

    I did a search but couldn't find anything. Is it possible to "select all" in the email application when you want to delete a bunch of unwanted emails? Instead of having to click edit edit and click each one individually? Thanks so much for your time

  • Is iTunes the problem?

    Hi All Is iTunes responsible for causing all of the issues with my mail and iTunes wiping when starting the computer? Since I upgraded to Snow Leopard, I have had nothing but crashed mail and iTunes causing the library and mail list files to corrupt.

  • Iphoto slideshow no music possible ...

    in iPhoto I can only use the tidbits of music that was delivered with iPhoto but not  o n e  of my own songs or playlists. They show up but don't play. I have already played around with div. aple.com.playlists but without success. I hve deleted iPhot

  • What about owners of  RawShooter Premium 2006?

    Hello, there were rumours about special offer for "RawShooter Premium 2006" owners. Does this offer exists? Thanks in advance for your hints. Bye, Lavrentios Servissoglou