Cannot find the cached resources(jars) downloaded through Java Webstart 1.6

Hi Experts,
With Java 1.5 the below api call was returning the absolute location of downloaded jar through webstart.
URL where = ClassName.class.getProtectionDomain().getCodeSource().getLocation();
Value of URL where file://c:/users/.................../abc.jar"
But from 1.6 this api is returning only the relative path (value of URL is "/lib/abc.jar")
Our app is heavily dependent on the location of downloaded jars and hence it would be difficult to modify the app code to not to look for the downloaded jars.
So I'm looking for a way to find the location of downloaded jars
Please advise..
Before posting here I tried suggestions posted in the below links
https://bugs.eclipse.org/bugs/show_bug.cgi?id=244311
http://stackoverflow.com/questions/6789357/get-jars-under-resources-within-jnlp-file-with-jnlp-api
I tried this code to obtain the url s of the downloaded jars, but it did'nt work.
DownloadService2 service = (DownloadService2)ServiceManager.lookup("javax.jnlp.DownloadService2");
DownloadService2.ResourceSpec alljars = new DownloadService2.ResourceSpec("http://localhost:8085/words/*", "*", DownloadService2.JAR);
DownloadService2.ResourceSpec[] results = service.getCachedResources(alljars);
for (DownloadService2.ResourceSpec spec : results) {
     System.out.println(" +++++++++++ DownloadService2 ++++++++ " + spec.getUrl());
Thanks,
Srikanth M

Hi
Did anyone find a solution for this? I am also struck here.
service = (DownloadService2) ServiceManager.lookup("javax.jnlp.DownloadService2");
ResourceSpec alljars = new ResourceSpec(".*", ".*", service.JAR);
System.err.println(alljars);
ResourceSpec[] results = service.getCachedResources(alljars);
The results[] size is ZERO.
Thanks

Similar Messages

  • I downloaded a few episodes of game of thrones from season two, then I completed the season but I cannot find the last one I downloaded and I cannot redownload it, what should I do?

    I downloaded a few episodes of game of thrones from season two, then I completed the season but I cannot find the last one I downloaded and I cannot redownload it, what should I do?

    Hi there,
    You may find the article below helpful.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    -Griff W.

  • Cannot find the right place to download the replacement for lost PS CS6 Extended

    My PC with Windows 8.1 became corrupted.  I reloaded the OS and thereby lost all of my apps.  I cannot find the right place to download the replacement Photoshop CS6 Extended app. 
    Under Download CS6 products  I receive an access denied error. 
    How do I download PS CS6 Extended?

    John70b the downloads do appear to be working.  Please try using a different web browser to begin the download process.

  • "system cannot find the file specified" when launching a java app

    Hi,
    we are receiving an error message saying "The system cannot find the file specified" when launching a java app on a server. Exactly the same configuration on another server does not give the same problem.
    The dialog box with the error message only presents one button - OK - and after pressing the button the app continues to run normally. This however is a big problem for us as we are trying to convert the apps into system services using the wrapper (http://wrapper.tanukisoftware.org).
    Note: the problem exibits itself with and without the use of the wrapper.
    I am not very comfortable about reinstalling the JRE on a production server. Is there any way to see what file it is missing? Debug options or something similar?
    The JRE in question is 1.4.2_06. Many thanks in advance for your answers.

    if not setting Post-Processing option results in a cryptic error why doesn't Adobe do one of at least three things?
    1. Don't let user click Export on Export dialog if nothing's selected for Post-Processing.
    2. Default Post-Processing to Do Nothing
    3. Give the user a hint as to what the problem is when the error occurs instead of issuing cryptic error message.
    Allowing this error to persist for so long is ridiculous.

  • Firefox redirects all my Google searches, and Malwarebytes, Ad-Aware and SuperAntiSpyware cannot find the virus; I suspect is a Java issue

    My computer has a virus that makes Google searches in Firefox be redirected to other sites - mostly search engines. I've used McAfee, Malwarebytes and others, and I cannot find the solution. I suspect that the virus is hiding itself as a program, using Java to deploy. Any help will be more than helpful!

    Well your Flixxy.com stuff isn't related to it. What exactly you are looking for is here.
    "firefox" > options > options
    Under the General Tab, specify your home page in this case google.com.
    If you are facing trouble with the home page being reset every time, then try starting firefox in safe mode.
    firefox > Help > restart with add-on's disabled
    Cheers!

  • I want to empty the Safari cache in OS 10.8.5, but cannot find the cache in the drop down menus. Where is it? Or do I go to preferences-privacy and select remove all cookies and website data?

    I received a 'bogus' email saying I had a virus and to click to scan my entire OS. I did not click - I trashed the email.
    I wanted to empty my cache but couldn't find it (OS 8.10.8.5) -- In the main menu, under Safari, the only thing I found was to select preferences, then privacy -- where a window showed an option of removing some or all cookies and other website data.
    Is that what I should do or is there a cache somewhere on the laptop?
    Thanks

    You were scammed. There's nothing wrong with your computer. You don't need to empty the cache.
    Helpful Links Regarding Malware Problems
    If you are having an immediate problem with ads popping up see The Safe Mac » Adware Removal Guide and AdwareMedic. If you require anti-virus protection Thomas Reed recommends using ClamXAV. (Thank you to Thomas Reed for this recommendation.)
    Open Safari, select Preferences from the Safari menu. Click on Extensions icon in the toolbar. Disable all Extensions. If this stops your problem, then re-enable them one by one until the problem returns. Now remove that extension as it is causing the problem.
    The following comes from user stevejobsfan0123. I have made minor changes to adapt to this presentation.
    Fix Some Browser Pop-ups That Take Over Safari.
    Common pop-ups include a message saying the government has seized your computer and you must pay to have it released (often called "Moneypak"), or a phony message saying that your computer has been infected, and you need to call a tech support number (sometimes claiming to be Apple) to get it resolved. First, understand that these pop-ups are not caused by a virus and your computer has not been affected. This "hijack" is limited to your web browser. Also understand that these messages are scams, so do not pay any money, call the listed number, or provide any personal information. This article will outline the solution to dismiss the pop-up.
    Quit Safari
    Usually, these pop-ups will not go away by either clicking "OK" or "Cancel." Furthermore, several menus in the menu bar may become disabled and show in gray, including the option to quit Safari. You will likely have to force quit Safari. To do this, press Command + option + esc, select Safari, and press Force Quit.
    Relaunch Safari
    If you relaunch Safari, the page will reopen. To prevent this from happening, hold down the 'Shift' key while opening Safari. This will prevent windows from the last time Safari was running from reopening.
    This will not work in all cases. The shift key must be held at the right time, and in some cases, even if done correctly, the window reappears. In these circumstances, after force quitting Safari, turn off Wi-Fi or disconnect Ethernet, depending on how you connect to the Internet. Then relaunch Safari normally. It will try to reload the malicious webpage, but without a connection, it won't be able to. Navigate away from that page by entering a different URL, i.e. www.apple.com, and trying to load it. Now you can reconnect to the Internet, and the page you entered will appear rather than the malicious one.

  • Mac user - cannot find 'empty cache' in version 5.0.1

    there is no "options" link in the tools menu - cannot find the cache anywhere! ???

    He's probably not using either Acrobat or Reader. The Mac comes with a built-in PDF viewer named Preview and it has limited support for PDF forms. It even corrupts them when it saves. It should definitely be avoided. Fortunately Reader is freely available, you just have to get him to install it.

  • Cannot find the tag library descriptor

    I trying to do the Java EE 5 Tutorial. It is called 'hello1' (chapter 2) and it's supposed to run a 'hello duke' program. However it is in Netbeans and I am trying to use ECLIPSE.
    I've tried to paste it into Eclipse but I get the following error message:
    Cannot find the tag library descriptor for http://java.sun.com/jsp/jstl/core
    when trying to include the following taglib:
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    Any ideas? I'm sure it's a very basic fix but I am new to Eclipse and web development.
    thanks in advance.

    Refer to the [link|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/804bedee-377e-2e10-0f83-d5b33c743dbc?QuickLink=index&overridelayout=true] for creating layouts.
    Check whether sharing reference and other details in portalapp.xml are correct.
    Regards,
    Mahesh

  • 7-Zip 'system cannot find the file specified' not letting me download?

    I'm about to throw my laptop to the other side of the room, run up to it and beat it with a baseball bat.
    I had to reset my system because I got a virus earlier[completely annoying] and I tried re-downloading Firefox through IE.
    First off, IE is complete cr*p.
    Second, I've gone to a lot of forums and pages trying to solve this issue.
    I keep getting this when I try to download. It hits a point and then:
    "7-zip: The system cannot find the file specified"
    and then "Your download was interrupted"
    I'm running Windows 8 on an Asus laptop.
    Please help me solve this or I'm going to do something drastic.
    I can't live with Internet Explorer as my main browser. I just can't.
    Thank you.

    I wonder if you've tried downloading from Mozilla's server.
    *ftp://ftp.mozilla.org/pub/firefox/releases/29.0.1/win32/
    Simply select your locale (en-US is default English) and download the "Firefox Setup 29.0.1.exe". Errors like this are generally solved by downloading from a different place. I don't have a Windows PC to test out if the files are okay.

  • I downloaded Adobe lightroom 4 and I cannot find the serial number. Does anybody know where I can find this serial number?

    I downloaded Adobe lightroom 4 and cannot find the serial number. Does anyone know where I can find the serial number?

    Perhaps you should ACTUALLY READ THE LINK VARJAK POSTED!!!
    gregbartgis wrote:
       I also downloaded LR4. It was a paid app - $79.99. I wasn't assigned a serial number
    Correct.
    Mac app store software does not contain serial numbers since they are linked to your AppleID.
    which means I can't upgrade to LR5 through Adobe.
    Yes, you can.
    Purchase the upgrade.
    When when you run the LR5 installer it will see you have the Mac app store version and it will get a serial number from Adobe to use for LR5.
    Very helpful - if there were a serial number!!!!
    There will be a serial number WHEN YOU RUN THE INSTALLER!
    It will get one from Adobe.
    You're welcome!

  • It wont let me delete my apple software update so i can download the new version of itunes, it say cannot find the folder

    it wont let me delete my apple software update so i can download the new version of itunes, it say cannot find the folder

    Download the Windows Installer CleanUp utility from the following page (use one of the links under the thingy):
    http://majorgeeks.com/download.php?det=4459
    To install the utility, doubleclick the msicuu2.exe file you downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any Apple Software Update entries and click "Remove", as per the following screenshot:
    Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • Downloaded itunes 7 update but it cannot find the installation file

    I have had itunes installed and being used for about 3 years. I have the apple update utility loaded so i get notifaction of the lastest versions as the become available.
    Following the most recent upgrade my itunes failed to load as it is telling me it cannot find the installation package as it is located on a network drive. (this is a standalone pc).
    I cant open the version that was installed as it tells me i can only open installed items. To add insult to injury i cant remove it or install an earlier version.
    Basically i cant use my ipod as i cant open, remove or re-install itunes. To say i am annoyed by this is an understatement.
    Any help or guidance would be greatly appreciated.

    Following the most recent upgrade my itunes failed to load as it is telling me it cannot find the installation package as it is located on a network drive. (this is a standalone pc).
    with one of those, let's try the following procedure.
    first, head into your Add/Remove programs and uninstall your QuickTime. if it goes, good. if it doesn't, we'll just attend to it when we attend to itunes.
    next, download and install the Windows Installer CleanUp utility. use it to clear any existing itunes and/or QuickTime installation configuration information from the PC.
    Description of the Windows Installer CleanUp Utility
    next, use the the following document as a guide for manual removal of leftover itunes and quicktime program files:
    Removing iTunes and QuickTime for Windows
    now try another itunes install. does it go through properly this time?

  • I have purchased a ringtone in the iTunes Store for my iPad, and I cannot find the download together with my music. I have received the invoice but I have no product. I am working with iOS6, if that helps. Can anybody help me?

    I have purchased a ringtone in the iTunes Store for my iPad, and I cannot find the download together with my music. I have received the invoice but I have no product. I am working with iOS6, if that helps. Can anybody help me?

    I am confused. Do you mean you found the music, not the tones, or you can't find either?
    If the former, then this is normal. You can't redownload tones from the Cloud.

  • HT201317 I am trying to upload photos from my Windows 7 machine, and I was told to drag them into the photo stream in the iCloud control panel. I have downloaded the control panel several times, but cannot find the place to upload the photos from my Windo

    I am trying to upload photos from my Windows 7 desktop, and was told to go to the iCloud control panel and drag the photos into the
    upload to photo stream icon. I have downloaded the contol panel several times and cannot find the icon to get this done.  HELP 

    If you're trying to add photos to photo stream on your PC, you drag them to your photo stream uploads folder (normally My Pictures\Photo Stream\Uploads).

  • So whenever I try to download the newest itunes file it won't let me finish the install process because I'm missing the "Itunes.msi" file whatever that is and I've done some searches but I cannot find the file. Anyone know what to do?

    So whenever I try to download the newest itunes file it won't let me finish the install process because I'm missing the "Itunes.msi" file whatever that is and I've done some searches but I cannot find the file. Anyone know what to do?

    you can try this thread maybe? https://discussions.apple.com/message/16217061#16217061

Maybe you are looking for