Re: unloading the native library from applet.



On Fri, 22 Jul 2005 03:23:27 -0700, sarath wrote:

> I am using a signed applet, that is using the native libraries. The
> problem is, i am able to access the libraries for the first time. When
> i am trying to run the same applet again, it gives an error that the
> .dll files i am using is locked by another program.

I think the issue might be that you try to load the same library twice.
The JVM of an applet persists even when the applet has stopped running.

> however, if i open
> another browser window, it works fine.

This is likely because the new browser window creates a new instance of
the JVM, which can then load the native library again

> is it because my applet is not releasing the hold on the .dll files ?
> if so, can anyone give an example of unloading the library in an
> applet ?

I guess you really can't. I am not sure if class data persists between
different applets, but if so, you might set some static flag if you
already loaded it.

--
You can't run away forever,
But there's nothing wrong with getting a good head start.
--- Jim Steinman, "Rock and Roll Dreams Come Through"


.



Relevant Pages

  • unloading the native library from applet.
    ... I am using a signed applet, that is using the native libraries. ... i am able to access the libraries for the first time. ... ..dll files i am using is locked by another program. ...
    (comp.lang.java.help)
  • Re: Redirect Standard output to keyboard port
    ... > Which libraries does the applet use? ... Is it the local libraries on the ... > client, or th libraries on the server, in which the applet reside? ... http://www.LensEscapes.com/ Images that escape the mundane ...
    (comp.lang.java.programmer)
  • Access local COM-port on client from an Applet
    ... I'm making an applet for registrating data into a database. ... case, I have written a class that reads data from a local COM-port, ... java program on the client (I have used the java.comm libraries). ...
    (comp.lang.java.help)
  • Re: Redirect Standard output to keyboard port
    ... Which libraries does the applet use? ... Is it the local libraries on the ... Doesn't the applet have limited access to the client? ...
    (comp.lang.java.programmer)
  • Re: Applet focus issue
    ... The problem is that the tool tip text is only displayed when the applet has focus so when another application window is activated in front of the browser window and then the browser window re-activated (regains focus), the tool tips are not displayed until a control within the applet is clicked on. ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ...
    (comp.lang.java.programmer)