JNLP jar (re)download

Hello All ,
I might be having a fundamental misconception here ; if so , please help me put it right.
I have a JNLP file which is automatically generated (automatic here actually indicates that a script will populate a particular field in the file (which holds references to some jar files). The rest of the file does not change)).
I am using the <version> attribute of the <jnlp> tag to indicate the version of the application.
My expectation is that each time this version attribute changes , the .jnlp file wlil be re-downloaded and also will be re-downloaded each of the jar files it references.
Below is a representative code sample :
<code>
<?xml version="1.0"; encoding="utf-8"?>
<jnlp
spec="1.0+";
codebase="$$codebase"
href="$$name"
version="%VERSION%">
<!-- version to be filled in by a script-->
<information>
. <!-- Some information here -->
</information>
<security><all-permissions/></security>
<resources>
<j2se version="1.6+"; initial-heap-size="32m" max-heap-size="512m" />
<jar href="my.jar";/>
<jar href="my2.jar";/>
<property name="property1" value="value1" />
<extension href="another.jnlp"; /> <!-- another .jnlp contains a list of jars that is generated by another script -->
</resources>
<application-desc main-class="my.main";/>
</jnlp>
</code>
The following scenario is what I am trying to implement :
a)Deploy the jnlp application on a server and access it by using http://localhost:XXXX/myapp
b)It downloads and installs and runs.
c)I close the app.
d)I now change one of the jar files referenced in another.jnlp and also some contents in my.jar and my2.jar.
e)I now repeat steps a) and b) (the .jnlp files "version" attributes are updated accordingly)
EXPECTATION : The jnlp file is re-downloaded and so are all the referenced jars[of particular interest my2.jar and any referenced jars in another.jnlp].
OBSERVATION : The jnlp file is re-downloaded but the OLD jars are still being used (I know its the old jars because I change something in the jar on the server and the change is not reflected in the client browser).
If I clear the java cache by doing a "javawas - uninstall" , I get the behaviour I seek in EXPECTATION ; however I do not want to clear the cache everytime I update some jar or other ; I want jnlp to detect that a jar has changed and re-download it.
How do I go about achieving this?

elie_nasrani wrote: I have a JNLP application which will run over internet , my problem is that anyone can go to the url and launch the application and download all the jars, before even logging in, i'm worried about using this for Denial of service.
is there a way that i can control the jar files download time, like only download the necessary jar first and when jars are needed will be downloaded eventually
Web start offers lazy downloads, as well as the DownloadService* (DS) to help with this kind of problem.
'Lazy' means the resource is only downloaded when needed, but using the DS offers even greater control, even to the extent of manually blocking a download - if needed.
* e.g. of the Download service, be sure to follow the links.
<http://www.physci.org/jws/#ds>
As far as 'signing' goes, I cannot imagine how that would help for your problem. Not only are signed Jar's (at least slightly) larger, but they can also be used by JWS apps. coming from other domains! If your app. is sandboxed, I strongly recommend keeping it as unsigned code.
Why is your JNLP file exposed to the general public? Don't the users have to log in before they can get to the page with link to the application JNLP?
If that is the case, the only chance for users who are not logged in to launch it, is if a friend sends them a direct link to the JNLP file.
As an aside, I generally do not have time to look at posts with no 'dukes' assigned (see links at upper left), if getting a solution is important to you, it is a good idea to add some.

Similar Messages

  • Control JNLP jar files download time

    Hello,
    I have a JNLP application which will run over internet , my problem is that anyone can go to the url and launch the application and download all the jars, before even logging in, i'm worried about using this for Denial of service.
    is there a way that i can control the jar files download time, like only download the necessary jar first and when jars are needed will be downloaded eventually
    Any Help would be appreciaetd
    regards

    elie_nasrani wrote: I have a JNLP application which will run over internet , my problem is that anyone can go to the url and launch the application and download all the jars, before even logging in, i'm worried about using this for Denial of service.
    is there a way that i can control the jar files download time, like only download the necessary jar first and when jars are needed will be downloaded eventually
    Web start offers lazy downloads, as well as the DownloadService* (DS) to help with this kind of problem.
    'Lazy' means the resource is only downloaded when needed, but using the DS offers even greater control, even to the extent of manually blocking a download - if needed.
    * e.g. of the Download service, be sure to follow the links.
    <http://www.physci.org/jws/#ds>
    As far as 'signing' goes, I cannot imagine how that would help for your problem. Not only are signed Jar's (at least slightly) larger, but they can also be used by JWS apps. coming from other domains! If your app. is sandboxed, I strongly recommend keeping it as unsigned code.
    Why is your JNLP file exposed to the general public? Don't the users have to log in before they can get to the page with link to the application JNLP?
    If that is the case, the only chance for users who are not logged in to launch it, is if a friend sends them a direct link to the JNLP file.
    As an aside, I generally do not have time to look at posts with no 'dukes' assigned (see links at upper left), if getting a solution is important to you, it is a good idea to add some.

  • Where are the jar files downloaded.

    When I run a javafx sample, the first time, it downloads so many jarfiles to a particular place on my box. When I run another sample, it downloads some other jar files, and I can bet some of the jar files downloaded by the previous sample are also downloaded by this sample, I am just thinking, if there is a central place where all downloads go to, then can we have an app check in that folder to see if a jar file is present before downloading it again??
    sa

    trinisoftinc wrote:
    When I run a javafx sample, the first time, it downloads so many jarfiles to a particular place on my box. When I run another sample, it downloads some other jar files, and I can bet some of the jar files downloaded by the previous sample are also downloaded by this sample, I am just thinking, if there is a central place where all downloads go to, then can we have an app check in that folder to see if a jar file is present before downloading it again??
    saHey trinisoftinc - I recommend you go investigate java webstart (jnlp). This behavior should not unique to JavaFX applications packed into jnlp but Java as well. I believe it's quite complex and I think Sun have done the right thing here. Duplication is better than potential inconsistencies between supposedly 'identical' jar's. Also, who really sign's jar's anyway.... not many... if any ;)

  • How to make a jar file downloadable with IE

    hello,
    I just bought a website:
    http://www.frozenfountain.net/
    and I put a jar file on it called Logo.jar
    Using Mozilla, the jar file downloads as expected, but with Internet Explorer, it tries to download it as .zip file.
    How do I get it to download as a .jar file with IE?
    thanks

    Just post a link to the Jar. Mozilla will download
    it as a jar. Windows will download it as a zip.
    Only one link. No problem, really. ;-)There is a problem. People who arent as good with computers as you are won't know how to run the jar file after downloading with IE.
    At school, I told someone to download the file, which they did with IE. It downloaded to desktop as a zip. They extracted and were left with a bunch of .class files.
    On a sidenote, how do you draw text with a gradient?

  • Jar files downloaded from SkyDrive are being renamed to jar.zip files

    I have cut and pasted the following series of exchanges from when I posted the problem onto SkyDrive's support forum. I hope that someone might be able to propose a better solution to the problem that I have. Thanks for your help.
    MDSms asked on
    Uploaded jar files convert to jar.zip files when downloaded from SkyDrive
    I have uploaded an executable jar file to SkyDrive. (I will call this FILE.jar). The file is intact and indicates that it is a jar file type when the file is viewed by Properties within Skydrive. However, when I download (or others download through a share link) the file, it is being saved onto the local computer's download file with .zip appended to the file name (FILE.jar.zip). The downloaded file can be renamed to remove the .zip appendage and subsequently run successfully. However the folder options for the folder where the downloaded file resides must be changed for disable "Hide known file extensions" prior to being able to remove the .zip appendage. While I have figured out the workaround for this problem, this manual renaming procedure is entirely too cumbersome as a solution for sharing this file with others. How can I prevent or disable the FILE.jar file from being renamed to FILE.jar.zip when it is downloaded from SkyDrive?
    All Replies (5)
    Audrey_P. replied on
    Forum Moderator
    Hi,
    Thank you for posting. Let me try to assist you with your issue with your files.
    In order for us to reproduce the issue on our end. Please provide us with the exact steps that you did when you uploaded the files as well as the steps when you are downloading it.
    We will be needing the steps to help us figure put what is causing you this issue.
    We look forward to your response.
    Thank you.
    Audrey P.
    MDSms replied on
    Reply
    The file was uploaded by first logging onto my SkyDrive account using Windows 7 Pro and Firefox browser, then a new folder in my account was created without sharing privileges, then the folder was opened and the FILE.jar was uploaded into the folder using the "Upload" option on skydrive account menu. Sharing privileges for FILE.jar were then created (view only), and the shortened url link was sent to the individuals that I was trying to share the file with. was then turned on. When these people use the link to download the file, it is being saved as FILE.jar.zip.
    When I try to download the file through the skydrive account download option, it is being saved onto my computer as FILE.jar.zip and this occurs when I try to download the file while signed into my skydrive account as well as when I am not signed into my skydrive account (using the shared file link).
    This PNG shows the information provided by clicking on the download icon (down arrow) within the Firefox browser; note that the file was downloaded as FILE.jar.zip and that the source was live.com. When I use Windows Explorer to look at the same file within the Download folder itself, examining the file's properties details also shows that it is being saved as FILE.jar.zip and is of the file type compressed zip folder.
    This PNG shows the information displayed to me from my skydrive account when I view the originally uploaded file's properties; note that the information shows that the file is a jar file type.
    When I utilize Internet Explorer 9 to access the file, FILE.jar is being downloaded onto my computer as a jar file type. This PNG shows the information provided by Tools/View Downloads within the IE9 browser. Note that in this instance, the information indicates that the file is being downloaded from yzudea.blu.livefilestore.com.
    It appears to me that the problem (the FILE.jar file being renamed to FILE.jar.zip) arises from the fact that a jar file downloaded from skydrive using firefox, is being sent from live.com whereas a jar file downloaded from skydrive using IE9 is being sent from yzudea.blu.livefilestore.com.
    I want to make sure that a person receiving a share link from me for FILE.jar is able to download it without modification to the file name regardless of which browser is being using to access the link. How can I make sure that this occurs?
    Any help is appreciated. Thanks.
    Michelle Anne D. replied on
    Forum Moderator Community Star Community Star
    Reply
    Hi MDSms,
    I appreciate you for providing as much information as you can about the issue, as well as for uploading screenshots on what you see from the downloaded file. About your initial concern wherein the file gets renamed with .zip after the original file extension, this is solely dependent on the browser that you are using since they have a different safety/security measure that needs to be implemented.
    Moreover, you may see the file servers live.com and yzudea.blu.livefilestore.com to be different with one another, but they actually are sent from the same SkyDrive server. This in turn, depends on the web browser where the file is being downloaded as well. The live.com file where it was downloaded from Firefox simply masks its original server yzudea.blu.livefilestore.com.
    As for your last query about your recipients downloading the file without the hassle of renaming it from a .zip file, you can simply tell them to download it through Internet Explorer.
    Should you have other queries or additional information that might help in our investigation, I highly encourage you to post them here.
    Regards,
    Michelle
    MDSms replied on
    Michelle,
    Thanks for your reply. Yes, I could simply tell them to download the file through Internet Explorer, but is there another solution or workaround to the problem I have described here? Am I being punished with the curse of this problem simply because I (or the individuals with which I wish to share FILE.jar with) choose to use Firefox instead of IE? Will the use of any other browser instead of IE (Chrome, Safari, etc., etc.) still result in the same problem?
    You stated that it is "solely dependent on the browser that you are using since they have a different safety/security measure that needs to be implemented"........could the problem be overcome by designating one or both of the file server addresses as Trusted Sites within the browser options setting?
    I look forward to your response. Thanks in advance.
    Joy V. replied on
    Forum Moderator Community Star Community Star
    Reply
    Hi MDSms,
    We understand your concern. Since the issue does not occur in Internet Explorer, it has something to do with Firefox's security feature. You might want to verify this concern by contacting Firefox support.
    Hope this helps. Let us know if we can further assist you with SkyDrive.
    Thanks,
    Melanie Joy

    Try to delete the mimeTypes.rdf file in the Firefox profile folder to reset all file actions.
    *http://kb.mozillazine.org/mimeTypes.rdf
    *http://kb.mozillazine.org/File_types_and_download_actions#Resetting_download_actions

  • Where do you get jnlp.jar for Mac Leopard 10.5.5

    Hello,
    I am trying to use Persistence in JNLP on a Mac 10.5.5 with either 1.5 or 1.6. I have searched
    my local disk the Mac developer web site and this website for "jnlp java Mac Leopard" no useful results.
    Where can I get a jnlp.jar file that works on a Mac?
    Rinaldo

    I was able to get the question answered on the mailto:[email protected] list.
    My friend http://www.google.com/search?q=jnlp.jar+mac+java&ie=utf-8&oe=utf-8&aq=t answered it.
    Greg also provided some very useful information, especially the mdfind javaws.jar command
    http://lists.apple.com/archives/Java-dev/2008/Nov/msg00052.html
    I see that in JDK 1.5, javaws.jar is included. For now I will assume that the javaws.jar classes have been moved to javaws.jar
    jar tvf ./Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/javaws.jar | grep jnlp
            0 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/
      3147 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/ApiDialog.class
      1626 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/AppletAudioClip$1.class
      3922 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/AppletAudioClip.class
      1377 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/AppletContainer$1.class
       990 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/AppletContainer$2.class
      1329 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/AppletContainer$AppletContainerContext$1$1.class
      1452 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/AppletContainer$AppletContainerContext$1.class
      2942 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/AppletContainer$AppletContainerContext.class
      1551 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/AppletContainer$AppletContainerStub.class
       710 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/AppletContainer$LoadImageAction.class
      4841 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/AppletContainer.class
       234 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/AppletContainerCallback.class
      1362 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/BasicServiceImpl$1.class
      1158 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/BasicServiceImpl$2.class
       992 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/BasicServiceImpl$BasicServiceBrowser.class
      2397 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/BasicServiceImpl.class
      1279 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/CheckServicePermission.class
       868 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/ClipboardServiceImpl$1.class
      1668 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/ClipboardServiceImpl$2.class
      2787 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/ClipboardServiceImpl.class
      1159 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/DownloadServiceImpl$1.class
      1652 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/DownloadServiceImpl$10.class
      1318 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/DownloadServiceImpl$2.class
      1474 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/DownloadServiceImpl$3.class
      1679 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/DownloadServiceImpl$4.class
      2519 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/DownloadServiceImpl$5.class
      1739 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/DownloadServiceImpl$6.class
      1942 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/DownloadServiceImpl$7.class
      1517 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/DownloadServiceImpl$8.class
      1445 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/DownloadServiceImpl$9.class
      1398 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/DownloadServiceImpl$DefaultProgressImpl$1.class
      2914 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/DownloadServiceImpl$DefaultProgressImpl.class
      2254 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/DownloadServiceImpl$ProgressHelper.class
      8288 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/DownloadServiceImpl.class
       900 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/ExtendedServiceImpl$1.class
      1051 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/ExtendedServiceImpl$2.class
      3188 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/ExtendedServiceImpl.class
       707 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/ExtensionInstallerServiceImpl$1.class
       961 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/ExtensionInstallerServiceImpl$2.class
       711 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/ExtensionInstallerServiceImpl$3.class
      5918 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/ExtensionInstallerServiceImpl.class
       787 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/FileContentsImpl$1.class
       820 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/FileContentsImpl$2.class
       928 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/FileContentsImpl$3.class
       791 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/FileContentsImpl$4.class
       792 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/FileContentsImpl$5.class
      1002 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/FileContentsImpl$6.class
      4353 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/FileContentsImpl.class
      2155 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/FileOpenServiceImpl$1.class
      2323 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/FileOpenServiceImpl$2.class
      1144 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/FileOpenServiceImpl$WindowsAltFileSystemView$FileSystemRoot.class
      3017 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/FileOpenServiceImpl$WindowsAltFileSystemView.class
      2974 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/FileOpenServiceImpl.class
      2847 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/FileSaveServiceImpl$1.class
      3257 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/FileSaveServiceImpl.class
      1087 Fri Sep 05 10:32:48 EDT 2008 com/sun/jnlp/ImageCache.class
      1937 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/JNLPCachedJarURLConnection$1.class
      5559 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/JNLPCachedJarURLConnection.class
       940 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/JNLPClassLoader$1.class
       928 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/JNLPClassLoader$2.class
      1285 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/JNLPClassLoader$3.class
    12413 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/JNLPClassLoader.class
      2555 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/JNLPFileFilter.class
      6074 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/JNLPRandomAccessFileImpl.class
       788 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/JnlpLookupStub$1.class
      2918 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/JnlpLookupStub.class
      2044 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/MeteredFileOutputStream.class
       938 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/PersistenceServiceImpl$1.class
      1022 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/PersistenceServiceImpl$10.class
      1805 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/PersistenceServiceImpl$11.class
      1023 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/PersistenceServiceImpl$2.class
       845 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/PersistenceServiceImpl$3.class
       877 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/PersistenceServiceImpl$4.class
       981 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/PersistenceServiceImpl$5.class
       875 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/PersistenceServiceImpl$6.class
       871 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/PersistenceServiceImpl$7.class
       885 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/PersistenceServiceImpl$8.class
       974 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/PersistenceServiceImpl$9.class
      7991 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/PersistenceServiceImpl.class
       809 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/PrintServiceImpl$1.class
      1189 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/PrintServiceImpl$2.class
       969 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/PrintServiceImpl$3$1.class
      1717 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/PrintServiceImpl$3.class
      2986 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/PrintServiceImpl.class
      1441 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/SingleInstanceServiceImpl$1.class
      1673 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/SingleInstanceServiceImpl$TransferListener.class
      3938 Fri Sep 05 10:32:50 EDT 2008 com/sun/jnlp/SingleInstanceServiceImpl.class
         0 Fri Sep 05 10:32:48 EDT 2008 javax/jnlp/
       258 Fri Sep 05 10:32:50 EDT 2008 javax/jnlp/BasicService.class
       251 Fri Sep 05 10:32:50 EDT 2008 javax/jnlp/ClipboardService.class
      1392 Fri Sep 05 10:32:50 EDT 2008 javax/jnlp/DownloadService.class
       349 Fri Sep 05 10:32:50 EDT 2008 javax/jnlp/DownloadServiceListener.class
       309 Fri Sep 05 10:32:50 EDT 2008 javax/jnlp/ExtendedService.class
       659 Fri Sep 05 10:32:50 EDT 2008 javax/jnlp/ExtensionInstallerService.class
       598 Fri Sep 05 10:32:50 EDT 2008 javax/jnlp/FileContents.class
       370 Fri Sep 05 10:32:50 EDT 2008 javax/jnlp/FileOpenService.class
       430 Fri Sep 05 10:32:50 EDT 2008 javax/jnlp/FileSaveService.class
      1451 Fri Sep 05 10:32:50 EDT 2008 javax/jnlp/JNLPRandomAccessFile.class
       688 Fri Sep 05 10:32:50 EDT 2008 javax/jnlp/PersistenceService.class
       350 Fri Sep 05 10:32:50 EDT 2008 javax/jnlp/PrintService.class
       994 Fri Sep 05 10:32:50 EDT 2008 javax/jnlp/ServiceManager.class
       303 Fri Sep 05 10:32:50 EDT 2008 javax/jnlp/ServiceManagerStub.class
       185 Fri Sep 05 10:32:50 EDT 2008 javax/jnlp/SingleInstanceListener.class
       250 Fri Sep 05 10:32:50 EDT 2008 javax/jnlp/SingleInstanceService.class
       472 Fri Sep 05 10:32:50 EDT 2008 javax/jnlp/UnavailableServiceException.class

  • Why isn't jnlp.jar signed by Sun?

    The jnlp.jar in the developer pack is not signed with Sun's certificate. Why is that? An omission or intentional?
    If I'm delivering my app signed with my Verisign cert, I have to now deliver jnlp.jar also signed with my cert, right?
    Thx,
    Max

    The jnlp.jar is part of Java Web Start, so no - you don't have to sign and supply it, the JWS install takes care of it for you.
    Cheers,
    Gavin

  • Jnlp.jar

    Author: bonnaire
    Hello,
    I wanted to make an application usable through JavaWebStart technology, it
    needs to
    read and write files on the local disk so, as I have seen, I need the
    FileOpenService and FileSaveService of the javax.jnlp API.
    But I can't find jnlp.jar ! I use jdk1.4 and I have installed the latest javaWebstart
    pack :
    javaws-1_0_1_02-win-int.exe.
    Can you tell me what have I missed ?
    Thanks
    Richard

    The jnlp.jar can be found in the Webstart Developers Pack it is not part of the Webstart Client.
    On the other hand if your application needs access to the disk you don't need those services. Signing your Jar Files and granting all-permission should do the trick

  • Stray jnlp files gets downloaded onto the desktop when using Safari on MAC.

    We are using jdk 1.4 webstart and safari browser on a mac machine.
    Once the web start begins a jnlp file gets downloaded on to the desktop but does not get deleted. This happens each time the webstart begins thus the desktop is cluttered with stray .jnlp files each time web start is used.
    Is there any workaround such that these files don't get downloaded at all or gets deleted once the web start closes?

    Don't multi-post:
    http://forum.java.sun.com/thread.jspa?threadID=5136297&messageID=9496292#9496292

  • Disc5i.jar is downloaded going into discoverer plus between environments

    Hello, I have two applications servers 10.1.2.0.2 with discoverer, one for production and other for test environment. Both are same versions, 10.1.2.48.18,
    and use jinitiator 1.3.1.25 as java plugin and have jar cache enabled on jinitiator.
    I go to discoverer plus on production and disc5i.jar is downloaded. I disconnect and connect to discoverer plus on test and disc5i.jar is downloaded again. On java console I see that previous disc5i.jar of other environment is deleted and disc5i.jar for environment I'm going is downloaded. Both disc5i.jar are the same. Why is downloaded again with a lot of spend time to final users with pour connections?
    Any idea?
    Thanks,
    Fernando.

    Hello, I have two applications servers 10.1.2.0.2 with discoverer, one for production and other for test environment. Both are same versions, 10.1.2.48.18,
    and use jinitiator 1.3.1.25 as java plugin and have jar cache enabled on jinitiator.
    I go to discoverer plus on production and disc5i.jar is downloaded. I disconnect and connect to discoverer plus on test and disc5i.jar is downloaded again. On java console I see that previous disc5i.jar of other environment is deleted and disc5i.jar for environment I'm going is downloaded. Both disc5i.jar are the same. Why is downloaded again with a lot of spend time to final users with pour connections?
    Any idea?
    Thanks,
    Fernando.

  • .JAD/JAR file download problems

    Hi,
    I'm having trouble with downloads of .jad and .jar files through WAP onto my mobile phone. The .JAR file downloads fine via the WAP APN but then the .JAD file doesn't download.
    From what I can see, it looks like the j2me app manager on the phone which reads the jad file tries to download the .JAR file directly from the website. The problem here is that since i'm connected to a WAP APN, i have to download through the proxy so there's no direct access to the internet.
    Anyone else have this kind of problem?
    Is is possible to set up the .JAD file somehow so that it downloads through a proxy or takes the current APN to download it??
    This is a HTTPS site but I dont think that would make a difference.
    Cheers,

    Hello,
    I have a very similar problem. Not quite the same tho: i am able to download the JAD and the JAR gets requested. One some phones the JAR gets downloaded properly but on others it blocks after 50 or 60 %.
    We only encounter this problem when downloading through a proxy (defined in the phones wap/internet configuration); when we connect without a proxy everythibng works just fine.
    Another clue might be the fact that we cannot do HTTPS communication (from the device) using a connection that is proxied. (We tested by putting the file on the device using bluetooth).
    Has anybody seen this before? Do you know a solution to this problem?
    Thank you,
    Nick

  • Jnlp .jar download

    Hi,
    I am making a java web start application. I have so many jar files, which are being used by that application...I am adding the jar files like this:
    <jar href="lib/appframework-1.0.3.jar"/>
    <jar href="lib/swing-worker-1.1.jar"/>
    Actually When I try to run the application offline, it works fine. But when I try to run the application online, it gets very slow...it takes time to download jar files(I think so).....and it takes five minutes to execute a functionality by the application. I don't know how can I fix this. The size of some of the jar files in the resources are big...
    Please let me know the solution of this problem!
    Thank you.

    Please post full JNLP file here.
    How big is "big" here?
    Do you have <update check="background"> in your JNLP file?
    Debug hints:
    * Enable java console, enable verbose tracing (http://download.oracle.com/javase/7/docs/webnotes/tsg/TSG-Desktop/html/plugin.html#gcexdf)
    and see what is going on when application takes longer than you expect
    * Use http sniffer tools to trace network connections on startup (e.g. wireshark). Your goal is to have 0 network connections when application is cached.

  • Updated Jar not Downloaded

    For some reason when users launch my program from web start the latest version is not downloaded if the user has an older version in cache.
    My JNLP file is:
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0" codebase="http://slime.tjtech.org/" href="netSlime.jnlp">
       <information>
          <title>Networked Slime Volleyball</title>
          <vendor>Sam Gross</vendor>
          <homepage href="index.html"/>
          <description>Client for Networked version of Slime Volleyball</description>
          <icon href="splash.gif"/>
        </information>
       <resources>
          <j2se version="1.4.*" max-heap-size="256m"/>
          <jar href="GNetGame.jar" main ="true" download="eager"/>
       </resources>
       <security>
          <all-permissions/>
       </security>
       <application-desc main-class="GApplet"/>
    </jnlp>I would greatly appreciate your help,
    Sam

    When not using the version protocol (as is the case when you do not specify a version attribute in your jar resource line), JWS uses the timestamp of the jar as a pseudo version. The JWS client retrieves this using a HEAD HTTP request.
    I assume you have tested this situation on your own machine (downloaded the new version while the old version is in your JWS cache)?
    If it fails for you as well (and assuming you are able to test without going through a proxy), then it suggests that there are timestamp issues, perhaps your deployment mechanism is somehow always assigning the same timestamp, or the web server is not responding correctly to the HEAD request (which seems unlikely...).
    If it works for you, but not some portion of your user community, then investigate whether the affected users are going through a proxy - when using the non-version protocol, the jar URLs do not change between versions, and hence perhaps give poorly configured proxies an opportunity to return a stale version of the jar.
    When using the version protocol, the jar HTTP requests have a query string ?version-id=x.x, which one might think reduces the chance that a proxy will misbehave.
    At any rate, a possibly worth considering.
    HTH

  • Automated Jar file download

    Hi,
    I was planning download and run a jar file in an automated way.
    I want to do this using an html. When i open the html it should go and download the jar file and then run the jar. I want to do this using java.
    What is the best way to do this. Do i've to use applets for this ?
    Are there any existing examples .
    Thanks in advance
    Jagadeesh

    jag_chandra wrote:
    Java Web StartJava Web Start is a helper application that gets associated with a Web browser. When a user clicks on a link that points to a special launch file (JNLP file), it causes the browser to launch Java Web Start.Who are you telling? I doubt anyone in this thread is unaware of what JWS is.
    Java web Start requires user click , isn't it. Is that a question? If so, please don't forget to add a question mark.
    but the actual situation is i've 100's of jar file url's, i need to scroll through each one of them and run them automatically on java installed machine. I can't get the user to click on them. I want to create a html when opening the html in the browser it should do this bit .
    Can JavaWebstart do this ? How does the user get to the page with 'hundreds of URLs'? Is it perhaps via a link they need to click on?
    If that is the case, replace that link to a href pointing to one (note ONE) JNLP file. In the JNLP launch file, list the 'hundreds of Jars' and mark them as a lazy download. Specify the main-class as a helper class that will go through the lazy download of the 100s of Jars one by one, cache each one then run it.
    The problem is solved with as many clicks as it took to get to your original page, and most of the gory details of the hundreds of Jars are hidden from the end user.

  • JNLP Jarring - Class Not Found

    Hi,
    And again, java web start is one step ahead of me ;p
    (re the last post)
    I have simplified my requirements and have restricted my application to just one look and feel. That is in the original downloaded jar it came with (signed).
    My application has now gone through several versions, and each version has had several jar files containing different classes and things. I have never yet needed to specify a jar file in the manifest of another jar file to make it work.
    However, it cannot load the look and feels now. In the main class, I use:
    UIManager.setLookAndFeel("com.incors.plaf.kunststoff.KunststoffLookAndFeel");- where the look and feel is in a jar file pointed to in my classpath. Run locally, it works fine, but run over JNLP it throws a ClassNotFoundException.
    If I change it to:
    UIManager.setLookAndFeel(new com.incors.plaf.kunststoff.KunststoffLookAndFeel());Then the look and feel loads ok in both local and jnlp modes, but now it cannot find UI classes for things like JButtons when running over JNLP.
    Im using exactly the same jar file each time. Can anyone help?
    DS

    Got to stop doing this..
    Those of you having problems in this area take a look at these two links..
    http://developer.java.sun.com/developer/bugParade/bugs/4155617.html
    and
    http://forum.java.sun.com/thread.jsp?forum=38&thread=166873
    Its a botch method round it (and should have been fixed by now..?) but it basically entails providing a class loader gotten from a JComponent.
    Ive created a little class subclassing JApplet:
      private static class LFLoader extends JApplet
        public LFLoader() {}
        public void load()
          try
            UIManager.setLookAndFeel(new com.incors.plaf.kunststoff.KunststoffLookAndFeel());
            UIManager.getLookAndFeelDefaults().put( "ClassLoader", cl );
            aei.gui.components.JJSetup.setSimpleLFUsed(false);
          catch(Exception e)
          { System.out.println(e.getMessage()); e.printStackTrace(); }
      }You cant just call new Applet().getClass().getClassLoader() for some reason.
    The type of classloader displayed when the application starts..? sun.misc.Launcher$AppClassLoader if running locally, or com.sun.jnlp.JNLPClassLoader if over JNLP.
    My app now works but .. subclassing an applet to get it going .. eech!
    DS

Maybe you are looking for

  • Apple TV with multiple iTunes accounts

    We have two adults in the home. Both have their own iTunes accounts which are on their own MacBooks. What to do?

  • Converting video from PC to Mac format using Handspring

    I took some old videos out to a service to have converted, but didn't want a finished DVD so I could edit them. I got the data back on 2 dvds, one I converted and stored on an external drive. It was identified as DVD 2.m2p.mp4. This one loaded into i

  • Can't open Adobe LR5 after installation, error message comes up regarding "LuaRunException". Who can help?

    HI all, installed Adobe LR5 with success on my Mac. when i start the program, i got this error message: Terminating app due to uncaught exception 'LuaRunException' .....and so on. has anybody an idea how to solve the problem ? i already googled this

  • Format email subject in ssrs

    hi  i have sql server 2008 r2 standard edition installed, and i want to show only date (not time) on my ssrs report email subscription  subject, comment. So how can i  achieve this.

  • Camera raw does not open CR2 file

    When I try to open a cr2 file from bridge or explorer, where there is usually the image I get a blue surface. I can open this file directly in PS but not in Caera Raw. I work with CC and everything is updated. A few days ago I installed Lightroom CC