How to delete a loaded DLL from an applet

I succesfully wrote some code that extracts a Windows DLL from the applet jar to a temporary file and loads the extracted DLL (using a System.load call).
Now I want to remove the DLL after the applet is closed. I tried to use the shutdown hook functionality of the java.lang.Runtime object, but this doesn't seem to work for an applet.
Anyone any ideas about how to tackle this? Note that I'm not interested in installing the DLL's in for example the windows/system32 directory. To prevent any potential DLL versioning troubles I just want to use the DLL's as a temp file and remove them afterwards.

I succesfully wrote some code that extracts a Windows
DLL from the applet jar to a temporary file and loads
the extracted DLL (using a System.load call).Once you loaded a DLL into JVM you cannot unload it.
Now I want to remove the DLL after the applet is
closed. I tried to use the shutdown hook
functionality of the java.lang.Runtime object, but
this doesn't seem to work for an applet.This is b/c the applet is running in the browser JVM and this isn't shutdown when an applet is closed.
Anyone any ideas about how to tackle this? Note that
I'm not interested in installing the DLL's in for
example the windows/system32 directory. To prevent
any potential DLL versioning troubles I just want to
use the DLL's as a temp file and remove them
afterwards.Maybe you can add to the DLL name as a suffix its version number.

Similar Messages

  • How to delete perviously loaded request from cube

    Hi All,
    I am loading a standard cube from r3 w/o PSA through DTP.
    1 ) how to delete data automatically from cube w/o using Process chains.( previously we have a facility in Infopackage to delete old loaded data ) .In BI7 how to delete the same automatically.
    2) How to schedule the DTP to run on daily basis( w/o process chain ) .I am not able to schedule it via RSRDA ?
    What might be the reason ?
    Regards
      KK

    Chivukula,
    I'm curious as to why you aren't using the process chains.  There's now a "delete overlapping request" process type within rspc.
    You are right thought, the DTP does not offer a facility to delete out the old loaded data.  This feature is not in BI 7.0
    As for scheduling a DTP to run daily, there's no way I know of to run it daily without rspc.  Yes I understand that rspc could get very messy but just create a separate holding area, say DAILY DTPS and put your DTP's in there.
    Cheers,
    Pom

  • HT1918 I need to know how to delete my credit card from account because I know longer have a credit.  I just want to be able to up date my Apps but I can't now because there is a credit card on my account what do I need to delete it.

    I need to know how to delete my credit card from account because I know longer have a credit.  I just want to be able to up date my Apps but I can't now because there is a credit card on my account what do I need to delete it.

    I need to know how to delete my credit card from account because I know longer have a credit.  I just want to be able to up date my Apps but I can't now because there is a credit card on my account what do I need to delete it. Also my credit has expired so i need to delete it.

  • How to delete string or line from unix file(dataset) of application server

    Hi  All,
    After transfer workarea information or all records into dataset(unix file). When I see the file in application server automatically the last line is shown a blank line. I am not passing any blank line.
    I have tried for single record than also the file generates the last line(2nd line) also a blank line.
    When I m reading the dataset, it is not reading the last blank line but why it is showing the last blank line?
    How to delete string or line from unix file(dataset) of application server?
    Please give your comments to resolve this.
    Thanks
    Tirumula Rao Chinni

    Hi Rio,
    I faced similar kind of issue working with files on UNIX platform.
    The line is a line feed to remove it use
    DATA : lv_carr_linefd TYPE abap_cr_lf VALUE cl_abap_char_utilities=>cr_lf. 
      DATA : lv_carr_return TYPE char1,                                   
             lv_line_feed   TYPE char1.                                          
      lv_line_feed   = lv_carr_linefd(1).
      lv_carr_return = lv_carr_linefd+1(1).
    Note: IMP: The character in ' ' is not space but is a special
    character set by pressing ALT and +255 simultaneosly
      REPLACE ALL OCCURRENCES OF lv_line_feed IN l_string WITH ' '.
      REPLACE ALL OCCURRENCES OF lv_carr_return IN l_string WITH ' '.

  • HOW TO DELETE ADOBE READER FILE FROM ADOBE READER

    HOW TO DELETE ADOBE READER FILE FROM ADOBE READER@ !@

    Your question make no sense. What exactly are you trying to do?

  • How to delete a single request from DSO in BI 7.0

    Dear Experts,
    Could you please tell me how to delete a single request from DSO?
    I mean, in DSO if we delete one request it also delete the requests which are above it. But i don't to delete the above it.
    Please suggest me this issue.
    Regards,
    Prathap

    IN DSO--its a very basic thing....
    ACTIVE TABLE and CHANGELOG tables are overwritten after activation of each request.
    So ,each new request has a realationsip with the older request.
    So in the cases:
    1.If you activate the older request it will delete the new one ,because changelog entries have been written from the data of new request on the basis of the older one.
    e.g older request  entries:
    a x 1
    new request
    a x 2
    change log
    a x 1
    a x -1
    a x 2
    so its quite obvious you can't have  a x 2 directly (because in the infocube you will be sending wrong entries by deleting the just the older request and loadning new request).
    2.If you have activate new and old request toghterh then also system will not allow you to delete the newer request alone and you will have to delete both the requests.
    I guess already someone proposed correct solution to you ...thats selective deletion...but rahter than doing selective deletion there is a better way if you want to cancel out a particular request:
    thats request reverst posting
    IN the process monitor of any particular request you can find out the option for request reverse posting..Its good for individual request cancellation(keyfig values will become 0 for that particular request)
    regards,
    rk

  • Does anyone know how to delete credit card details from an Apple account?

    Hi not sure if this is posted in the right place but i'll give it a go anyway.
    Would anyone know how to delete credit card details from an Apple account?
    Someone posted selecting 'none' in the payment section would work but i logged into my account online on a computer there aren't any options at all to do this.
    I tried hitting edit but there isn't a delete button.
    If anyone knows any help would be most appreciated!
    -F

    Answer should be here:
    https://discussions.apple.com/message/12832322#12832322

  • How to delete the duplicate data  from PSA Table

    Dear All,
    How to delete the duplicate data  from PSA Table, I have the purchase cube and I am getting the data from Item data source.
    In PSA table, I found the some cancellation records for that particular records quantity  would be negative for the same record value would be positive.
    Due to this reason the quantity is updated to target but the values would summarized and got  the summarized value  of all normal and cancellation .
    Please let me know the solution how to delete the data while updating to the target.
    Thanks
    Regards,
    Sai

    Hi,
    in deleting the records in PSA table difficult and how many you will the delete.
    you can achieve the different ways.
    1. creating the DSO maintain the some key fields it will overwrite the based on key fields.
    2. you can write the ABAP logic deleting the duplicate records at info package level check with the your ABAPer.
    3.you can restrict the cancellation records at query level.
    Thanks,
    Phani.

  • HT3702 How to delete credit card info from iTunes account

    How to delete credit card info from iTunes account?

    HI KiwiMCB,
    Please Contact Customer Care; an agent will be able to help you with that.
    Best,
    Sara

  • How to delete multiple email messages from my Iphone 5c; email folder?

    How to delete multiple email messages from my Iphone 5C; email folder.

    there used to be option to keep last 50,100,200 messages/emails. We need that back. This is ridiculous to delete one by one.

  • How to delete the Hierarchy data from Infoobjects.

    How to delete the Hierarchy data from Infoobjects. In my case I had 300 records in the corresponding table of info object.
    When i was trying to delete the hierarchy data, I am getting error message. "Some master data not deleted". Can any one tell me to delete all these records by using a program.

    Hi
    Go to SE11 and enter the hierarchy table name.
    /BIC/H....(infoobject name)...and execute the table and select table entry and delete all....
    Thanks
    TG

  • How to delete a line item from the sales order

    Hi all,
    how to delete a line item from the sales order for which the production is already happened and it has been delivered. the production order status is DLV.
    Regards
    Kumar

    Hi
    U can do this in two ways one u can short close the order by entering Reason for rejection in VA02 at header level and if yr order is multiple line item order u can enter the reason for rejection in any of the line item which u don't want to deliver.
    This is called short close ( as the qty is not delivered fully).
    Thx.

  • How to delete the line item from a sales order

    Hi all,
    how to delete a line item from the sales order for which the production is already happened and it has been delivered. the production order status is DLV.
    Regards
    Kumar

    Hi Kumar,
    I think you can just delete it in the sales order directly, if you are using make-to-order scenario, then there will be special stock left for the sales order as the production has been goods receipt, you need to use MM transaction move the stock to unrestricted use stock. If you are using make-to-stock scenario, there should be no further problem. If you are using assembly order, please try to reject the sales order item to see if it could fullfill your requirement.
    Regards,
    Rachel

  • How do u down load music from your flash drive to your older ipod nano 2gb

    how do u down load music from a flash drive to an older apple ipod nano 2gb

    You import it into iTunes and then sync the iPod.
    (78749)

  • How to delete backend system data from GRC,GRC 10 AC

    Hello experts,
    we have connected multiple ECC systems to GRC by creating connectors with respect to each system and
    currently we are using,now due to some reasons customer requested to delete complete data from
    one of the ECC system from GRC.
    we are using only access control with all components
    please  suggest how to delete all relevant data
    from GRC system
    Thanks
    GRC Admin

    Hi,
    You can use program GRAC_DELETE_ACCESS_RULES to achieve your requirement.
      2075597 - How to delete specific system from SPRO
    Regards,
    Madhu.

Maybe you are looking for