Why Java Web Start doesn't support Pack200 out-of-the-box?

Hello All,
Why Java Web Start doesn't support Pack200 out-of-the-box? I was hoping that Java 6 would make things easier by adding direct support for Pack200 in Java Web Start and JNLP without needing to use servlets, etc.? All my clients are Java 5 or above so I can't push the Pack200 compressed version of the jar to every single one of them and there is no selection process needed. But I can't do it because of the servlet or complex Apache server setup requirement (it would be a headache to get customers' web server admins to set up Apache or whatever web server that way).
My question is why is there unwillingness to add Pack200 support directly to Java Web Start and JNLP so that you can start Pack200 compressed jars just like you would start any jar using Java Web Start? Is te a technical problem?
Thank you,
Mete Kural

Hallo,
I didn�t try it, but the webstart FAQ�s read:
Can I use Pack200 compression with the JnlpDownloadServlet?
Yes. The JnlpDownloadServlet distributed in the samples directory of the JDK now supports Pack200. If you deploy yourfile.jar along with yourfile.jar.pack.gz the packed file will be downloaded when the client is running Java Web Start 1.5.0 or later.
http://java.sun.com/javase/6/docs/technotes/guides/javaws/developersguide/faq.html#217
For further information you may want to look at
http://java.sun.com/javase/6/docs/technotes/guides/javaws/developersguide/downloadservletguide.html#pack200
The configuration of the server and the the servlet (as described in the second link) is as easy as it seems.
I got it working on the first try and it was my first experience with websevers at all.
Bye Schippe
Message was edited by:
Schippe

Similar Messages

  • Java Web Start doesn't run by clicking on the link, how can I fix it?

    Hello,
    I've been trying to make a Java Web Start application, I finished everything, but when I click on the link which is connected to the jnlp file, it only displays the XML code in the explorer instead of running the program. But if i download the jnlp file and double click it, it starts the Java Web Start. Anyone can tell me how to fix this?
    I thought may be JRE installation, but I tried to click on some sample on the web, it works fine for other Java Web Start application, but not mine.
    Thanks you.
    Kit

    Does your webserver know about JNLP? You need to map the .jnlp extension to "application/x-java-jnlp-file".
    See the Web Server Setup section of http://java.sun.com/developer/technicalArticles/Programming/jnlp/

  • Why sun leader do not think about  "Why Java Web Start not be used widely"

    {color:#ff0000}Why sun leader do not think about "Why Java Web Start not be used widely"
    {color}
    Java Web Start was instruduced in jdk1.2, it's about ten years ago,But it's still not widely used--WHY?
    it's not because the design, it's becasue the code--the garbage code-- even the last version not work in many user computers,
    just not work suddendly -- noboday know reason--- if you do not believe, please google internet, many people suffered and suffering from web start!
    It's incredible that a famous big company like sun can not resolve an deployment problen in ten years that some very small company can do good work in much more short time !!!
    That' sun-- always say and design good things, then publish trouble and pain to their users. I really do not know what the sun's engineers are doing in so
    many years! -- why they do not know deployment is so important than others -- if deployment work fine, then the wrong thing can be correct easy !
    Sun, please do an famous big company -- give happy to user rather than pain !!! Please give us -- your users an stable and fast java web start to save us.
    {color:#ff6600}(Note: I use java web start to depoly our application, then receive endless complains, not work, slow and so on. now, we has no way just to give it up--design ourself's deployment-- that's also done by many pained people---just google it){color}
    Here is an desing suggestion:
    Client-end should be simple and stable, should let the server-end do complex thing .(now sun do opposite thing, they make Client-end complex, but server simple) ---it's because that Client-end will take widely effect on user's computer. update a few server is much more easy then update a amount of clients!
    Edited by: Jethro-Soft on Jun 30, 2008 8:49 PM
    Edited by: Jethro-Soft on Jun 30, 2008 8:52 PM

    Please check:
    http://joust.kano.net/weblog/archive/2006/04/06/why-i-will-never-deploy-with-java-web-start-again/
    http://kylecordes.com/2006/04/08/auto-update-no-web-start/

  • Just started up my Mac Mini out of the box, using a USB windows keyboard, it will not recognize letters so I am unable to enter serial number.  Anything I can do to get the mini mac right out of the box to recognize the windows keyboard?

    Just started up my Mac Mini out of the box, using a USB windows keyboard, it will not recognize letters so I am unable to enter serial number.  Anything I can do to get the mini mac right out of the box to recognize the windows keyboard?  Do I have to buy an Apple Keyboard to get it to work right out of the box?

    Is this a normal USB keyboard or is there anything specialized about it? Does this keyboard require you to install any special software to use it on a Windows box? Or is it usually a plug & play keyboard?
    Normally if a Mac does not recognize a keyboard it asks you to press certain keys to identify the keyboard. What is happening on screen with this keyboard? What serial number are you referring to?

  • Java Web Start doesn't start

    I have installed Java 7 update 51 in Mac OS X 10.7.5. Yesterday Java Web Start starts well but today doesn't start. /Library/Application Support/Oracle/Java/javaws displays this error:
    Bad Installation: JAVAWS_HOME not set.

    Hi,
    I found some stuff, but it didn't work for me. Maybe you can give it a try.
    1. Deactivate Proxy
    Add or edit javaws.cfg.proxy.setting=NONE in the javaws.cfg file.
    2. Deactivate Splashscreen
    Add option "-Xnosplash" in the Windows registry for the .JNLP ending, i.e. "C:\Program Files\Java Web Start\javaws.exe" "-Xnosplash" "%1"
    3. Run with Java VM
    I created a .BAT file:
    SET JWS=C:/Programme/Java Web Start
    java -cp "%JWS%/javaws.jar" "-Djnlpx.home=%JWS%" com.sun.javaws.Main %1
    To run Java Web Start simply run the .BAT file. To run a specific application run the .BAT file with the complete URL of the .JNLP file.
    If this works for you, please drop a note here! Thanks!
    Bye
    Markus

  • Application started using Java Web Start doesn't launch the first time

    I have a Facebook photo uploader application that I plan to distribute using Java Web Start. I'm using Java 6u4 on Windows XP SP2 with 2GB of RAM. I have Java 6u3, Java 6u4 and Java 5 u14 installed and I'm sure the one used is Java 6u4.
    I signed my application and make use of all security settings.
    Here is my JNLP file:
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0+"
         codebase="http://www.antaki.ca/bloom/jars"
         href="http://www.antaki.ca/bloom/Bloom.jnlp">
    <information>
        <title>Bloom</title>
        <vendor>Carl Antaki</vendor>
        <icon kind="splash" href="http://www.antaki.ca/bloom/Bloom.jpg"/>
        <icon href="http://www.antaki.ca/bloom/bloom32.jpg"/>
      <shortcut online="false">
      <desktop/>
      <menu submenu="Bloom"/>
      </shortcut>
    </information>
        <resources>
            <j2se version="1.5+" initial-heap-size="32m" max-heap-size="128m" href="http://java.sun.com/products/autodl/j2se" />
            <property name="sun.java2d.d3d" value="false"/>
            <jar href="http://www.antaki.ca/bloom/jars/Bloom.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/BrowserLauncher2-1_3.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/SmartProgressMonitor.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/facebook.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/forms-1.1.0.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/json_simple.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/swing-worker-1.1.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/glazedlists_java15.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/swingx-0.9.1.jar"/>   
            <jar href="http://www.antaki.ca/bloom/jars/jhbasic.jar"/>
       </resources>
    <security>
         <all-permissions/>
      </security>
    <application-desc main-class="ca.antaki.www.bloom.gui.Bloom" />
    </jnlp>Here is the link for my application http://antaki.ca/bloom/Bloom.jnlp
    The first time the application is installed using a link on the browser it's downloaded then the certificate dialog is shown, after that I check the checkbox to accept the certificate permanently. The application doesn't load, it only loads the second time although I see it in the task manager. If I don't accept the certificate permanently it does load. This happens on both Firefox 2 and IE 7. I enabled the console and logging but nothing shows up there.That's really a weird problem, I wonder if Java Web Start is a viable deployment option, it does have great capabilities such as autoupdate but still seems to have important bugs.
    Does anyone have any clue about what is going on.
    The problem doesn't occur on Ubuntu 7.10.
    Thanks,
    Carl Antaki

    >
    You were right my XML file was not correct. I still couldn't find a valid JNLP validator. Sun has to provide that.>No they don't (have to supply a validator for their own document type, though it makes sense to do so), but yes they do (provide a tool that validates XML against schemas). Java can validate XML against a DTD or XSD.
    Check these two threads (and chase the links) for more details.
    JNLP xsd schema
    <http://groups.google.com.au/group/comp.lang.java.programmer/browse_thread/thread/c6f65bf1df5f105d/30c6b7e2dc342dc4>
    Validate XML against DTD? XSD OK. SSCCE.
    <http://groups.google.com.au/group/comp.lang.java.programmer/browse_thread/thread/5b997a1edb765b11/e831f3066eb4aa38>
    Look especially for the posts by Piotr Kobzda.
    I had a tool on my site based largely on Piotr's codes, that linked to a valid JNLP DTD and XSD, but unfortunately my site is offline at the moment. Andy assures me that the JNLP 6.0 DTD has been corrected for the developer ..download tutorials of web start, though the online (web site) version may still be invalid.

  • Java Web Start doesn't start (Windows XP)

    Hi,
    I've installed Java Web Start on a Windows XP machine. When I try to run an application or I try to open Java Web Start directly the "Java Web Start" splash screen appears for a few seconds and than disappears and nothing else happens.
    I heard that other people using Windows XP have the same problem. Can anyone help?
    Java Runtime is 1.4.0, but I also tried some other runtimes as well with the same result.
    Thanks in advance
    Markus

    Hi,
    I found some stuff, but it didn't work for me. Maybe you can give it a try.
    1. Deactivate Proxy
    Add or edit javaws.cfg.proxy.setting=NONE in the javaws.cfg file.
    2. Deactivate Splashscreen
    Add option "-Xnosplash" in the Windows registry for the .JNLP ending, i.e. "C:\Program Files\Java Web Start\javaws.exe" "-Xnosplash" "%1"
    3. Run with Java VM
    I created a .BAT file:
    SET JWS=C:/Programme/Java Web Start
    java -cp "%JWS%/javaws.jar" "-Djnlpx.home=%JWS%" com.sun.javaws.Main %1
    To run Java Web Start simply run the .BAT file. To run a specific application run the .BAT file with the complete URL of the .JNLP file.
    If this works for you, please drop a note here! Thanks!
    Bye
    Markus

  • IPod Touch 1st Generation doesn't work directly out of the box?

    I just bought a first generation iPod touch and first things first I plug it into my PC. Nothing happens on the iPod and on iTunes I immediately get a message saying "iTunes has detected an iPod in recovery mode. You must restore it before it is usable with iTunes." So I hit OK and click yes to the message about restoring it to its factory settings, considering that's how it should be anyway since I had literally just taken it out of the box. I finally get a reaction from the iPod, and it's a solid white screen followed by the apple logo, and then for about 5 minutes iTunes says it's "prepaying the iPod for restore..." followed by the error message "The iPod "iPod" could not be restored, an unknown error occured. (1604)" Then the iPod disconnects from iTunes and proceeds to be frozen at the Apple logo screen. I have looked at all the troubleshooting walkthroughs and none of them work because I have never seen a screen on the iPod other than the Apple logo, it seems as though the only way to fix this is if I just take it back and get a replacement

    Hello and Welcome to Apple Discussions. 
    Is the device brand new? - the Second Generation have been around for some time now so I hope you got a good price on it.
    Have a read of this article which explains how to deal with the 1604 error:
    http://support.apple.com/kb/TS1458
    Let us know how you get on.
    mrtotes

  • Java Web Start(the program itself) doesn't start in offline mode

    Hi,
    My Java Web Start doesn't start when my internet connection is not on??? I have a program that needs also offline access so it's crucial to get JWS work without internet connection as well.
    The problem might be in those sun's example programs you can't remove? Maybe the program crashes when trying to get some information for those programs?
    (please read the question well. My problem IS NOT in the .jnlp-files <offline-allowed/>)
    And by the way those sun's demo programs that are supposed to start in offline mode(Internet connection not required) don't start even if you have started them once with the connection on.....
    -orainio

    I have the SAME problem -
    BUT....
    it NEVER works for me (online & offline)
    this stupid logon pops up and after a while disappears and nothing happens!
    got no fire wall, proxy etc...
    (win XP)
    plz helppppppppp

  • Does Netscape Enterprise Server support Java Web Start?

     

    Hi,
    I working on this problem too. Could you send me about
    your project's details ? (spec and config)
    My email: [email protected]
    Thank you.I've come to the conclusion that Java Web Start does not support hosting applications on password protected servers. It plain does not not work.
    If anyone can get it to work, please let me know.
    For me the JWS version based servlet is not a hosting option. I'm stuck with a dumb old IIS server. The only reason I'd want to use the version based servlet hosting is to work around the update bugs.
    See my other recent postings.
    I've posted a bug-report on the bugparade, but it will take three months before I should expect a reply.
    At that point, they may dismiss the bug-reports as "intended features", in which case I do wish there was more options to "turn off" "features" in the JNLP file. ;-)
    For now I've been my client has accepted "security by obscurity" for the beta version of the program I'm working on, i.e. I've put the program in a "secret" place and turned off password protection.
    �yvind

  • Unable to Launch Integration Builder: Java Web Start problem

    Hi,
    I am unable to launch the integration builder. I am using JDK 1.4.2_05. The java Web Start gives the following error:
    Unsigned application requesting unrestricted access to system
    Unsigned resource: http://<XIHostName>:50000/rep/repository/aii_util_rb.jar
    I have tried deleting the Java web start cache, and even reinstalling the JDK.
    Can someone suggest a workaround this problem ?
    thanks,
    Manish

    The Java Web Start cannot accept unsigned jars. If the jars are signed, it will ask in a dialog box if it should allow unrestricted access to this jar.
    In my case, I upgraded XI SP0 to SP4, which included updating the Adapter Core, Adapter Framework, and the XI TOOLS to SP4.
    On launching the Web start, it seemed that the jars were not getting signed. JWS cannot allow unsigned jars to the client.
    These jars are maintained in:
    \usr\sap\<SID>\SYS\global\xi\directory_server\javaws\directory
    I am having problems with my XI upgrade to SP4, and it is probably not signing the jars.
    Do you know why this may be happening ...
    thanks,
    Manish

  • Java web start security dialog with Java 7 update 51

    I build a Java Web Start application signed with a valid certificate.
    When I star the application the security dialog appear correctly as show in this figure
    http://www.java.com/en/img/download/trusted_signed.jpg
    My issue is about the "do not show again" checkbox.
    If the attributes href are present in the jnlp tag of the jnlp file the checkbox appear.
    If the attribute are not present, the checkbox doesn't appear and the run needs to be confirmed every time.
    (Example:
    <jnlp spec="1.0+" codebase=
    "http://docs.oracle.com/javase/tutorialJWS/samples/deployment/webstart_ComponentArch_DynamicTreeDemo"
    href="dynamictree_webstart.jnlp">
    This is a problem because my jnlp file is under a password protected directory and if href is specifed, the Java Web Start application try to retrieve it as the other resources. ( result in access denied because only the browser session is authenticated and the run fails)
    The documentation at Deploying a Java Web Start Application said:
    The codebase and href attributes are optional when deploying Java Web Start applications that will run on at least the Java SE 6 update 18 release or later. You must specify the codebase and href attributes when deploying Java Web Start applications that will run with previous releases of the Java Runtime Environment software.
    What is the right code? With href or without?
    Is this a BUG or a feature?
    How can I show the "don't show again" checkbox without having to specify the href attribute?

    From the documentation at JAR File Manifest Attributes for Security
    If the Application-Library-Allowable-Codebase attribute is present and matches the location from which the RIA is started, then a single host is listed in the Location field for the prompt and the option to hide future prompts is provided.
    This issue is also discussed here: Java Web Start security dialogs with Java 7 update 51 - Stack Overflow

  • Java 7 Update 25 breaks Java Web Start on Mac OS X

    Hello,
    After the update on Mac OS X 10.8.4 it is no longer possible to launch Web Start applications. The Java 7 splash screen appears for a brief moment, but the application isn't started. There is a Java Web Start process that remains though. I also tried this on the command-line with the same result.
    Best regards,
    Werner.

    As the website said, Java Web Start is only supported on Mac OS X 10.1.
    http://java.sun.com/products/javawebstart/
    Cheers,
    A.A.
    I would like to know if Java Web Start works on Mac OS
    8 and 9. If the answer is yes, would you please let
    me know what is the package to download to achieve
    that? I would also like people's comment on how
    easy/hard is Java Web Start works, if it is buggy, and
    how well it is working on Mac OS. I am evaluating
    whether we are going to incorporate this technology
    into our application. I would highly appreciate your
    input.

  • How import policy file with Java Web Start

    hi everybody,
    I wrote an application launched by Java Web Start.
    This application encrypt data on the client side and POST them to the server.
    To encrypt I use JCE packages including sunjce_provider.jar, jce1_2_1.jar and
    local_policy.jar and US_export_policy.jar.
    local_policy.jar and US_export_policy.jar are not packages, each of them contains
    a policy file.
    When I test encryption on local no problem, but when I test with Java Web Start
    I've got this exception :
    java.lang.ExceptionInInitializerError:
    java.lang.SecurityException: Cannot set up certs for trusted CAs
    It's because the application launched by Java Web Start doesn't find local_policy.jar
    and US_export_policy.jar.
    There's a problem in my JNLP file :
    <jnlp spec="1.0+" href="http://myserver/sources/test.jnlp" codebase="http://myserver/sources">
         <information>
              <title>Java Web Start TEST</title>
              <vendor>NLE Intech</vendor>
              <description>cryptage then upload</description>
         </information>
         <security>
              <all-permissions/>
         </security>
         <resources>
              <j2se version="1.3" />
              <jar href="sunjce_provider.jar" />
              <jar href="jce1_2_1.jar" />
              <jar href="local_policy.jar" />
              <jar href="US_export_policy.jar" />
         </resources>
         <application-desc main-class="HelloWorldSwing" >
              <argument>c:\myfiletoencrypt</argument>
         </application-desc>
    </jnlp>
    thank you for your answer

    Hi Nicolas,
    If you migrate to JDK1.4 and use the signed Bouncy JAR, you could resolve the problem,
    if you don't want to use unlimited cryptography.
    See my posting on your other question.
    Agnes
    PS. There is a mistake in my other reply, the "local_policy.jar" and the other files must have
    to go into JRE/LIB/SECURITY directory

  • Java web start application runs too slow...

    Hello,
    I am new to Java Web Start. I have created a java web start application and when i enable web start from local Execution, then it works perfectly well. But when i upload it on server and then download the application, then it is too too slow...i mean it takes minutes to get the output on clicking some button....my jnlp file is as under:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <jnlp codebase="http://(web server code base)" href="launch.jnlp" spec="1.0+">
    <information>
    <title>ERD</title>
    <vendor>Deepika Gohil</vendor>
    <homepage href="http://appframework.dev.java.net"/>
    <description>A simple java desktop application based on Swing Application Framework</description>
    <description kind="short">ER Deign Tools</description>
    </information>
    <update check="always"/>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.5+"/>
    <jar href="ERD_1_2.jar" main="true"/>
    <jar href="lib/appframework-1.0.3.jar"/>
    <jar href="lib/swing-worker-1.1.jar"/>
    <jar href="lib/jaxb-impl.jar"/>
    <jar href="lib/jaxb-xjc.jar"/>
    <jar href="lib/jaxb1-impl.jar"/>
    <jar href="lib/activation.jar"/>
    <jar href="lib/jaxb-api.jar"/>
    <jar href="lib/jsr173_api.jar"/>
    <jar href="lib/ant-contrib-1.0b3.jar"/>
    <jar href="lib/jaxb-impl.jar"/>
    <jar href="lib/jaxb-xjc.jar"/>
    <jar href="lib/FastInfoset.jar"/>
    <jar href="lib/gmbal-api-only.jar"/>
    <jar href="lib/http.jar"/>
    <jar href="lib/jaxws-rt.jar"/>
    <jar href="lib/jaxws-tools.jar"/>
    <jar href="lib/management-api.jar"/>
    <jar href="lib/mimepull.jar"/>
    <jar href="lib/policy.jar"/>
    <jar href="lib/saaj-impl.jar"/>
    <jar href="lib/stax-ex.jar"/>
    <jar href="lib/streambuffer.jar"/>
    <jar href="lib/woodstox.jar"/>
    <jar href="lib/jaxws-api.jar"/>
    <jar href="lib/jsr181-api.jar"/>
    <jar href="lib/jsr250-api.jar"/>
    <jar href="lib/saaj-api.jar"/>
    <jar href="lib/activation.jar"/>
    <jar href="lib/jaxb-api.jar"/>
    <jar href="lib/jsr173_api.jar"/>
    </resources>
    <application-desc main-class="erd.screen1">
    </application-desc>
    </jnlp>
    I dont understand the reason. Could you please help me out.
    Thank you,
    Deepika Gohil.

    Check your web server's access logs to see how many requests web start is sending for each jar. After you've loaded the application the first time, for each subsequent launch, if you've got everything configured right, you should only see requests for the JNLP file and maybe some gifs because web start should load everything else out of the cache (if you're using the version-based download protocol). Or if you're using the basic download protocol, then you might see requests for each jar file, but even in this case, if your web server is prepared to evaluate the last-updated attribute for each jar request and for jars that have not changed, respond with no actual payload and a header value of Not-Modified, then that should run almost as fast.
    You might also want to consider changing the "check" attribute of the "update" element from "always" to "background" for a couple of reasons. It should allow your app to start sooner (but this means that you might have to launch once or twice after an update is applied to the web server before the update shows up on the workstation). Also, my impression is that "always" is broken and prevents web start from ever checking to see if your jnlp file has been updated if you launch your app from a web start shortcut - launching from a browser is less likely to have this problem, depending on how often your browser is configured to check for updated resources.

Maybe you are looking for

  • What is the syntax please srw.run_report

    hi Im trying to call report B from report A. I am using a param for report A and also need to send this through into report B when calling. I have seen a few different syntax examples but not sure when using a lexical param(presuming this is what i n

  • Client copy failed in SCM without livecache

    Hi, I am executing client copy on a SCM-EWM system with profile SAP_ALL. Client copy failed with error. How can I find what tables are not being copied? The copy fail at post processing steps for this exit program "/SAPAPO/OM_CLNT_COPY_UPLOAD". My SC

  • Problem with loading a transparent image onto Labview FP proggrammatically

    Hi all, I have a .png logo with transparent background, and I want to load it onto labview FP prorgrammatically. My problem is, if I load it programmatically (read image, display on image display), the background won't be transparent any more. But if

  • Restoring from backup cds

    I did a backup of my itunes library in January which includes 2 cds. I did another backup of the library on the 4 of Oct 07 of files added since the last backup. I downloaded itunes onto a new Dell laptop. When I try and do a restore of the backup cd

  • Suddenly can't merge any anchor points?

    I am busy working on creating a big object with many split ways, you can compare it with the streets of NY or something, Now the first 5-6 hours went great combining anchor points so it is one big object. However now suddenly Illustrator is giving me