Cannot delete jar file, in us by another person

I cannot delete a .jar file from my hard drive called C:\javaarchive.jar . I have restarted my computer so no programs running, and tried again to remove it. Always says 'it is being used by another person or program', stop other programs and try again.

Please take your windows support question to a windows support forum.
These forums are for help for Java programmers needing help with their Java code.
We cannot help you solve whatever problems you are having with whatever random program or service. That's not what this forum is about.

Similar Messages

  • 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

  • Cannot Delete CPTL file from Desktop using Vista

    Hi All,
    I cannot Delete CPTL file from Desktop using Vista. Explorer
    crashes. It is a Captivate 2 file.
    I have tried (with no luck):
    - logging in as a different user and deleting the file.
    - running explorer as an Administrator
    - uninstalling Captivate.
    Anyone got any ideas?
    Cheers,
    Raef

    Hi Raef,
    That is a strange issue. Here are a couple more ideas you
    could try:
    - Have you tried renaming the file (including suffix)?
    - Have you rebooted?
    - Do you get any error messages when trying to delete, such
    as "Acess Denied"?
    - Is your machine networked? Is it possible someone else has
    the file open?
    - Can the file be moved to another location or put in a
    folder (and then deleted)?
    - Have you tried using the Command Prompt / DOS mode to
    delete the file?
    It sounds like it could be a Vista issue so I would look at
    the Microsoft Vista forums too. Sorry I do not have an exact
    answer.
    IHTH,
    Aaron

  • Cannot delete exe files - The action can't be completed because the file is open in Windows Explorer

    We have received 3 new computers with Windows 8.1. All of us 3 have the same problem: we cannot delete exe files with message "The action can't be completed because the file is open in Windows Explorer"
    For example, I download skypeinstall.exe on desktop, install the program correctly and then try to delete the file: file is in use by Windows Explorer, cannot be delete.
    We reboot computer, we are able to delete the file. But, if I restore the file from the recycle bin on the desktop, I cannot delete it again until I reboot the PC. I used ProcessExplorer to see what is locking it and I can see 5 instances of explorer.exe
    locking the file.
    I can always reproduce the same way:
    1-Reboot
    2-Delete exe file
    3-Restore file
    4-Delete stop working and 5 explorer.exe handle are locking it.
    I have tried the following so far after reading multiple threads:
    - De-activating Windows Search service
    - Activating User Experience service
    - Deleting from command prompt (no success)
    - In folder options: inactivate display icon on thumbnail and activate always display icons, never thumbnail
    - Changing folder view (contents, detail, small icons...)
    - Using Lock Hunter - not working until reboot
    None of these worked.
    We all have Windows 8.1 with Crucial SSD drive, could the problem be linked with the SSD drive incompatibility?
    Any help would be appreciated.

    Hi,
    Please try to make a clean boot for your system, then check if this problem resolved.
    Clean Boot: http://support.microsoft.com/kb/929135
    If problem persists, try to open Resource Monitor to check handle of Explorer.exe, if there any exception, end them for test.
    Roger Lu
    TechNet Community Support

  • I cannot delete a file from desktop

    I cannot delete a file on my desktop that I downloaded from the internet.  The error message is 'cannot be moved to trash because it cannot be deleted.'
    I cannot 'get info' either. 

    Solving Trash Problems...
    http://thexlab.com/faqs/trash.html

  • JRockIt Deleting JAR files - Error loading class

    Hi there,
    Customer is facing a very weird issue. Their application has an application that contains some EJBs and Web applications that, apparently for no reason, it starts to unload classes and delete JAR files and WAR files from the Weblogic's "extract" directory. If I bounce the application, everything starts working fine until a moment where the issues starts again.
    I thought this was any kind of memory issue that was not allowing the JVM to free enough resource for loading the classes again after unloading it. But we gave enough memory for the JVM and it stills happening.
    Thoughts? Any idea that might help us on troubleshooting is very welcome at this time.
    Thanks in advance,
    Davi

    e-blade wrote:
    Manifest-Version: 1.0
    Class-Path: lib/tools.jar
    Created-By: 1.6.0_18 (Sun Microsystems Inc.)
    Main-Class: MainThe line in bold means: when app.jar will be run, it will look for additional classes in <same OS directory as itself>/lib/tools.jar.
    It does not mean that it will look inside itself in the JAR directory /lib/tools.jar.

  • Can't delete, rename files, or move to another folder

    I had posted earlier about not being able to delete, rename files, or move to another folder. It never was resolved here, and I guess Apple still hasn't done anything about it. Here's a great workaround I found though in case others need something. Download the program called "Unlocker", it's free and you can get it at http://ccollomb.free.fr/unlocker/ When you get the message about the file being in use, even though QuickTime isn't even open, you can unlock the f'ing file and do whatever you want to then, move, uh DELETE, or rename, or whatever. Try it, it's the best thing going so far seeing Apple isn't doing anything about this problem.

    Hi there,
    I am still struggling with this problem. Actually my coworker has the same machine, Apple pro with windows xp installed, but he does not have this problem with his quicktime 7.5. I uninstalled 7.5 and installed 7.2, but it did not solve the problem. The fact is that I don't have the problem in my laptop which I am using it in the office. I am still trouble shooting. Hopefully I can find an answer.
    Peace

  • I am setting up a lab of imacs in a school.  I have successfully bound the imacs to our network and can log in using the windows account.  However, I cannot access my files.  Is there another step?

    I am setting up a lab of imacs in a school.  Our network is windows based using active directoy.  I have successfully bound the imacs to our network and can log in using the windows account.  However, I cannot access my files.  Is there another step?

    If the modem is also a router, either use the modem in bridge and run pppoe client on the TC.. that is assuming ADSL or similar eg vdsl. If it is cable service.. and the modem is a router, then bridge the TC.. go to internet page and select connect by ethernet and below that set connection sharing to bridge.
    Please tell us more about the modem if the above gives you issues.

  • Classloader won't let me delete jar file!

    Hi-
    I am writing a classloader that runs main from a class called MyMain. MyMain loads classes from a jar file called MattTable.jar. I need to be able to delete the jar file once the classes are loaded from it, or even just delete it at the end of the program. Either way, the classloader will not release it so I cannot delete the jar file until after my program finishes. I want to be able to delete it from with in my code after the method is invoked.
    URL urls[] = new URL[] { new File(".").toURL() };
    URLClassLoader loader = new URLClassLoader( urls );
    Class c = loader.loadClass(mainClass);
    Method m1 = c.getMethod("main", new Class[] { args.getClass() });
    //main loads classes from an outside jar file
    m1.invoke( null, new Object[] {args} );
    //Here is where I want to delete the jar file
    //I would even accept file.deleteOnExit() but this won't work either
    If anyone can help me figure out how to delete this file, it would be a great help!
    Thanks,
    Matt

    Hi,
    I've created a small classloader for jar files which releases the handle every time a class is loaded. It might still need some optimization, but at least it works:import java.util.zip.*;
    import java.util.*;
    import java.io.*;
    public class ZipClassLoader extends ClassLoader {
         private Hashtable classes = new Hashtable();
         private File f;
         public ZipClassLoader(String zipFileName) {
              this (new File(zipFileName));
         public ZipClassLoader(File zipFile) {
              f = zipFile;
         public Class loadClass(String className) throws ClassNotFoundException {
              return (loadClass(className, true));
         public synchronized Class loadClass(String className, boolean resolve) throws ClassNotFoundException {
              if (classes.containsKey(className)) return (Class)classes.get(className);
              ZipFile zipFile = null;
              BufferedInputStream bis = null;
              byte[] res = null;
              try {
                   zipFile = new ZipFile(f);
                   ZipEntry zipEntry = zipFile.getEntry(className.replace('.', '/')+".class");
                   res = new byte[(int)zipEntry.getSize()];
                   bis = new BufferedInputStream(zipFile.getInputStream(zipEntry));
                   bis.read(res, 0, res.length);
              } catch (Exception ex) {
              } finally {
                   if (bis!=null) {
                        try {
                             bis.close();
                        } catch (IOException ioex) {}
                   if (zipFile!=null) {
                        try {
                             zipFile.close();
                        } catch (IOException ioex) {}
              if (res == null) return super.findSystemClass(className);
              Class clazz = defineClass(className, res, 0, res.length);
              if (clazz == null) throw new ClassFormatError();
              if (resolve) resolveClass(clazz);
              classes.put(className, clazz);
              return(clazz);
    }This is the test program I've created. It loads a class from the Apache log4j jar file, and deletes the file when the class is loaded:import java.io.File;
    public class Test {
         public static void main(String[] args) throws Exception {
              File f = new File("C:\\jartest\\log4j-1.2.6.jar");
              ZipClassLoader zl = new ZipClassLoader (f);
              Class c = zl.loadClass ("org.apache.log4j.ConsoleAppender", true);
              Object o = c.newInstance();
              System.out.println (o.getClass().getName());
              f.delete();
    }

  • Cannot delete specific files.

    I am unable to delete certain files, but I can delete others. Finder says "The operation cannot be completed because the item...is in use." I have tried:
    *Alt+Empty Trash
    *Secure delete
    *Empty trash from the Terminal
    *Repair permissions
    *Verify disk
    *Various utilities (Trash it!, OnyX, etc.)
    *Restart
    *Closed all applications
    I have noticed that if I try to delete from the Terminal it says "rm: /Users/mymacrules/.Trash/Cannot Delete/nl.lproj: Directory not empty". I also tried to move one file that would not delete from the trash, this file disappears when I click on it, but is there after restart. As long as that specific file is on the desktop it also makes another folder disappear. Even though I can't see it in Finder I can see it with the "ls" command. Any ideas?

    mymacrules wrote:
    I have noticed that if I try to delete from the Terminal it says "rm: /Users/mymacrules/.Trash/Cannot Delete/nl.lproj: Directory not empty".
    Right. The rm command by default will not delete nonempty directories. To force it to, use the recursive flag:
    rm -r /Users/mymacrules/.Trash/Cannot Delete/nl.lproj
    But keep in mind that I'm just a Unix person...people like Joshz who know MacOS better than me may know good reasons to not use the Terminal to try to empty the trash.

  • Cannot delete .PDF files from a shared folder.

    Hello,
    I am having issues with deleting/renaming PDF files!
    Permissions is not an issue as even logged in as the Network Administrator of the Domain, I still can't delete the file.
    The error message I'm recieving is:  cannot delete xxxx.pdf It is being used by another person or program.  Close any programs that might be using this file and try again.
    There are only 1 or 2 users that would have access to the files and neither of them are using them.  I can also reset the security permissions for the file and take ownership, but even after doing these things it doesn't make a difference?
    I've tried various unlocking tools (Unlocker) and none of them report that the file is open or that there are any locks on them.  This only happens with PDF files. If I reboot the sever the problem will go away, but this server needs to be 99.999% of the
    time!
    Help please!

    Hi,
    Windows is somehow accessing Thumbs.db during the time of the folder move/delete attempt.  Please go into Folder options > View > Always show icons, never thumbnails to check if you can delete .PDF files.
    For more detailed information, please refer to the thread below:
    Network folders - cannot move/delete even though not in use
    http://answers.microsoft.com/en-us/windows/forum/windows_7-files/network-folders-cannot-movedelete-even-though-not/14fdcda7-e22e-4991-939b-b3fcdb049e0f
    Best Regards,
    Mandy 
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Cannot delete a file

    Hello. I installed MAMP (www.mamp.info), which lets you run an Apache/MySQL from osx. I decided I didn't want it though and used AppZapper to delete it. Unfortunately though it won't let me get rid of it, and says that a "logs" file is currently in use, but will continue to delete everything else. I'm at work right now, but off the top of my head what's left in the folder is something that looks like:
    MAMP > Library > Logs > cgisock.(extention)
    I've looked through preference, cache, and other such folders to see if anything MAMP related was there but I couldn't find anything.
    I was also considering just doing an upgrade install for Leopard when I get it, but if something's wrong with the system because of this I might just do a fresh install.
    Just wondering if anyone knew what to do about this. Sorry, this is probably in the wrong forum but it seemed to be the best choice. I posted on the MAMP forums but couldn't get an answer.
    Thanks
    rr

    Sometimes it happens that the Finder just doesn't want to empty the trash anymore and says "The operation cannot be completed because the item is "in use.". That's a good warning if it is true, but sometimes you want to get rid of an application and this warning appears even though the only thing running is the Finder. Usually after a restart you can delete it. But that is very time consuming and even then, it is sometimes still stuck not wanting to be deleted. There is a risky command that can be used in the Terminal that will empty the trash no matter what. Risky because a simple error in the syntax could erase a lot of stuff that you want to keep.
    There is a much easier and quicker way of forcing the Finder to empty the trash no matter what! It is done in the freeware customization and maintenance application OnyX (download @ http://www.titanium.free.fr/pgs/english.html ). Once you loaded OnyX and entered your administrator password, choose "Cleaning" in the top bar. Click on the "Trash" tab. You can now choose whether you want to "Delete" or to "Securely Delete" (by overwriting) and click Execute. That's it, it will force the Finder to empty the trash even if the files are in use!
    Also look at these links.
    You can't empty the Trash or move a file to the Trash in Mac OS X
    http://docs.info.apple.com/article.html?artnum=106272
    Mac OS X 10.2: Cannot delete an incomplete copy or download
    http://docs.info.apple.com/article.html?artnum=107426
    Solving Trash Problems
    http://www.thexlab.com/faqs/trash.html
    How To Fix Stubborn Trash and Why it Won't Delete
    http://www.osxfaq.com/Tutorials/LearningCenter/HowTo/Trash/index.ws
    Download Trash It! v3.6.1 from:
    http://www.nonamescriptware.com/?page_id=5
    Download DropNuke from:
    http://www.versiontracker.com/dyn/moreinfo/macosx/12664
     Cheers, Tom

  • Cannot Delete .trash file of an external hard drive

    I am having issues deleteing a .trash file from my Western Digital external hard drive.
    I moved 500GB of my photos from that hard drive to a desktop hard drive, they copied to that hard drive and then went to delete the files off my WD. Half way through the deleting it I knocked the hard drive and it ejected. Now it is showing a .trash file that is about 400gb on my WD and if I go to right click delete I get an error saying "cannot delete an unexpected error occured (error code - 50) I had a bit of a look and it looks like I only have the permission to write on it, so I went into get info and change it and the file size went from 400gb to 0kb.
    Any suggestions?
    Ta

    Try holding the option key and Finder-Empty Trash
    Try repairing the disk with Disk Utility
    See: http://www.thexlab.com/faqs/trash.html

  • Cannot delete movie file from iTunes

    After converting movie file via Quicktime and adding it to the iTunes library, I am not able to remove it anymore. If you try to delete it, it crashes iTunes and after that all desktop icons are frozen. The movie does not play in iTunes, you cannot edit its info without crashing iTunes either. Movie plays in preview pane in Finder....
    Is there any other way to remove the file from iTunes?

    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.

  • Jar file error (Cannot open Jar file)

    I am already tired JavaFX cos right from the time i have been writing programs with FX. I have not been able to deploy any of my application. After building, When i click the jar file icon in the dist folder it tells the file cant load. Pls how can i package with FX

    Also something I noticed is that if you change the code of your jar file and rebuild it. If I do not go in and delete the old jar file from distributions folder the old jar will stay in the folder, this may just be me but it is something to look at.

Maybe you are looking for