Java.io.File.delete worked in 1.1, 1.2, 1.3 & 1.4, but not in 5.0

I have a logging utility I wrote originally in Java 1.0. A nightly housekeeping task runs which creates a ZIP file for the previous days log, then deletes the .log file. If I run this software with Java 5.0, the File.delete fails and the .LOG file remains on the disk. No exceptions are thrown. delete just returns false.
Any ideas?

to find a bug this basic! Each day I switch to a new log file, leaving the previous days file. I was never closing the old PrintStream... Jees... How embarrassing.

Similar Messages

  • Failed to delete a file in MS Vista using java.io.File.delete()

    while trying to delete a file using java.io.File.delete(), it returns true but the file lies intact.
    i'm sure there is no handle or stream open on the file..
    the same code is running fine in XP..
    if anyone can help me.. thanks

    thanks all..
    the problem is diagnosed further..
    MS Vista does not let a user program to delete any file from 'windows' or 'program files' directories..
    Even when the file is deleted manually thru explorer a confirmation is taken from the administrator.. even when he is logged in..
    i for now have opted to install and use my program in Vista outside 'program files' directory...
    more clarification welcome..

  • HT4356 Mavric doesn't support my 5 years old Big Screen Display, OR? Tried to connect my Mac Book Pro after installing Mavric, The Screen didn't work as before. I could only see the Desktop but not the movies for example. What can I do?

    Mavric doesn't support my 5 years old Big Screen Display, OR? Tried to connect my Mac Book Pro after installing Mavric, The Screen didn't work as before. I could only see the Desktop but not the movies for example.
    <E-mail Edited by Host>

    It appears what happened is the installer though it was looking at a empty drive and just went ahead and installed.
    I of course am assuming here you didn't use Disk Utility to format the drive first before installing, that would wipe out your files and programs for sure.
    So what to do, what to do.
    Well there is hope for you as long as the drive wasn't Filevaulted.
    I'll explain. When a hard drive writes data for the first time to a drive, it starts at the very top and works it's way down.
    When OS X was installed the first time, it was at the top of the drive, unless you upgraded then the upgraded OS X could have been written elsewhere.
    Now when you just reinstalled OS X, the new OS went on the top of the drive, overwriting any data that was there previously, so what was there you have lost forever which is about 8GB or so. If it was the previous OS there, then your more in luck because only the old OS X was overwritten.
    The remaining space on the drive still can have a copy of your files, provided it's not overwritten yet.
    It's because when a hard drive deletes data or reformats, it doesn't remove the data off the drive or overwrites it immediately, it's just made so it's SPACE is available for new files to be written there.
    So technically one can recover the deleted data off a non-encrypted/scrubbed hard drive with special software.
    The way it does this is it reads the 1's and 0's of the files themselves, and through a lot of figuring out, can tell what that file is and what it belongs too.
    So what you will have to do is this:
    Create a data recovery/undelete external boot drive
    or if you don't have the skills, then take it to a local PC/Mac tech and they can do a direct image of the drive and then you can run Data Rescue on it to rebuild your files.

  • My imessage has just stopped working with one of my contacts, on both of our phones imessage still works with other contacts. Why can we imessage others but not each other?

    My imessage has just stopped working with one of my contacts, on both of our phones imessage still works with other contacts. Why can we imessage others but not each other?

    Yes... to no avail

  • Bought an ipad 2 for christmas but it won't connect to my wireless. My modem/router is an Arris 653 B eurospec DOCSIS. The wifi works on an unsecured network I have in the bldg but not my own network. Anyone have any suggestions?

    Bought an ipad 2 for christmas but it won't connect to my wireless. My modem/router is an Arris 653 B eurospec DOCSIS. The wifi works on an unsecured network I have in the bldg but not my own network. Anyone have any suggestions?

    I'm not familiar with your router but are there any buttons on the front or back of it because sometimes you need to pair the router in order for your PC, laptop, phone or iPad to connect wirelessly with it?
    From the routers I have used there are normally two buttons on the front or back (apart from the power button), pressing one of them allows you a few minutes to enter the required password on your iPad. Best look at the instructions for the router.

  • There were some updates on my Apps.  I updated them on my iTunes but my iPad did not get the same downloads/updates thru iCloud.  Does the iCloud only works for "New" Apps or Books downloaded from the store but not the "Updates"?

    There were some updates on my Apps.  I updated them on my iTunes but my iPad did not get the same downloads/updates thru iCloud.  Does the iCloud only works for "New" Apps or Books downloaded from the store but not the "Updates"?

    Purchased music does not count against your iCloud storage and you cannot get rid of them in the purchased tab.
    What is backed up
    You get unlimited free storage for:
    Purchased music, movies, TV shows, apps, and books
    Notes: Backup of purchased music is not available in all countries. Backups of purchased movies and TV shows are U.S. only. Previous purchases may not be restored if they are no longer in the iTunes Store, App Store, or iBookstore.
    Some previously purchased movies may not be available in iTunes in the Cloud. These movies will indicate that they are not available in iTunes in the Cloud on their product details page in the iTunes Store. Previous purchases may be unavailable if they have been refunded or are no longer available in the iTunes Store, App Store, or iBookstore.
    Look here for help on managing iCloud storage.
    http://support.apple.com/kb/HT4847

  • Link works in Acrobat Std 8.0, Acrobat Reader 8.2, but not in Reader 9.0

    Hi. I also posted this in the Acrobat site:.  Perhaps this might be a more appropriate location?
    Hello.
    I faced a really strange thing today.  I created a report PDF through Xcelsius.  In this PDF, I have a Flash button which, when clicked, would link to an Excel (.xls) file within our LAN.  The link works within Acrobat Standard 8.0 but not within Acrobat Reader 9.0.  I have examined the preferences on both and they are identical (as far as I can see).
    Details:
    Software used:  Xcelsius 2008 SP1
                           Acrobat Standard 8.0.0
                           Acrobat Reader 9.0
                           Acrobat Reader 8.2 (later)
    Link address:   file://G:\Management\[sub-directory]\[sub-sub-directory]\[filename].xls
    Any help at all will be welcomed and appreciated.
    Thank you!
    --- Update ---
    I later uninstalled Reader 9.0 and reinstalled Reader 8.2 and the link worked in Reader 8.2.  The link is a direct address and not a script.  The file is opened in IE 7 as a spreadsheet with Macros attached.  It is important for me that it works in both versions of Reader as there are several versions of Acrobat Reader deployed among our hospital -- Reader 7, 8, and 9.
    Can someone help shed some light on this, please?

    I think this is related to this other problem: http://forums.adobe.com/thread/567165?tstart=-1  .  This has appeared with current releases of Acrobat, Acrobat Pro and Acrobat Reader.  Adobe seems unresponsive.  We started seeing it this week in conjunction with Excelsius 4.5.  I have both Acrobat Pro 9.3 and Acrobat Reader 8 on my PC.  Pro blows up when I open the .pdf created by Excelsius, but Reader does fine.

  • I had to reload iTunes on my computer.  It "deleted" my music on my iPod.  It shows used storage but not music. HELP!!!!!

    I had to install iTunes on a new computer when my previous computer was lost.  I tried to load my library from my ipod and it had problems.  The recommendation was to find and fix errors which promptly deleted my music from my ipod.  It says no music but shows the used storage like the music is still there.  I've looked on my computer for previous libraries and temp files but am unable to recover my music.  HELP!!!!

    Restore the entire iTunes folder from the backup of the computer.

  • When I look up the creation date for files on my Macbook I get the date and month in brackets, but not the year.  Why is this and how can I look up the year?

    When I look up the creation date for files on my Macbook (using "get info", or the information window in Iphoto) I get the date and month in brackets, but not the year.  Why is this and how can I look up the year? 

    Does the Date Modified column in a window set to List view show the date correctly, or does it also display it incorrectly?
    To add additional columns to a Finder (folder) window, with that window open and active open the View Options for it. You can do that by pressing Command-J or by selecting View Options from the View menu in the main menubar.

  • How Delete all the data in all BI Models, just the data but not the model

    Hi Gurus,
    i need to delete all the data of the cubes, PSA , etc , all the data of this models but not the model, how can i do this in a fast way? though a program? thanks

    Hi,
    I would prefer process chain, not program.
    Create new process chain include data target deletion component and PSA deletion component.  (Include corrosponding DSO/Cube/PSA names).
    Run process chain.
    Else you can search for FMs to delete contents from your targets.
    Delete InfoCube Data
    Regards,
    Vinay

  • File deleted on my mac by another user connected via ethernet. But file not showing up in my trash?

    I have 2 imacs connected via ethernet through a router.
    A file got deleted from my computer by the user on another imac but it hasnt shown up in my trash or his?
    is there a way to find it?

    This is normal (if somewhat unfortunate). His system should have warned him that the file would be deleted immediately instead of moved to the trash and asked him if it was OK to to do that.
    You'll need to recover it from your backup disk, if you have one.

  • How do I delete a recurring event that appears on my iPhone's calendar, but not on my computers or iCloud?

    I can click on the event in the iPhone's calendar, but the "Edit" option  and "Delete" option are unavailable. The event does not appear on any other device or in iCloud. Am I destined to see this recurring event forever and ever? Is it an unkillable zombie that will shamble through the corridors of my electronic life in perpetuity?

    Okay. Awesome! I feel like such a dodo that was so freaking simple!
    Now I have another simple person question that feels stupid too but oh well apparently my brain doesn't like to work at 5 a.m. when I am in bad pain but...
    Okay, so I've deleted them from my phone manually, they are already ALL on my mac, when I plug my phone back into my mac to sync music and any New photos, will the old photos that I deleted that are on the mac, go back on the phone? Der. I feel like I already know the answer, but I'm asking anyways...
    Please, thank you, and sorry in advance!

  • Firefox crashes when saving a file using the "Alsways ask me where..." download option, but NOT when using the default "Save files to..." download option.

    My OS is XP-x64.
    The Firefox version I am on is 14.0.1 (July 2012, "FunnelCake").
    The "C: \Documents and Setting\Downloads\" is the folder I used to try downloading the same file to via 2 different methods.
    1) When this folder is set as the permanent download location, it works.
    2) When I use the "Always ask me where.." download setting, and I select the same folder, the Firefox window completely disappears without any message at all !
    I get the same result with (2) even if I already turned my VirusScan software off.
    This same behavior persists after completely uninstalling and re-installing Firefox.

    Hi,
    You can try to right-click and '''Reset''' the '''browser.download.lastDir''' key in [http://kb.mozillazine.org/About:config about:config].
    [http://kb.mozillazine.org/About:config_entries about:config Entries]

  • I want the cursor to be in the address bar when creating a new window; it works for new tabs and in a new private window, but not in safe mode.

    I have tried following the advice offered in the few different threads I have found on this but nothing fixes it. I want the cursor to be in the address bar when I open a new window and/or when firefox opens without restoring a previous session. I fixed the issue for new tabs via about:config but this doesn't work for new windows. I tried safe mode and the problem persists. In new private windows the cursor is in the address bar.

    The search box in about:home steals the cursor. Changing your home page to something else will cause the cursor to start in the address bar for new windows.

  • I am struggling to connect my macbook pro to a wireless network. Works fine with USB and my Toshiba can print wirelessly but not the MAC. Any ideas?

    Hi
    I cant print wirelessly on my Mac pro but can via usb. the Toshiba does work wirelessly..any ideas?

    If you can use the wireless network properly (surf the web, check email, etc.) then there is probably nothing wrong with your network settings.
    When you print from your Mac Pro, does the printer show up in the Printer list at all (in the Print dialog box)?
    If not, have you already tried to Add Printer from the bottom of the Printer list?
    If you click Add Printer and it can't see the printer, the next thing to do is probably go to the Toshiba printer web site and see if there is a Mac printer driver to download and install so that it shows up in the Printer list.

Maybe you are looking for

  • How to use MDS deploying with EAR file

    Hi everybody. I would to use MDS in my web application in order to use customization across the sessions. I've performed every step to do this on JDeveloper (11.1.1.3.1). I've tested my application deploying directly from JDeveloper using Application

  • Mail not sending jpg/pdf files

    You've probably all heard about this problem but does anyone have a fix? When i send jpg or pdf files to windows computers they don't show up at the other end. This problem is intermittent. If i'm sending mutliple files it sometimes send one but not

  • Invoices in Netpoint?

    How are invoices displayed in Netpoint when they synch from SBO (Cart type I)? What information would be on an invoice that's not on the order detail when viewing order history or the order confirmation that in emailed (besides shipment information I

  • How to generate TDS certifcate and CHallan forms

    Hello All, How to generate TDS cerficates and challan forms for Pakistan withholding tax in ECC system, Regards, Ramana

  • In elements 10 how to change screen color around photograph being worked on?

    In elements 10 how to change screen color around photograph being worked on?