Delete files in /lib/ext folder

I have an applet that used to install and use a third-party jar in /lib/ext. The jar is recently got upgraded but I have problem deploying the new jar file. Because the file is in /lib/ext, it is always loaded and used by JRE, I can't delete the file in code (it is locked). And because it is loaded by the system classloader which has the higher priority, custom classloader does not work either. Is there any way that I can deploy the new jar file without asking all user to manually delete the old jar from /ext/lib folder before running the applet?
Thanks in advance!!
Jack
Edited by: suyuchieh on Jul 5, 2008 9:11 PM
Edited by: suyuchieh on Jul 5, 2008 9:12 PM

suyuchieh wrote:
Yes, I agree that the jar should not be installed in that folder from the beginning (the applet had code to copy the jar to that folder whenever it is not there). There may be some historical reason but it is a problem now~As you've already noted, you can't while the applet itself is running, and you shouldn't be able to anyway. That would be a pretty lax security policy that allowed an Applet to write anywhere in the jdk/jre directories.
Include a notice on the site that, if they have not already done so, that they should close the site, remove the jar, and then reconnect.

Similar Messages

  • Delete file from an FTP folder

    Hi expert,
    I wanna know if it's possible delete with abap command a file from a FTP folder.
    I mean, there is a ftp folder periodically filled with excel files. An ABAP program read this folder and the files content must be moved in a SAP Table. Aftre this, I must delete excel files with an abap command write in the same abap program.
    Thanks a lot
    Michele Garofalo

    1) read directory with fm EPS_GET_DIRECTORY_LISTING
    2) process table dir_list
    and 3) finally delete files with
    abap command:  DELETE DATASET dsn.
    hope that helps
    Andreas

  • Deleting files in a smart folder

    If I delete a file in a smart folder, does it delete it from the 'puter or just the smart folder?
    (after 6 years, I finally looked at smart folders. They are quite nice, but allow for the bad habit of not organizing correctly)

    Deleting a file in a smart folder moves it to the Trash.
    (48354)

  • How do I remove or delete files within a document folder? I have tried dragging the files to the trash and it does not work

    How do I remove or delete files and image files within a document foler?  I have tried dragging the files to the trash, but that is not working. 

    Right-click (or ctrl-click) on a file. If the "move to Trash" option is greyed out, select "get info" and read the permissions at the bottom of the info window.
    Wat are they?
    Do the same for the enclosing folder - what permissions does that have?

  • Cannot delete files from Mail Junk folder

    I have an issue with Mail.  I have two messages without content that cannot be deleted from the Junk folder.  I can change the classification (junk to not junk); try to move them to another folder, but nothing works.  This problem is unique to my MacBook Air -- I have the same programs and files on my office MacBook Pro and there is no issue -- I was able to delete the same files without an issue.

    I am running mac 10.6.7
    I have tried updating the software, operating system,
    Then you should have Mac OS X 10.6.8

  • Delete File From Mounted Volume

    Hey,
    I am trying to delete the "Calendar Cache" files on both my laptop PowerBook G4 and the Mac Pro Quad that I sync my calendars with. I am using ChronoSync and the individual calendars sync fine, but there is a little house keeping needed with the cache file. They need to be deleted on both systems in order to "refresh" the views of the calendars.
    So after the sync of calendars, I have the software initiating an AppleScript that deletes both. Here's the script:
    +(* PowerBook Files / delete cache file *)+
    +(* Please note that both systems have the same username. This may be arise a conflict *)+
    +tell application "Finder"+
    + activate+
    + tell application "Finder" to delete file "Calendar Cache" of folder "Calendars" of folder "Library" of disk "useranthony"+
    +end tell+
    +(* Mac Pro Quad/ delete cache file *)+
    +tell application "Finder"+
    + mount volume "afp://10.10.10.1/anthonyabraira"+
    + tell application "Finder" to delete file "Calendar Cache" of folder "Calendars" of folder "Library" of disk "/volumes/useranthony"+
    +end tell+
    I am having trouble addressing a deletion on the networked Mac Pro Quad.

    why send it to the trash — just delete it...
    (* PowerBook Files / delete cache file )
    try
            do shell script "rm -rf /Library/Calendars/Calendar\\ Cache"
    end try
    you may need a delay for the Mac Pro Quad to mount
    ( Mac Pro Quad/ delete cache file *)
    --the mount and then the delay
    delay 4
    try
            do shell script "rm -rf /THE-CORRECT/PATH-HERE/Library/Calendars/Calendar\\ Cache"
    end try
    Tom

  • Deleted file wont show in the trash

    Hi, i'm new to Arch and english is not my native, so please bear with me
    I've installed Arch with Gnome 3 into my ThinkPad T520 with following configuration:
    SSD formatted partitionless with btrfs filesystem.
    I created 10 subvolume to organize my files.
    mount /dev/sda /mnt/hdd
    btrfs subvol list /mnt/hdd
    ID 260 gen 2317 top level 5 path _snapshots
    ID 263 gen 3757 top level 5 path _arch
    ID 264 gen 3757 top level 5 path _home
    ID 281 gen 3491 top level 5 path _documents
    ID 283 gen 3538 top level 5 path _vms
    ID 284 gen 3293 top level 5 path _tugas_sd
    ID 285 gen 3158 top level 5 path _pictures
    ID 286 gen 3683 top level 5 path _music
    ID 287 gen 3224 top level 5 path _videos
    ID 288 gen 3506 top level 5 path _software
    ID 430 gen 2338 top level 5 path _snapshots/arch-2014-04-05
    Then mount that sobvolumes to directory inside my /home
    cat /etc/fstab
    # UUID=19ba2e27-6f2a-4410-a7ee-00c36f8bfa15 LABEL=arch
    UUID=19ba2e27-6f2a-4410-a7ee-00c36f8bfa15 / btrfs rw,relatime,compress=lzo,ssd,space_cache,autodefrag,inode_cache,subvol=_arch 0 0
    UUID=19ba2e27-6f2a-4410-a7ee-00c36f8bfa15 /home btrfs rw,relatime,compress=lzo,ssd,space_cache,autodefrag,inode_cache,subvol=_home 0 0
    UUID=19ba2e27-6f2a-4410-a7ee-00c36f8bfa15 /home/iza/Documents btrfs defaults,subvol=_documents 0 0
    UUID=19ba2e27-6f2a-4410-a7ee-00c36f8bfa15 /home/iza/Music btrfs defaults,subvol=_music 0 0
    UUID=19ba2e27-6f2a-4410-a7ee-00c36f8bfa15 /home/iza/Pictures btrfs defaults,subvol=_pictures 0 0
    UUID=19ba2e27-6f2a-4410-a7ee-00c36f8bfa15 /home/iza/Software btrfs defaults,subvol=_software 0 0
    UUID=19ba2e27-6f2a-4410-a7ee-00c36f8bfa15 /home/iza/Tugas\040SD btrfs defaults,subvol=_tugas_sd 0 0
    UUID=19ba2e27-6f2a-4410-a7ee-00c36f8bfa15 /home/iza/Videos btrfs defaults,subvol=_videos 0 0
    UUID=19ba2e27-6f2a-4410-a7ee-00c36f8bfa15 /home/iza/VMs btrfs defaults,subvol=_vms 0 0
    All nice and well, except one thing. When i delete files originally locate in subvolumes but mounted to my /home, the files gone but not showing in the trash.
    Instead, deleted files moved to hidden folder named .Trash-1000.
    If that sound confussing, let me give an example, when i delete file from /home/iza then that file gone and showing up in the trash. But, when i delete a file from /home/iza/Documents then that file is gone but not showing in the trash but moved to /home/iza/Documents/.Trash-1000.
    Is this a bug in btrfs or because my messy mountpoint/fstab?
    Thanx

    If you delete a file on a different partition; a .Trash-1000 (where the last part is your userid) directory is created (in the root of the partition); it will contain the file. Gnome should apparently traverse all partitions to merge all these files and show them in the 'Trash'; somehow that doesn't work. Can you check if a .Trash-1000 folder exists on all partitions you created? If they do, the problem is in Gnome not properly populating them.
    The same issue is described here, without a solution unfortunately: https://bbs.archlinux.org/viewtopic.php?id=40580 and http://ubuntuforums.org/showthread.php?t=785512
    Last edited by Spider.007 (2014-04-06 11:29:25)

  • Cannot delete file from shared folder

    While I was looking for another file in my shared folder, I discovered a jpg file named shannonhenry.jpg. All it appears to be is a school photo of a boy, maybe 14 or so. I tried to move it to trash to delete it because I do not know who this kid is, and I got an error message saying that I do not have sufficient priviledges. Anyone know what this file is or could be????

    Well Kelley, that photo did not come with the system so it had to come from you or someone else putting in the Shared folder.
    Choose the file and "get info" (command- i) turn the dislclosure triangle on "Ownership & Permissions" make sure you can "read & write" and make yourself the "owner"(open the lock and enter your admin password).
    Then check under General, turn the disclosure triangle and be sure the "locked" box in NOT checked.
    Let us know.
    -mj
    [email protected]

  • Hi,delete file from folder?

    hi,i am deleting file from folder as follwos
    <%@ page import="java.io.File" %>
    <%
    File myFile = new File("D:\\jakarta-tomcat-4.1.18\\webapps\\ROOT\\upload_files\\xyz.txt");
    myFile.delete();
    %>
    i am sucessfuly deleted file from above path.
    if i use follwing code i unable to delete my file, can one help,
    how to do it,
    <%@ page import="java.io.File" %>
    <%
    String fname="xyz.txt";
    File myFile = new File("D:\\jakarta-tomcat-4.1.18\\webapps\\ROOT\\upload_files\\'"+fname+"'");
    myFile.delete();
    %>
    thanks
    pullareddy

    i think if above doesn't work try this it should work
    change this line
    File myFile = new File("D:\\jakarta-tomcat-4.1.18\\webapps\\ROOT\\upload_files\\'"+fname+"'");
    to this
    File myFile = new File("D:\\jakarta-tomcat-4.1.18\\webapps\\ROOT\\upload_files\\"+fname);

  • Delete file from folder only (not from list)

    Hi all,
    I've searched a lot and didn't succeed so far, that's why I need your help. In a cloud context, I'm actually creating and uploading files (pdf and/or xml files) "on the go" to sharepoint folders via the SOAP API and this is perfectly working. But
    in a cloud context, I also need to decomission services which is translated into deleting files into Sharepoint.
    That's where it became complicated, because according to the API we cannot delete files if they are not part of a list structure, which is not my case. Is that true ?
    The only info I have when trying to delete a file via the SOAP Api is : its name, its folder, and the endpoint where the folder is. So my question remains simple I guess : is this possible ? If so, how to (a link to the SOAP body would be usefull)
    Thanks a lot
    Regards
    Baptiste

    Hi,
    According to your post, my understanding is that you want to delete file from folder.
    In SharePoint 2010, It is recommended to use Client Object Model to achieve it, the following code snippet for your reference:
    string siteURL = "http://siteurl";
    ClientContext context = new ClientContext(siteURL);
    //specific user
    NetworkCredential credentials = new NetworkCredential("username", "password", "domain");
    context.Credentials = credentials;
    Web web = context.Web;
    context.Load(web);
    context.ExecuteQuery();
    string relativeUrl =web.ServerRelativeUrl +"/DocumentLibraryName/FolderName/FileName";
    File file = web.GetFileByServerRelativeUrl(relativeUrl);
    context.Load(file);
    file.DeleteObject();
    context.ExecuteQuery();
    If you still want to use SOAP API, we can use the UpdateListItems method under Lists web service to achieve it.
    http://www.dhirendrayadav.com/2010/06/delete-list-items-using-web-service.html
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/61466984-1844-48a1-8c1e-1c59a0f9876a/move-and-delete-files-remotely-using-sharepoint-web-services-?forum=sharepointdevelopmentlegacy
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Firefox does not delete the .part file from my download folder after a successful download

    First off, I'm on a MacBook Pro, running 10.6.4 and FF3.6.12
    I've recently noticed that on occasion Firefox does not seem to delete the .part file associated with a successful download. The .part file (with a name consisting of a string of random characters followed by a .part extension) is visible in my Download folder stack, although not visible in the actual folder view. I cannot drag this file from the stack to the trash.
    The real problem stems from the fact that this seems to create a directory error on my hard drive. Were I to run Disk Utility (which I will have to do... again!), it would return with an error saying something like "incorrect block length", requiring me to boot up from my install disk and repair the drive.
    Is this maybe a bug? Is there something I might be doing wrong? Could an extension like AdBlock be messing up my downloads?

    It seems that FireFox leaves those partial download files if for any reason they get interrupted. It's possible to resume the download through various uninteresting means, but if you're like me, it gets filled up with files that I intentionally did not complete downloading.
    If you're terminal-savvy, you can set up a script that cleans up old .part files. Here's what I've set in my crontab:
    0 * * * * /usr/bin/find ~/Downloads/*.part -atime +1 -exec rm {} \; &> /dev/null
    It will delete any files in my downloads folder that are at least 1 day old.
    To install this in your crontab, launch terminal and type "crontab -e"
    This will bring up a text editor, probably vi. You'll see a bunch of ~'s down the left side. Type "i" to go into "insert" mode. The bottom left will say "-- INSERT --"
    Copy and paste (or type) the line of code I have above.
    Hit enter just to make sure you have a newline at the end.
    Hit "Escape" to exit the insert mode.
    Hit Shift-Z Shift-Z (that's Shift-Z twice) to exit the editor.
    You should see a status message "crontab: installing new crontab"
    If you type "crontab -l" you should see your newly installed crontab.
    At the top of the next hour, any .part files that are more than a day old should be deleted, and this should continue forever.

  • If i delete a file from a smart folder is it deleted from the hard drive?

    I've got a late 2011 17" MacBook Pro with a 750 GB harddrive. I'm trying to free up space by deleting movie files. I spoke with tech support about this, and they suggested creating a smart folder of all my movie files in order to find them and delte them. I did this and deleted many files, but when I open system information to check on the amount of hard drive space, I'm still seeing the same amount of hard drive space dedicated to movies.
    If I make a smart folder and delete files in that, am I really deleting them from my hard drive or just from the smart folder?

    What files are stored automatically by Time Machine?  I thought Time Machine pretty much saved everything on my hard drive to my external hard drive.  If that is the case, wouldn't my music files and picture files be on Time Machine (via my external hard drive)?
    Time Machine does backup almost all files on your hard drive, unless you have chosen to exclude them. There are a few exceptions, but nothing you should worry about. Your music and photos should be there, but Time Machine will not backup your iPhoto library if iPhoto is open.
    Also, are the photos from iPhoto automatically stored on my external hard drive via Time Machine?  If so, can I delete the pictures from iPhoto without deleting them from the external hard drive?
    Yes to both questions, with the above cavat that Time Machine won't backup the library if iPhoto is open.
    I notice that it takes iPhoto quite a while to load, and if deleting those photos would allow it to load quicker I would delete them (providing they would remain on the external hard drive.
    I only have a few pictures in iPhoto, compared to my wife's 3,500+, and my iPhoto doesn't load appreciably faster that her's does even though I have a faster computer. In my opinion, it isn't worth the effort it would take to delete them for such a small gain.
    You should have at least 2 complete backups to try to make sure you won't lose any data. Hard drives do fail and/or files can become corrupted. Time Machine can back up to more than one external hard drive or you can use a cloning program.
    Time Machine FAQ

  • HT203200 Cannot delete the file from the itunes folder

    I cannont delete the file from the itunes folder because it tells me I need permission to do so.  I am the admin person for the laptop plus I have checked my permissions under the security tab in the files properties.  How do I delete this file to start again?  It downloaded 1.2GB of the file before the error message appeared, so its paid for and all but not looking like I'll get to watch it before the time runs out on the movie being available for me to watch. :-(

    Try deleting the file without iTunes running.
    When you next open iTunes it should then be marked as a missing file and you should be able to delete the entry from iTunes.
    Hope this works
    Regards,
    Colin R.

  • I cannot delete a file from the document folder.  I can move it to the trash and then empty the trash, but when I go back to the documents folder it is still there.

    I cannot delete a file from the documents folder.  I can move it to the trash and then empty it, but when I go back to the documents folder, the file is still there.

    Gay,
    I wonder what your computing environment is. Is your account being administrated by another account? Are you working in an account subject to "Parental Controls"?
    Jerry

  • Hello,  I have a strange file in my Users folder, named PortDetect.log I have no idea which app created it and it reappears when I delete it.  Has anyone got the same file? Or know where it may originate from?  Thanks in advance!

    Hello,
    I have a strange file in my Users folder, named PortDetect.log
    I have no idea which app created it and it reappears when I delete it.
    Has anyone got the same file? Or know where it may originate from?
    Thanks in advance!

    know where it may originate from?
    The Huawei wireless modem driver.

Maybe you are looking for