Preventing the deletion of the workspace(Directory) while it is in use

Hello,
I have application which allows user to create the workspace.I want to avoid deletion of the workspace from backend while java application is using it.
Eclipse has the this feature ,when i create the workspace("ABCWorkSpace") and start the Eclipse and now from the windows explorer if i try to delete the workspace("ABCWorkspace") ,it won't allow me to delete it.This might be because of the .lock file created in .metadata folder.
I want the similar feature .Could anyone please sugest the way to handle this requirment.
Appreciate your time.

Thanks for your quick reply.
I may be little wrong in explaining the problem .I will explain it again
--I have application which allows user to create the workspace.I want to avoid deletion of the workspace from backend (i.e avoid manual deletion of the workspace from windows explorer)while java application is using it.
-- The one way might be i open one of the file present in the workspace using the fileInputStream from the workspace
like
final currentWorkSpace ="C:\\MyWorkSpace\\config.txt"
FileInputStream fis =new FileInputStream(currentWorkSpace);
--Now if i tried to delete the workspace manually from the windows explorer it wont't allow deletion saying
"Cannot delete config.txt.It is being used by another programm or person ....."
--Using above approch i can prevent manual deletion of the workspace named "MyWorkSpace" and the file "config.txt " but it allows deletion of the other files present in "MyWorkSpace".
Appreciate your time .

Similar Messages

  • Re: Getting an error after selecting the install directory while installing odi 12c

    Hi,
    After I select the directory for installing ODI and click next,it gives me error saying :-
    INST-07545: Unexpected Error. sealing violation: can't seal package javax.xml.bind.annotation: already loaded
    I did some research and all I got is its an unexpected error from the below link.
    http://docs.oracle.com/middleware/1212/core/FMERR/chapter_inst_messages.htm
    Any help is much appreciated.
    Edit :
    I am using Windows 7 Professional (Service Pack 1 ) 64 bit operating system and am executing the following jar file odi_121200.jar.
    Thanks and Regards
    Sunil

    Please check level for JAVA:
    Java 2 Standard Edition 1.4.2 (J2SE) -- included with the Mozilla 1.4 Browser
    Using previous versions of the J2SE may result in some compatibility issues using the Mozilla 1.4 Browser. For more information on the Java platform compatibility with previous releases please visit: http://java.sun.com/j2se/1.4.2/compatibility.html

  • The /var directory on db555 is 99% used and we need to create space urgentl

    db999:/var/opt/perf/datafiles# bdf
    Filesystem kbytes used avail %used Mounted on
    /dev/vg00/lvol3 1048576 201056 840928 19% /
    /dev/vg00/lvol1 1835008 302552 1520560 17% /stand
    /dev/vg00/lvol7 16384000 16219888 163480 99% /var
    /dev/vg00/lvol6 8192000 3053944 5097936 37% /usr
    /dev/vg_ora/lvol1 52420608 32675751 18510856 64% /u01
    /dev/vg_u/lvol1 4190208 2069854 1987838 51% /u
    /dev/vg00/lvol5 2560000 1964504 591192 77% /tmp
    /dev/vg00/lvol4 12288000 7402384 4847672 60% /opt
    /dev/vg00/lvol8 4096000 2233680 1847800 55% /home
    /dev/vg_back/lvol1 104853504 46027482 55149444 45% /backup
    /dev/vg_arch_999/lvol1
    104849408 61483272 40655885 60% /archive_999
    db888:/rmanbackup 209707008 191645444 16932780 92% /rmanbackup
    db888:/archive_888 104849408 24989036 74869254 25% /archive_888
    How can we free up space. and which files are important which ones are not?

    Hello.
    what O.S. do you have ?
    Version ?
    Be very careful with what you delete in var. You could leave your system in an unstable state
    for example in HPUX it's not the same thing as to go in there and delete a particular software manually instead of using swremove, swremove uninstalls software the rigth way.
    execute following command from var filesystem.
    du -sk *|sort -nr
    post results

  • Call the webdynpro appl while creating one record using itemDetail iView

    Dear Expert,
    I have one scenario where in the user want to create one record in MDM table using itemDetai iView. When the user clicks on one custom button in this itemDetais iView say validate one webdynpro applicatio should be called and this applicaiton should  validate the user input depending on business requirement.
    Thanks and Regards,
    M.D.Sahu

    thanks John for your valuable input.
    In my requirement user don't want to touch the MDM repository or don't want the serve side eventing. After giving the user input in Item detail Iview the user will click on Validate button and one WDJ applicaiotn should be called to validate the users input. Please guide me in achieving this result.
    Thanks in advance.
    Regards,
    M.D.Sahu

  • How can we  prevent the PO while creating the sales order

    Hi All,
    How can we prevent the PO number while creating sales order with existing PO. I have checked the box in sales document type as A but still im able to create sales order with same PO.
    Thanks in advance.
    Naveen

    Hi
    In VOV8 check the box
    Check Purchase Order Number
    The purpose of this field is to check for duplicate
    purchase order (PO) numbers during sales order entry. When you select A in
    this field, SAP gives a warning message during sales order creation if another sales
    document for same customer with the same PO number exists already. Leave this
    field blank if you do not want SAP to check for duplicate PO numbers.
    regards
    Prashanth

  • How can I get rid of the ~/Desktop/ directory?

    I would like to delete that infernal Desktop/ directory because I don't use it for anything. Everytime I delete it, it gets remade on reboot. I've tried running pacman -Qo on the Desktop/ directory, but pacman only seems to be able to find non-directory files.
    I figure this has to be a common question, but my forum searching skills appear to be lacking because I haven't found anyone who has asked it. All I managed to find was one thread on linuxquestions that was not helpful. Thanks.

    After a bit of googling, I found out that people do have problems with the Desktop folder reapperaing in Gnome (where Nautilus seems to be recreating it...). This link http://pythonide.blogspot.com/2007/11/h … sktop.html could be useful for Gnome ppl.
    As far as KDE4.1 is concerned, it doesn't have any such problem i.e. Desktop folder doesn't reappear after deletion. Additionaly, one can change one's default "Desktop folder" using start-menu > System settings > About me > Paths > Desktop path.
    UPDATE: If your "default download dir" is Desktop, firefox would graciously create one for you if it doesn't exist, as ozar rightly said. This applies to KDE-4.1.
    Last edited by Onwards (2008-08-08 14:26:05)

  • Get the file directory/location using JFileChooser

    Dear,
    How to get the file directory and it location with using JFilechooser after select the indicate file?
    Thanks

    There is an example at the top of JFileChooser's doc.
    http://java.sun.com/j2se/1.4.1/docs/api/javax/swing/JFileChooser.html

  • Download Excel file in the Unix directory of Application server

    Hi Friends,
    I have a requirement  of downloading the Excel file in the Unix directory path of the application server,i just need your inputs,it would be great help if you can send any sample coding for downlading the file in the Unix directory?
    Regards
    Dinesh

    You can use the following fm
    RZL_READ_FILE
    or
    use OPEN DATASET FOR INPUT.

  • Finding the windows directory

    With the LabVIEW application builder, I can choose to put a file, such as an
    ..ini file, into the windows directory.
    Now, I need to read the file in my program, but I can't find a variable
    available that returns the windows directory, so I'm just using a path
    constant C:\Windows. But I know I can't continue using this, because the
    windows directory for Windows NT, or 2000, will be C:\WinNT.
    Can anybody tell me how to access the windows directory?
    Thanks
    Slade Squire

    Hi Slade,
    follow this link: http://zone.ni.com/devzone/explprog.nsf/webmain/EBF11DD1F0FEAEF3862566790072A983?opendocument&node=DZ53008_US
    In the Winsys.llb you have the vi Get Windows Path.vi
    Good luck,
    Alberto

  • The cursor jumps to wherever the pointer is while typing in text boxes.

    While typing in a text box, the blinking cursor will jump to wherever the mouse pointer is and begin inserting the typing there. It happens both on external mouse and on touchpad. It's only on Firefox, I've tested IE and it's fine. Sometimes it is the ' that causes it (I read up on the "jump to find" bug), but it seems to be mostly the spacebar that sets it off. I've had it happen on various websites, blogs, emails, internal site mailboxes, seems to be everywhere. Sometimes a FF restart helps, sometimes a computer restart helps, sometimes nothing helps.
    I've also had site pages jump "back" in the middle of typing in a text box as well. At first I thought I was hitting the touchpad while typing by mistake but it happens with the external mouse as well. I have the touchpad disabled while ext. mouse is used.
    FF is Version 3.6.10, and I'm on laptop.
    Plleeeeezzze don't tell me I have to go back to IE. ewwwww

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).<br />
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]<br />
    <br />
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.<br />
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.<br />
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • Unable to capture error message while creating an SO using bapi

    Hi,
    Can anybody suggest how to capture the error message while creating a SO using BAPI.
    I have developed a customeized BAPI and using the BDC format to create the SO.
    Note: i am using a call transaction method for the BDC.
    I am sending the message into message1.
    but i am unable to send the same into an internal table
    shyam.

    Hi Shyam
    If my understanding is correct, you are performing BDC process within the customized BAPI...
    And you want to collect the messages from BDC to an internal table and pass to the output.
    Proceed as below:
    1. While calling BDC, use CALL TRANSACTION .... with addition: <b>MESSAGES INTO itab</b>. The structure of itab should be like <b>BDCMSGCOLL</b>.
    2. Now the messages will be collected in ita.
    3. Prepare the messages using FM: <b>FORMAT_MESSAGE</b>
    4. Collect to the returning table.
    Hope this helps...
    Though i could not understand the reason of creating a BDC within BAPI, you can opt for loading orders via BAPI's like: BAPI_SALESORDER_CREATEFROMDAT1 or BAPI_SALESORDER_CREATEFROMDAT2.
    Kind Regards
    Eswar

  • Update STXH text while creating a PO using IDOC's  PORDCR103

    Hi,
    Can we upload the shipping instructions while creating a STO using Inbound IDOC -  PORDCR103
    Regards,
    Shariq.

    Hi,
    For uploading shipping text you need to call function module SAVE_TEXT.
    Thanks
    Ankit Attrish

  • How do I delete a Pages file from the Users directory?

    Browsing my new MacBook I've spotted that a version of one of my earliest Pages docs is stored directly in the Users directory. There is no option in Finder to delete it. I can drag a copy elsewhere, but I want to get rid of it completely. How do I achieve this?
    Thanks.

    Hi Andrew,
    You need to go to your Users Library...
    users/yourname/library/application support/iwork/pages/templates/my templates
    If using Lion... in Finder, hold down the Option key while clicking on the Go menu and your users Library will appear...

  • Why was Firefox 4 installed in WIN 7 Program Files x86 directory while Firefox 3.6.12 was installed in the Programs Directory?

    After I installed the new Firefox 4.0 today, Secunia reported that there was an insecure version of Firefox 3.6.12 remaining on the computer.
    OS = Win 7 Professional.
    Firefox 4.0 installed in Program Files (x86) directory, while the old version 3.6.12 remained in the Program Files directory (file version = 1.9.2.3951)
    Why did this happen, and can I just delete the old version in the Program Files Directory, or would there be negative consequences if I did this?
    Thanks
    Bruce

    That's an interesting suggestion about how I acquired the 64-bit version.. However, I just responded to the Firefox updater when informed, and let it install itself - I did not get the 3.6.12 from another source, and wasn't even aware that there were 2 versions.
    The important question for me is - How do I get rid of the reminants of the 64-bit version in the Program Files Directory? - Is it safe just to delete the Mozilla Firefox directory and its contents?
    Is there a 64-bit version of Firefox 4 available, and if so, why didn't it sense that I have a 64-bit system and install the correct version?

  • Error while running the financial report in the workspace.

    Hi,
    Im getting the below error while running the financial report in the workspace in HTML mode.
    *"Required application module reporting.HRRunDlg is not configured. Please contact your administrator".*
    And im not able to login to the Hyperion Financial Reporting as well.. i get the below error
    *"You are not authorized to use this functionality. Contact your administrator"*
    Can someone let me know how to resolve this error.

    You don't mention the version, what app server or web server you are using, etc.. That information might be helpful, but in general, you can try the following:
    1. Make sure you have gone through the FR Web App deployment steps and verify the settings entered in the Config Tool.
    2. For version 11.1.1.x and 9.3.1.x, try opening the report in FR Studio and running it via the FR Studio Print Preview (*bold*not*bold* Web Preview.) If the report runs/processes, then the back-end FR Services are functioning and the issue is confined to the web interface. Verify the FR Web App is up and listening on the designated port (8200, by default), check the FR Web App logs and the App Server (WebLogic, WebSphere, Tomcat, OAS) logs for errors/issues.
    If the report fails to process in FR Studio Print Preview, then there is a problem with the FR Reporting Server Service. Check to make sure the service is up/functioning and check the FR Report Server logs for errors.
    3. Test access to other FR functionality in workspace (ex: Files->Preferences->Financial Reporting or Explore->Tools->Database Connection Manager?) If these don't work, then try to connect to the following URLs:
    http://workspaceServer:19000/hr/status.jsp
    http://frWebAppServer:8200/hr/status.jsp
    Note: The URLs above assume standard/default ports. You may need to adjust them for your environment.
    If the first URL fails, but the second URL works, there is a problem with the HTTP redirect settings on the Web Server (Apache, IIS, etc.) Run through the Workspace deployment and make sure the Web Server Config settings point to the right ports/servers.

Maybe you are looking for