Opening FileInputStream() deletes my files

hi, im currently developing a java app under suse linux and have a problem when opening FileInputStream().
if we take the example;
String path = new String( /dev/java/);
FileInputStream stream = new FileInputStream(path + "/default/myfile");
a java.io.FileNotFoundException: is always thrown.
for some reason java deletes the /default/ folder when trying to open it, but the /dev/java/ folders are left unharmed.
does anyone have any ideas?

String path = new String( /dev/java/);It won't compile outside "".
Under /dev usually the special device files dwell.
Is there /dev/java ? Is it not a typo?

Similar Messages

  • Lightroom 4.4 will not open despite deleting .lock file

    I have deleted the .lock files already but am still getting "light room cannot be opened because another application has it opened" Help!!  I read on the forum to delete the .lock file but nothing seems to be working.

    Have you used your system search feature to search your computer for such files. I know from past experience that it's easy to overlook files if you are trying to do it manually. It seems to me that there has to be one in the folder with your main catalog that you have been using. Do you know the location of that catalog?

  • Safari will not open after deleting bookmark file

    I have a new Imac with 16GB Ram and 2TB hard drive.  I have been getting messages that:
    Your Mac OS X startup disk has no more space available for application memory.  To avoid problems with your computer, quit any applications you are not using.  Closing windows and removing files from your startup disk will also help.
    open:
    activity monitor
    calendar
    firefox
    iPhoto
    Mail
    Remote Desktop Connection
    ScanSnap Manager
    Finder
    when I went to the activity monitor the #1 memory user is SafariDAVClient   Real Memory 3.85 GB  Kind :  Intel  Virtual Memory 66.90 GB
    #2:  Firefox:  Real memory 694.2 MB 
    I read where this could be a bookmark issue when my old bookmarks from my 2007 were imported into the new computer.  Upon recommendation of another user in the apple support community I did the following:
    Back to a Finder window. From the Finder menu bar click Go > Go to Folder
    Type this exactly has you see it here:
    ~/Library/Safari/Bookmarks.plist
    Click Go
    Move the Bookmarks.plist file to the Trash.
    I emptied my trash and now Safari won't open at all.  I'm unsure if this will solve my memory issue, but I would at least like to have access to the Safari program.  Any help to get Safari operational again, and then info on what to do about the memory problem.
    Thanks in advance for the help.

    Please read this whole message before doing anything. This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it. The purpose of this test is to determine whether your problem is caused by third-party system modifications that load automatically at startup or login. Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows: 
    Shut down your computer, wait 30 seconds, and then hold down the shift key while pressing the power button.
    When you see the gray Apple logo, release the shift key.
    If you are prompted to log in, type your password, and then hold down the shift key again as you click  Log in.
     *Note: If FileVault is enabled under OS X 10.7 or later, or if a firmware password is set, or if the boot volume is a software RAID, you can’t boot in safe mode. Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs. The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • FileInputStream.open deletes my file

    FileInputStream.open deletes my file and throws a FileNotFoundException.
    i am running a java process on machine 'B' to copy a file from machine 'A' to machine 'B'.
    In windows ('B') i get an error message when trying to copy the same file from 'A' to 'B': "Cannot copy file.ext: Access is denied. The source file may be in use."
    i use the following code to copy the file:
    File f = new File("P:/file.ext"); // where P: is a mapped drive
    System.out.println(f.exists()); // this always prints true
    new FileInputStream(f); // i get ex here
    at the same time i get the exception, the file is deleted from P:
    any ideas?

    yeah, it seems very intermitent. it seems to only happen when a file is in a bad state (according to windows on machine 'b'). the machine the file resides on seems to think the file is fine tho.
    i really need to know why the file would be deleted instead of throwing some sort of 'BadFileException'.. any IO experts out there?

  • 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 have two excel files I cannot open or delete from my desktop.  One is titled 6ACAD200 and the other file is titled 8D73A700.  How can I get these off of my computer?

    I have two excel files I cannot open or delete from my desktop.  One is titled 6ACAD200 and the other file is titled 8D73A700.  How can I get these off of my computer?

    From the names I'd guess they are temporary files. If excel is running, quit and try again. If they still won't move or delete reboot. If they still won't move or delete...kill a chicken at midnight under an oak tree?

  • I am having problems gettting my mail to work ... Mac telling me that my start up disk id full and to delete some files to free up space ... have done this but when i open mail from the dock it just brings up the colour wheel and nothing happening

    I am having problems gettting my mail to work ... Mac telling me that my start up disk id full and to delete some files to free up space ... have done this but when i open mail from the dock it just brings up the colour wheel and nothing happening ... it shows when you right click on the mail icon that " application not responding"

    If your hard drive is getting full, you need to free up, at least, 20 GBs of space on your iMac's hard drive.
    If your Mac is running a fairly recent version of OS X, here are some general guidelines.
    Follow some of my tips for cleaning out, deleting and archiving data from your Mac's internal hard drive.
    Have you emptied your iMac's Trash icon in the Dock?
    If you use iPhoto, iPhoto has its own trash that needs to be emptied, also.
    If you use Apple Mail app, Apple Mail also has its own trash area that needs to be emptied, too!
    Other things you can do to gain space.
    Delete any old or no longer needed emails and/or archive to disc, flash drives or external hard drive, older emails you want to save.
    Look through your Documents folder and delete any type of old useless type files like "Read Me" type files.
    Again, archive to disc, flash drives, ext. hard drives or delete any old documents you no longer use or immediately need.
    Download an app called OnyX for your version of OS X.
    When you install and launch it, let it run the automatic ans S.M,A.R.T. tests,  then go to the cleaning and maintenance tabs and run the tabs that have the ability to clean out all web browser cache files, web browser histories, system cache files, delete old error log files.
    Typically, iTunes and iPhoto libraries are the biggest users of HD space.
    move these files/data off of your internal drive to the external hard drive and deleted off of the internal hard drive.
    If you have any other large folders of personal data or projects, these should be archived or moved, also, to the optical discs, flash drives or external hard drive and then either archived to disc and/or deleted off your internal hard drive.
    Good Luck!

  • File not opening when deleted of desktop with Airport HD

    Hi,
    Recently i have moved some files over from my desktop to my airport HD, and it when i delete them off the desktop they wont open from the airport.
    What settings have i set wrong?
    Thanks in advance
    S

    It is an Excel for mac file.
    Let me explain.
    I worked on a new doc, then saved it to desktop. Then i dragged it over to the folder on aiport extreme HD, and if i delete the file from desktop it wont open. It says it cannot open file.
    PDF works fine.
    See screenshot.
    Could it be an issue with the settings in Excel?
    I will check with other files.

  • Had to start Firefox in safe mode cause it kept crashing after i deleted the file. Now Fire fox Crashes every time I open it and I have to put it in safe mode j

    Had to start Firefox in safe mode cause it kept crashing after i deleted the file. Now Fire fox Crashes every time I open it and I have to put it in safe mode just to use it, also it's not syncing with my iPad.

    If you use Norton software, try disabling your Norton extensions. As of last week, there were severe compatibility issues with Firefox 24.

  • How to delete a file when it is open ?

    Hi all,
    I want to delete a file even it is open, and that should be deleted with out exiting the program itself. By using deleteOnExit() method of File class it is possible, but it is not valid for all types of files, and it works if we exit the program only.
    I need a way to delete a file even it is opened, and we should not use deleteOnExit() method to achieve it.
    Help appreciated ...

    Not possible.

  • I want to open a domain.site2 file outside the default folder (User/Library/Application Support/iWeb) with iWeb11, but iWeb only opens the domain file in the default folder. If I delete the default domain file, iWeb wants to create a new site. Help please

    I want to open a domain.site2 file outside the default folder (User/Library/Application Support/iWeb) with iWeb11, but iWeb only opens the domain file in the default folder. If I delete the default domain file, iWeb wants to create a new site. Does anyone have the same problem or know how to fix it?

    In Lion the Finder folder is now invisible.  To make it permanetely visible enter the following in the Terminal applicaiton window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    For opening your domain file in Lion for the first time or to switch between multiple domain files  Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an applicaiton.
    Just launch the applicaiton, find and select the domain file you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
    tell application "iWeb" to activate
    OT

  • Deselecting images in camera raw before opening the rest is deleting the files from finder!

    Hi, as the title suggests, im having an issue with of our machines. There are 6 running camera raw and it is the only one to do this (version 6.6).
    Example situation:
    10 RAW files are dragged into photoshop,
    they open in camera raw.
    all are selected and a white balance taken from the 'grey card' image that has been shot specifically.
    the grey card image is then deselected (with backspace button or otherwise) because i don't need it to be opened in photoshop for further editing with the rest.
    the problem:
    after clicking 'open images' the deselected grey card image is dissapearing from my finder window. the delay in opening in photoshop means i can actually watch it go.
    this doesnt happen on any other of my machines in the studio and that action should simply tell camera raw that i dont want to open that particular image in photoshop.
    can anyone tell me why it is doing that??
    we're working off our server (as we normally do), so the files arent being sent to the trash. if raws are worked on from the dekstop, the same thing happens and they obviously go straight to the trash then
    why is camera raw deleting my files? are they recovereable? how do i stop it?
    any help would be great. its a fast working studio and the grey card shots are not something we can afford to be losing.
    thanks,
    dom.

    Sounds like you're working over a network.
    This is the boilerplate text often used in connection to saving to a network (please NOTE the part where it explains that normally, it does work, but that it is impossible to troubleshoot someone else's network remotely, and that's why it's not supported by Adobe):
    If you are opening files over a network or saving them to a network server, please cease and desist immediately in the event you are currently experiencing problems with one or more files. Working across a network is not supported.
    See: 
    http://kb2.adobe.com/cps/406/kb406793.html
      Copy the CLOSED file from your server to your local hard disk, work on it, save it again to your local hard disk, close it, and copy the closed file back to the server.
         Of course, the fact that Adobe does not support working across a network does not necessarily mean it won't work.   It should.
        Adobe's position is that there are too many variables in a network environment for them to guarantee that everything will work correctly in every network, especially given the fact that if something does not work properly, it's probably the network's fault, and Adobe has no way of troubleshooting your network.
      If you can't work locally, you are on your own, and if something happens, you're on your own. If you must work from a server, make sure your network administrator is a competent professional.
    When problems arise, a lot of valuable work can be lost.

  • Memory is supposedly Full, deleted some files, and now I can't open Itunes.

    I have a Macbook Pro but I don't play any games, I've never downloaded movies, but I do download music approx. 16GB and pictures...though not sure how to see how much memory these take up. Recently I've had trouble because my computer keeps notifying me that there is no space on the startup disk...which I can't understand why because I don't really have many files or programs on my computer. I've been deleting old files or things I don't really use and now my Itunes won't open saying there's an error (13014). So I have several questions, what is the best way to make space on the "startup disk" whatever that means, and how can I fix the error that's preventing me from accessing itunes? I have a feeling that my pictures might be taking up a lot of the space, how do I know when a single picture is too large and how could I condense them? Also when the memory gets full, my Microsoft Word starts acting all funky, is it because of the full memory? Thanks for your time:)
    -Danny

    Just as a matter of info you have posted in the MacBook Pro (Late 2008 and 2009) > Using your MacBook Pro (Late 2008 and 2009) forums. Not that your issue matters matters so much where it's posted but in the future you would want to post where users have similar hardware as you do, MacBook Pro (Original)
    http://discussions.apple.com/category.jspa?categoryID=250
    In any case as F Shippey suggests you may have directory issues. If Disk Utility cannot repair the directory then you may need a stronger disk utility like DiskWarrior to rebuild the directory.

  • HT1526 I can't delete any files, can't empty the trash bin, can't open my iTunes. Safari isn't working properly either. I keep getting the error message -50 when i try to delete anything...HELP!

    I can't delete any files, can't empty the trash bin, can't open my iTunes. Safari isn't working properly either. I keep getting the error message -50 when i try to delete anything...HELP!

    Hello, not too helpful, but...
    enum {
      paramErr                      = -50,  /*error in user parameter list*/
    Usually means a bvad or unacceptable Charachter in a File or Folder name...
    http://support.apple.com/kb/TA20831
    Solving Trash Problems...
    http://thexlab.com/faqs/trash.html
    Open Console in Utilities & see if there are any clues or repeating messages when trying to open Safari or iTunes.

  • Entourage will not allow Delete file messages to be opened and deleted

    I have allowed my delete to get to large. Now Entourage won't allow Delete file to be opened; when attempted, it says, "file cannot be opened, not enough memory". How can I open to Delete file to delete messages?

    You should be able to check by opening the Attachments panel on the left (paperclip icon) and looking at the file extension.

Maybe you are looking for

  • Apple ID issues? i think i have two accounts but i cannot find out the password for the one that controols my apps!? please help!

    I think I have two apple ID accounts. The account I am using right now is Alexiaann22. Im like 99.9999% possitive that before this was my origonal account(rosepetttals). When I am buying an app in the app store the apple id is already there and all y

  • HT1481 How to find a driver for iPod Shuffle 2nd generation

    Could someone please direct me to a place I can find a driver for a 2nd generation iPod Shuffle? In Windows 7  it says Device not Recognized, unknown driver. In device manager says there is no driver, I've tried everything. I would really like to use

  • Adding New field in KOB1

    Dear All, There is a requirement to add the field "Reference" from the related FI Document in the output generated by KOB1 Report; This field is not among the Hidden fields; Practical suggestions on how this can be achieved will be very well apprecia

  • Substitute Business Area

    Hi all, I have a small problem with the substitution of the business area during the FI / CO Reconciliation. Hope sb can help me. We use the new general ledger with real-time CO integration. On changing the functional area CO postings are realtime in

  • USB (Raw) - How to access VISA property: USB Bulk-Out pipe?!?

    I'm trying to use my own USB device. Since I'd like to use more then one USB In/Out Endporint I need to change that Atribute in NI VISA using LabVIEW (afaik. NI VISA uses the lowest Endpoint Number as defualt). According to LabVIEW 7.1 Help > VISA >