Accessing and Moving files in the Cached Location

I am having trouble accessing jar files in the cached location where WebStart puts files after an install.
I cannot do the following:
1. Start a separate process within the main process using a jar file brought over by WebStart.
See the jnlp file below, the jar file I want to run as a separate process is second.jar.
2. Move a jar file from the cached location to some other location on disk.
All of this is attempted on my own machine with Admin rights.
Here is the jnlp file:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+"
codebase="http://server/test/"
href="test.jnlp">
<information>
<title>Test App</title>
<vendor>None</vendor>
<homepage href="home.html"/>
<description>Install the Client Application</description>
<description kind="short">This is a description, kind = \"short\"</description>
<description kind="tooltip">This is a description, kind = \"tooltip\"</description>
<icon href="img/chart.gif"/>
</information>
<security><all-permissions/></security>
<resources>
<j2se version="1.4+"/>
<jar href="main.jar" main="true"/>
<jar href="second.jar"/>
</resources>
<application-desc main-class="MainApp"/>
</jnlp>

I'm having a few problems following your suggestion. We have main.jar and second.jar. In your solution you say to access some file in the jar, for me this is second.jar. I added a file called chart.gif to second.jar.
The following code is inside main.jar to access chart.gif inside second.jar:
URL url = getClass().getClassLoader().getResource("images/chart.gif");
I verified that images/chart.gif is bundled inside second.jar by doing a "jar tf second.jar".
The problem is when I re-load the updated jar files, and run the client app, the URL is null.
I think your idea is to access any file in the other jar file to get at the url, and finally to get at the path
of the jar file and execute it inside main.jar.
So I am not able to access a resource that is in second.jar from main.jar.

Similar Messages

  • I am using a late 2008 macbook and have recently purchased a WD Passport Ultra 1TB to use for storage.  I have formatted the drive and successfully moved files onto the drive, however now I am unable to locate the drive within FINDER. Please HELP!

    I am using a late 2008 macbook and have recently purchased a WD passport ultra 1TB drive to use as storage.  I have successfully formatted the drive, and moved files from macbook onto it, however now I cannot locate the drive within FINDER, even though it is showing within disc utility.  Please HELP!!!!

    Welcome to Apple Support Communities
    Open a Finder window, and your external drive should show up in the sidebar, under "Devices".
    A different way is to go to Finder menu (in the menu bar) > Preferences > General, and tick "External disks". If your external drive is detected by OS X, it will show up at the top right corner of Desktop, so double-click it to access to the content.

  • Why does the new operating system not delete the moved files from their original location - it seems like an enormous waste of space, time and effort to clean up every file once you've moved it

    Why does the new operating system not delete the moved files from their original locations - it seems like an enormous waste of space, time and effort to clean up every file once you've moved it - also, when transferring large amounts of files it becomes a very large problem remembering which files were transferred and which not.

    You're going to need to be more specific, as I'm not quite sure I understand what you're talking about.
    If you're referring to copying from an external hard drive or flash drive, and you want to actually move files rather than copy them, you can hold down the option key to force it to do a "move" rather than a "copy." This is not new behavior, though... the Mac OS has worked this way as long as I can recall (and I've been using it since 1984).
    If you're having a problem with trying to move files from one place to another on a single drive causing them to be copied instead, that is likely because of some permissions issue preventing you from actually being able to move them.

  • Suddenly I have problems moving files to the trash...  get a dialog saying Finder wants to make changes and I must provide the password... Any explanation or ideas how I can get this to stop?

    Suddenly I have problems moving files to the trash...  get a dialog saying Finder wants to make changes and I must provide the password... Any explanation or ideas how I can get this to stop?

    Please take these steps if you're prompted for a password when moving items in your home folder to the Trash.
    1. Triple-click anywhere in the line below on this page to select it:
    ~/.Trash
    2. Right-click or control-click the highlighted line and select
    Services ▹ Show Info
    from the contextual menu.* An Info dialog should open.
    3. The dialog should show "You can read and write" in the Sharing & Permissions section. If that's not what it shows, click the padlock icon in the lower right corner of the window and enter your password when prompted. Use the plus- and minus-sign buttons to give yourself Read & Write access and "everyone" No Access. Delete any other entries in the access list.
    4. In the General section, uncheck the box marked Locked if it's checked.
    5. From the action menu (gear icon) at the bottom of the dialog, select Apply to enclosed items and confirm.
    6. Close the Info window and test.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. Open a TextEdit window and paste into it (command-V). Select the line you just pasted and continue as above.

  • My laptop had to be reimaged and all software and programs were taken off.  I installed itunes again but can't access my library.  I get an error message "the folder itunes cannot be found or created and is required.  The default location for this folder

    I can't access my itunes music on my laptop after having it re-imaged.  I installed itunes again but can't access the music folder.  I get the following message when I click to open itunes:  "The folder itunes cannot be found or created, and is required.  The default location for this folder is the Music folder.
    I have an iPad2, and iPad mini, and an iPhone5 with a different number of songs on each.  I want to sync everything -- should have close to 800 songs.  Tried to get support from Apple but would be charged for help. 

    I have a Windows 7 operating system my computer runs from.

  • I purchased a song on itunes and its file can not be located. its in my library but i cant play the song

    I purchased a song on itunes and its file can not be located. Its listed in my library but can not play. A message pops up that read. Can not locate file then it gives me an option to locate. When I click locate it opens a box. Dont know what to do after that

    Hi TKCDM1!
    You should try to get this purchase onto your iOS device by using the suggestions in the following article:
    Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/ht2519
    Thanks for being a part of the Apple Support Communities!
    Regards,
    Braden

  • I have files in my iTunes media folder that somehow are not in my library. How do I get iTunes to scan my media folder and add missing files to my library without making a copy of each file in the same location?

    I have files in my iTunes media folder that somehow are not in my library. How do I get iTunes to scan my media folder and add missing files to my library without making a copy of each file in the same location? If I use add file / folder to library, it scans the folder and then makes a copy of any file that is not in my library in the exact same location; I recal in older versions of iTunes being able to just drag my media folder into my library and it would update missing links.

    Only the songs that are connected to iTunes will be copied when you consolidate to a new folder.
    Splitting the media folder away from the usual location makes it harder to move iTunes in the future.
    Are you go move everything back once you've tidied up or are you going to leave it that way? Either way I'd recommend you create an iTunes folder at the new location, an iTunes Media folder inside that, and consolidate to this new iTunes Media folder. You should also use the option File > LIbrary > Organize Library > Rearrange files in the folder "<Media Folder"> if you have not already done so.
    tt2

  • How to change the CACHE location to a different drive

    My Bridge's cache is located on my C drive, which is almost full.  I would like to change the cache location to drive D, which is also an internal drive, but with lots of available space.  Unfortunately, when I go to Preferences and click the "Choose" button for the cache location, it only shows me my C drive.  I am 99% sure I originally installed all of the creative cloud on my C drive, but then uninstalled it and reinstalled it on my D drive(because of space reasons).  It appears as if the application resides on the D drive, but all the app data remains on the C drive.
    Is there anyway to access the D drive for the cache? 
    Is there anyway to move the app data files to my D drive?
    Thanks,
    Paul

    Hi Ronald,
    Thanks for your response.  Here is what I see when I click the button to choose a cache location:
    I have explored the file structure and can't see anything outside of these folders, which are on the C drive.

  • How to access a class file outside the package?

    created a two java files Counter.java and TestCounter.java as shown below:
    public class Counter
         public void print()
              System.out.println("counter");
    package foo;
    public class TestCounter
         public static void main(String args[])
              Counter c = new Counter();
              c.print();
    Both these files are stored under "D:\Test". I first compiled Counter.java and got Counter.class which resides in folder "D:\Test"
    when i compile TestCounter.java i got the following error message:
    D:\Test>javac -classpath "d:\Test" -d "d:\Test" TestCounter.java
    TestCounter.java:6: cannot find symbol
    symbol : class Counter
    location: class foo.TestCounter
    Counter c = new Counter();
    ^
    TestCounter.java:6: cannot find symbol
    symbol : class Counter
    location: class foo.TestCounter
    Counter c = new Counter();
    ^
    2 errors
    what could be the problem. Is it possible to access a class file outside the package?

    ya that's fine..if we have two java files where both resides in the same package works fine or two java files which donot have a package statement also works fine. But my doubt is, i have a Counter.class which does not reside in a package and i have a TestCounter.class which resides in a package "foo", in such a scenario, how do i tell to the compiler that "Counter.class resides in such a path, please look at that and give me TestCounter.class". i cannot use import statement to import Counter.class in TestCounter.java because i donot have a package for Counter.java.

  • Import Error: Could not move a file to the requested location.

    After importing with the move option I get "Could not move a file to the requested location." and a list of all the
    images. The images were all moved so the sync option finds them in the destination folders. It is just a pain to go through this two step process. Note this wasn't the initial behavior at first the process worked.
    Lightroom v3 (release copy)
    Vista

    Odd thing was this wasn't a problem when I first started using the LR3 release this has developed in the last few hours even after a reboot.

  • How to open and save file like the Notepad Demo do?

    I am a newer to Java Web Start. I found that in the Notepad Demo, when user try to open or save file, a message box appear and give the user some security suggestions.
    In my application, I used a JFileChooser and set the <security> element to <j2ee-application-client-permissions/> in the jnlp file. But the application will thow an exception:
    access denied (java.io.FilePermission C:\Documents and Settings\Administrator\desktop\Java Web Start.lnk read)
    Can someone tell me how to solve this problem. By the way, where can I find the source of the Notepad Demo. I want my application to open and save file just like the Notepad Demo do.

    The Notpad demo uses the JNLP api to read and write files. The api doc can be found at:
    http://java.sun.com/products/javawebstart/docs/javadoc/index.html
    Although the Notpad demo source is not available, there is other sample code available at:
    http://developer.java.sun.com/developer/releases/javawebstart/
    Included here is the webpad demo, which uses the FileOpenService and
    FileSaveService API's.

  • How can you take a photo from one event and put it in another, without dragging to desktop and dragging back into iPhoto and moving it to the event folder I want it in.

    As the title says I need help on how to take a photo from one event and put it in another, without dragging to desktop and dragging back into iPhoto and moving it to the event folder I want it in. Right now when I want to move a picture from one event to another I drag it to my desktop then delete it from iPhoto then I drag it back into iPhoto and put where I want it.An example would be taking a photo from the Christmas event and add it to a specific person event.  Can I do that within the events section without all the dragging. Also is there anyway I can remove duplicates from iPhoto without going through each and every file. Any help would be greatly appreciated.

    Apple doesn't make it easy to do what you want.  However, here's how I do it. 
    Select the photo you want to move and create a new Event for it via the Event ➙ Create Event menu option.
    In the Event mode select the new Event with the one picture and drag it onto the Event you want to move the photo to.

  • How can I create a client console and work together with the Cache Server?

    How can I edit the following Cache-Server.cmd file to create a client console and work together with the Cache Server?
    The following is the cache server file: contacts-cache-server.cmd
    @echo off
    setlocal
    if (%COHERENCE_HOME%)==() (
    set COHERENCE_HOME=c:\coherence
    set CONFIG=C:\home\oracle\coherence\Contacts
    set COH_OPTS=%COH_OPTS% -server -cp %COHERENCE_HOME%\lib\coherence.jar;C:\home\oracle\
    coherence\Contacts;C:\home\oracle\coherence\Contacts\classes;
    set COH_OPTS=%COH_OPTS% -Dtangosol.coherence.cacheconfig=%CONFIG%\contacts-cache-config.xml
    java %COH_OPTS% -Xms1g -Xmx1g -Xloggc: com.tangosol.net.DefaultCacheServer %2 %3 %4 %5 %6 %7
    :exitEdited by: junez on 23-Oct-2009 09:20

    Hi
    To run the console, change DefaultCacheServer to CacheFactory
    Paul

  • Why have individual files in the cache have been placed in their own folders

    I was servicing a client's laptop this morning and on checking the cache found that all the individual files that are normally there have been put into single directories. This mean there are directories marked as A,B,C etc, and each of those directories contain sub-directories numbered up to 100, followed by alpha characters, AD,AC and on. Each of these numerous folders contain just one file.
    I have never before encountered this and am wondering how I can get the cache back to its normal state. System is XP Home SP3, fully updated; Firefox version 5 [self installed update to version 6 before I powered down].
    I appreciate any clues or remedies.
    Clinton

    Firefox 4 and later versions use a more sophisticated file structure and creates many subdirectories in the main cache folder to make it possible to store more files in the cache.
    You can do a search for all files *.* in Windows Explorer (or another file manager) to see all the files in the cache in one list.
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=597224 Bug 597224] - HTTP Cache: use directory tree to store cache files

  • I recently had a kernel panic in which I think my hard drive only had so much space left after I ran a bunch of drivers I thought I needed. I uninstalled all and moved files. For some odd reason I'm not getting sound of of my hdtv/monitor.HELP?

    I recently had a kernel panic in which I think my hard drive only had so much space left after I ran a bunch of drivers I thought I needed. I uninstalled all and moved files. For some odd reason I'm not getting sound of of my hdtv/monitor.HELP? I uninstalled all the drives and apps I download. I moived files either to trash if not needed, and others to other external drives. I went into disk utility and did a repair disk permission and verify disk. Clean out junk files. Now my hdtv/monitor does not give me any sound, nor does my mac mini. Can someone please tell me what to do?

    What drivers?

Maybe you are looking for

  • Code for calculating variance between plan and actual in Co module

    Hi Abbapers, I have to develop a  2 fresh report : One for calculating the variance for the Plan/Actual in controlling and second for sales variance for the month Jan to Dec . I need your help as I have to complete this reports in this week . Its Bit

  • USB nightmare - MSI K8N

    Hi all, I have a problem with my MSI K8N SLI premium mobo. If I leave windows alone, without using it for a while, I get the blue screen with a USB_ROOT error. I have tried turning off some special setting in BIOS but nothing helped, then I just remo

  • HP Color Laserjet 3600 with Snow Leopard

    I know this model of printer (HP3600n) does not have a good reputation. But I have to deal with that because our school bought them before I started working there. The printers had been working 70% well with Leopard/Tiger last year. This year we upgr

  • How to set up HP PSC 2410 printer for mac and windows

    The printer currently works with the MAC but we have a new PC in the house and would like the printer to service both computers.  Can the printer be set up to work with either one wireless?

  • Tax Base amount calculation in MIRO

    Hi friends , Need your help on the following issue 1.     PO item price is Rs 20/-  &  Tax is 7 % . But Tax 7 % should be calculated on                 Rs 100/- (20+80 =100)  in MIRO . i.e. Assessable value for tax is Rs 100/- 2.     We tried this sc