Icon size in JNLP file.

Hi! I change the attributes 'width' and 'height' in the tag 'icon href', but the size of icon not change, why? Anybody can hel me?? Thanks.

The width and height attributes for icons in the jnlp
file are hints to the implementation (java web start)
to aid it in only downloading the icons it needs.
They are not directives to the implementation to tell
it how large to display it. The current version of
Java Web Start dosn't use these hints at all.What version of WebStart were you referring to? I am running 1.0.1_02 (build b03) and I am wondering if these hints will be used.

Similar Messages

  • Icon tag in jnlp file

    Hello all.
    I've been trying to include a custom icon with my web start application by using the <icon href="/images/camera.gif"> tag in the jnlp file. The image is included in the .jar file properly and then in the .war file, but the default web start icon always shows up instead (ie: on the desktop, start menu, and in the Java Web Start launcher).
    Does anyone have any hints on what might be going on?
    Any help will be greatly appreciated!
    Thanks.
    Chris
    [email protected]

    I'm having a similar problem ... but I think the .jnlp is structured right...
    gfpr.jnlp file...
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for gfpr applet -->
    <jnlp
    spec="1.0+"
    codebase="$$codebase">
    <information>
    <title>Financial Planning & Reporting Accelerator</title>
    <vendor>Unilever Cosmetics International</vendor>
    <description>GFPR Applet</description>
    <description kind="short">The client applet for GFPR.</description>
    <icon href="minesweeper32.gif" width="32" height="32" />
    <icon href="minesweeper64.gif" width="64" height="64" />
    </information>
    <resources>
    <j2se version="1.3"/>
    <jar href="gfprclientapplet.jar"/>
    <jar href="xerces.jar"/>
    <jar href="xalan.jar"/>
    <jar href="log4j.jar"/>
    <jar href="jdom.jar"/>
    <jar href="uciutilities.jar"/>
    <jar href="f1j9swing.jar"/>
    <jar href="crimson.jar"/>
    <jar href="jaxp.jar"/>
    </resources>
    <applet-desc documentBase="$$codebase"
    name="GFPR applet"
    main-class="com.unilever.uci.gfpr.presentation.fprAccelerator"
    width="760"
    height="400">
    </applet-desc>
    </jnlp>
    WAR structure....
    /app/gfpr.jnlp
    /app/minesweeper32.gif
    /app/minesweeper64.gif
    /app/****.jar (all the referenced jars)
    /META-INF/MANIFEST.MF
    /WEB-INF/web.xml
    /WEB-INF/lib/jnlp-servlet.jar
    anyone have any ideas ??
    thanks
    dave

  • Icon size for audio file insert on a PDF page.

    Acrobate X V10.1.9 Windows 7.
    I wish to insert an audio file on a pdf page. I select "multimedia", "sound". Get the window to select the file. Once selected I then find that I cannot size the icon that appears on the page (click to play). The two fields are grayed out. If I click "OK" it results in a very large "click to play" icon. I cannot resize the icon on the page..
    Does this function require C++? Have been getting an error message on PC startup about something being in error. I click OK and all seems to be working ok.
    Any ideas?
    Thanks,
    Joe

    You can crop it, but the size will not change to letter. However, after cropping, you can print with expand to fit page selected. If you like you can expand this to a new PDF using print, though not generally the recommended approach. Do you have any idea how it was reduced in the first place? If so, have you tried the reverse process?

  • Icon size ('open file' window)

    As a newcomer to ML, I have found that the icon size in 'open file' windows is far to small to identify jpg image files
    I have increased the icon size that appears in finder windows when set to 'icon view', but this makes no difference

    I have found a workaround answer to this in the 'preview' function activated by the space bar, but when using the File>open panel to select files for upload to a website, it only works on 1 file at a time
    So I would still be grateful to anyone who knows how to increase the icon size

  • Small Icon sizes in Open Dialog Box

    When I upgraded from Snow Leapard to Lion I was very impressed that the icon sizes in the File->Open dialog boxes varied in size (per folder) on how you viewed them in Finder. For example, I would set my Finder Pictures folders and contents to a larger icon size to see them easier, then when I would open Photoshop and use the File->Open menu option, the icons would be the same size as how I viewed them in Finder.  It was beneficial to have a larger icon to view pictures when I would use File-> Open in Photoshop to select a photo. Since I have upgraded to Mountain Lion, it seems this feature has gone away?? It went back to the way it was with Snow Leapard. All icons are really small no matter how you view them in Finder.
    Is there a way to change the icon sizes in the Open/Save dialog boxes to be larger in Mountain Lion? Possibly using the command prompt? Please help?!

    I've used the Quicklook to get a larger image, but it's still not as convenient as it used to be with Lion. I'm confused on why the change was made to go back to small icons as a default?  When using Lion, you could have the icon size whatever you wanted.

  • .jnlp file will not open with java

    I am in a class that is requiring us to open a .jnlp simulation. I have tried everything that I can think of and I cannot get this to open. please help!

    To lower the risk of malware infection, Safari now downloads Java WebStart application files to a hidden temporary folder and does not open them automatically. Although you may find instructions on the Internet for defeating this protection, I strongly advise against doing so.
    The right way to launch a WebStart application is to click the Downloads button at the right end of the Safari toolbar and then double-click the icon of the JNLP file you just downloaded. If you want to save the file for later use, click the magnifying-glass icon to reveal it in the Finder, and then move it. Otherwise it will be deleted at the next login.
    In order for this method to work, you must first have selected
    Safari ▹ Preferences ▹ General ▹ Remove download list items: Manually or When Safari Quits

  • How to get around safari no longer launching jnlp files with 6.0.3?

    I'm both a user of Java Webstart applications and a publisher (at work and for private projects)
    Given the latest update to Safari that no longer launches a JNLP file I've had no choice but recommend that my clients switch to Firefox or Chrome in order to continue using the Java Webstart applications.
    The fact that clicking the button or link to launch the JNLP appears to do nothing, that sometimes the JNLP is downloaded and other times not, and it never launches webstart,  makes it impossible to support clients and makes the applications appear completely broken.
    Is there no workaround to this? Some way to get Safari to run the JNLP file?

    For security reasons, WebStart application files are now downloaded to a hidden folder and are not launched automatically. Although you may find instructions on the Internet for defeating this protection, I strongly advise against doing so.
    The right way to launch a WebStart application is to click the Downloads button at the right end of the Safari toolbar and  then double-click the icon of the JNLP file you just downloaded. If you want to save the file for later use, click the magnifying-glass icon to reveal it in the Finder, and then move it.

  • How to set  max-heap-size outside the jnlp file?

    Due to bug_id=6631056 It may not be possible to specify max-heap-size within
    the JNLP file for certain jnlp java applications.
    Are there other possibilities to specify this Jvm parameter?
    In the ControlPanel there is the possibility to specify Xmx for applets but not for jnlp.
    I have tried to add properties like
    "deployment.javaws.jre.0.args=Xmx\=128M" without success
    Many thanks

    Even in JNLP also you can specify the max heap size
    <j2se version="1.5+" initial-heap-size="128m" max-heap-size="512m"/>
    Thanks,
    Suresh
    [http://sureshdevi.co.in|http://sureshdevi.co.in]

  • Files icons size is 512 x 512 with maximum grid space???

    After updating from Snow Leopard to Lion all my files in the folders is rearranged and files icons size is 512 x 512 with maximum grid space. I adjusting each folder icon size back to normal but after reopening that folder all files is out of order again.  Is anybody experience same issue?
    Also I have brand new battery in my 17" MBP and OS Lion eat battery like a cake.

    I believe this has been brought up many times, aand no solution has been found.
    More Like This According to ASC
    File Vault Resize
    Re: Icon view in Finder - larger maximum icon size?
    dock applications smaller icons
    Re: change size of icons on Dock grid view
    Re: anyone know how to get lion to calculate all hd sizes in grid view?

  • Syntax of the JNLP file (web start) for JFX to allow desktop shortcut/icon?

    I'm having a hard time getting this to work. I'm using NetBeans v7.1.2. First of all - the resulting .jnlp file comes with the applet, as well as the application specification. The classloader is different in both of the cases from what I've seen.
    <applet-desc width="800" height="600" main-class="com.javafx.main.NoJavaFXFallback" name="jwsapp" >
    <param name="requiredFXVersion" value="2.0+"/>
    </applet>
    <jfx:javafx-desc width="800" height="600" main-class="jwsapp.Main" name="jwsapp" />
    What I did was edit out the applet part - now there is no entry in the "Type" of application in the javaws cache, it's simply blank. And it's still launched as an applet (judging by the console trace). Now we have "<jfx:javafx-desc", instead of application-desc? What does that affect? Is it safe to just fallback to 'application-desc' (then the type is properly detected)? I haven't been able to find any info on this whatsoever.
    Shortcuts.. I have Java 2.1.1 installed and this:
              <shortcut online="false">
                   <desktop/>
              </shortcut>
    does absolutely nothing for me. The shortcut never appears (even though this addition to .jnlp was designated by NetBeans). Moreover, how would I go about attaching icons to this shortcut?
    Does anyone have a working .jnlp example, that is actually able to allocate a shortcut with a predefined icon on the desktop? Thank you.
    Edited by: 919083 on Aug 12, 2012 5:06 AM
    Edited by: 919083 on Aug 12, 2012 5:07 AM

    It works fine for me.
    I'm using latest FX samples and latest 7u6 on Mac OS X.
    Tested with slightly modified version of BrickBreaker.jnlp that includes
    <shortcut online="false">
    <desktop/>
    </shortcut>
    and the shortcut is always created to me.
    Could you please try the latest 7u6 build?
    If it's still reproducible, please file a new bug at http://javafx-jira.kenai.com/
    and also could you please attach an example to reproduce the problem?

  • ML: No longer one can enlarge icon size in file dialog window (open, save)

    There is this useful document preview used for displaying the file icons. This is important when I open PDF and image files. But in the file dialog window (open, save) the is no more the option to enlarge the size of the icons in icon view. Large icons are most import even on opening files, so I get a nice and detailled preview to choose the right file. But especially in the file dialog window the option has gone to set the icon size! What a mess! This makes no sense. Cannot use large icons (previews) where I need them most.

    Open a new finder window. Click "View" menu select "Show Status Bar".
    Voila!

  • Update after max heap size change in jnlp file

    Hi,
    we added max-heap-size="256M" to an already via Web Start deployed application (meaning all required clients are using the application already). This attribute was the only change to the jnlp file, the application (the jar file) didn't change as well. Do clients notice this change and resize their max heap size? If not, would an application update (a new jar file) change that and the clients would update their heap size settings? Or is their any other way without uninstalling and installing the application again to notify the clients about this change?
    Thanks a lot! dos

    yes - a modified jnlp file (assuming the jnlp element has an href) will be downloaded the next time each of the clients use the application.
    /Andy
    If there is no href to the jnlp element in the jnlp file, the change will only be picked up by people who launch the app from a link on the web (as opposed to a shortcut)
    /Andy

  • Is there a way to change a single file/folder's icon size?

    Is there a way to change a single file or folders icon size independant of the rest? So say, you want the HD's on the desktop to be larger than the other files icon sizes?
    I know about view options but thats not quite what I'm looking for.
    Is there a way to do this through terminal, or an aftermarket program?

    Given up on the option

  • Always prompted to save JNLP file

    Hello! We have a simple servlet that basically just queries a few things off of the HttpServletRequest and spits back a dynamically generated JNLP file. For some reason, when we were running with Tomcat 4.0.6 this worked fine, but with the upgrade to Tomcat 4.1.29 it does not. IE always prompts to open or save the file - it never just launches JWS automatically anymore.
    Any suggestions on what we can fix? I'll put the interesting parts of the servlet below.
    Thanks in advance!
    -Angelina
    Servlet:
    public class JNLPServlet extends HttpServlet{
        public void doGet(HttpServletRequest request, HttpServletResponse response)
           throws IOException, ServletException {
            try {          
                response.setHeader("Cache-Control", "public");
                response.setContentType("application/x-java-jnlp-file");
                String sessionId = getSessionId(request);
                ServletOutputStream out = response.getOutputStream();
                java.net.InetAddress[] hostNetAddrs =
                              java.net.InetAddress.getAllByName(request.getServerName());
                String hostIpAddr = hostNetAddrs[0].getHostAddress();
                out.println(generateJNLP(sessionId, request.getServerName(),
                                         hostIpAddr, request.getRemoteUser()));
                out.flush();          
            catch (IOException ex) {
                response.sendError(javax.servlet.http.HttpServletResponse.
                                   SC_SERVICE_UNAVAILABLE, ex.getMessage());
            catch (Exception ex) {
                response.sendError(javax.servlet.http.HttpServletResponse.
                                   SC_INTERNAL_SERVER_ERROR, ex.getMessage());
        protected String generateJNLP(String sessionId, String host, String ip, String userName){
            StringBuffer buf = new StringBuffer();
            buf.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
            buf.append("<jnlp spec=\"1.0+\" codebase=\"http://" + ip + ":80/cmv2/\">\n");
            buf.append("<information>\n");
            buf.append("<title>App V2.3 on " + host + "</title>\n");
            buf.append("<vendor>EMC Corporation</vendor>\n");
            buf.append("<homepage href=\"http://www.emc.com\" />\n");
            buf.append("<description>Program for monitoring performance.");
            buf.append("</description>\n");
            buf.append("<icon href=\"cm.gif\" width=\"32\" height=\"32\" depth=\"3\" size=\"1k\" />\n");
            buf.append("<offline-allowed />\n");
            buf.append("</information>\n");
            buf.append("<security>\n");
            buf.append("<all-permissions />\n");
            buf.append("</security>\n");
            buf.append("<resources>\n");
            buf.append("<j2se version=\"1.4+\" href=\"http://java.sun.com/products/autodl/j2se\"");
            buf.append("initial-heap-size=\"64m\" max-heap-size=\"194m\" />\n");
            buf.append("<property name=\"host_name\" value=\"" + host + "\"/>\n");
            buf.append("<property name=\"host_port\" value=\"80\"/>\n");
            buf.append("<property name=\"host_IP\" value=\"" + ip + "\"/>\n");
            buf.append("<property name=\"secure_host_port\" value=\"443\"/>\n");
            buf.append("<property name=\"session_id\" value=\"" + sessionId + "\"/>\n");
            buf.append("<property name=\"user_name\" value=\"" + userName + "\"/>\n");
            buf.append("<jar href=\"cmv2.jar\" />\n");
            buf.append("<jar href=\"ohj-jewt-4_1_9.jar\" />\n");
            buf.append("<jar href=\"help-4_1_9.jar\" />\n");
            buf.append("<jar href=\"oracle_ice-5_06_3.jar\" />\n");
            buf.append("<jar href=\"emcshared.jar\" />\n");
            buf.append("<jar href=\"xerces.jar\" />\n");
            buf.append("</resources>\n");
            buf.append("<application-desc main-class=\"com.emc.wclient.Login\">\n");
            buf.append("</application-desc>\n");
            buf.append("</jnlp>\n");
            return buf.toString();
    }

    The underlying problem is a combination of tomcat 4/5 being more standard and IE being less standard. Tomcat changed to automatically add ";charset=ISO-8859-1" to the end of the Content-Type header while IE appears to not correctly process the Content-Type header.
    IE maintains a list of known MIME types in the registry under [HKCR]\MIME\Database\Content Type. There you will find an entry for 'application/x-java-jnlp-file' which indicates that this MIME type is treated as a file with the suffix '.jnlp'.
    Unfortunately, IE treats EVERYTHING after the Content-Type: as the MIME type NOT just the stuff between the ':' and the ';'. Thus instead of looking for a registry entry for 'application/x-java-jnlp-file' it winds up looking for 'application/x-java-jnlp-file;charset=ISO-8859-1" and doesn't find it.
    If you duplicate the 'application/x-java-jnlp-file' entry with the name 'application/x-java-jnlp-file;charset=ISO-8859-1' everything works. Alternatively, if you make sure the 'file name' portion of the URL which requests the jnlp spec has the suffix '.jnlp' IE will work correctly. If you are generating the jnlp spec via your own servlet you can control the behavior of Tomcat by calling 'setCharacterEncoding(null)' on the response object (note this is not a method of the HttpServletResponse interface, you have to cast to the underlying concrete type).
    So, I think IE's use of the 'suffix' is non-standard and IE's handling of the Content-Type header field is just broken. If you can make the requesting URL have the .jnlp suffix you are ok; otherwise, there does not appear to be a good solution.

  • JNLP file version based update like Jar files version?

    Dear All,
    We are using the JWS from the past one year. Its working fine except one or two issues.
    Here i am explaining one of those issues:
    When user double clicks the icon on his desktop, first the JWS checks for updates. If updates found it will download the updates and starts the application.
    JWS doing the updates checking as:
    First its checking the time stamps of the client and server JNLP files. If server JNLP file time stamp is grater than client JNLP file time stamp, then its checks for each and every jar file update.
    For Jar files update we are using the version based. Our JNLP file is as shown below:
    <jnlp spec="1.0" codebase="$$codebase" href="LaunchMedplexus.jnlp">
    <information>
    <title>CBST</title>
    <vendor>CBST</vendor>
    <description kind="short">CBST</description>
    <icon href="../../../../images/image1.gif" kind="splash"/>
    <icon href="../../../../images/image1.jpg"/>
    <offline-allowed/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.4" initial-heap-size="48m" max-heap-size="256m"/>
    <jar href="../../../../JARS/AppJars/POMS/admin/admin.jar"      version="7.7.0.0" />
    <jar href="../../../../JARS/AppJars/POMS/billing/bil_adj.jar"      version="7.7.0.0" />
    </resources>
    <application-desc main-class="com.test.security.Login">      
    </application-desc>
    </jnlp>
    we are facing the problems because JWS updates checking is based on the JNLP file time stamp.
    is there is any way in JWS to check the updates based on JNLP file version instead of timestamp (like jars version based)?
    Our Environment is :
    JRE : 1.4.2_10
    OS : Windows 2000/XP
    thanks in adavance
    Krishna Mohan.

    Dear Andy,
    Thank You for your reply.
    perhaps you can use a simple jnlp file that referre to almost all of the application using a versioned jnlp component extension.can you explain this line little more elaborately.
    thanks in advance
    km

Maybe you are looking for

  • Ipod cannot find music files

    I just updated to iTunes 12.1.1.4, and once again, I plug in my iPod and my music went from over 2500 songs to 174!! ABSOLUTELY FRUSTRATED! Restore did not work. I click on music files on my iPod and I get the icon but there is no option to "find" th

  • Error:  cannot read:  HelloApp.java

    Having written the HelloApp.java file and placed it in the bin with javac.exe, I can't seem to get it to compile. Use of the files from the demos directory doesn't work either, same error. I assume the path is set up okay since javac runs, so can you

  • Whee is the 'Find in page' function in safari ios7?

    I'm unable to find the 'find' function in the updated ios7 safari? Can bony body help? Thanks.

  • Probably asked before: debugging external AS files

    Ive searched and searched first off so I didnt just directly add a new post I cant for the life of me debug my actionscript classes. I have an AS file with an existing package so it created a folder with the actionscript file inside. The actionscript

  • ABAP: Dynamic creation of transparent container

    Hello, I have this code and it fails (null pointer exception): transparent_container = cl_wd_transparent_container=>new_transparent_container( ).   cl_wd_grid_data=>new_grid_data( element = transparent_container ).   ui_container->add_child( transpar