Loading the same native Libaries in different Applets doesnt work !

The problem is the following :
I have applet_1 that does System.loadLibary("mydll")
and i have applet_2 that does System.loadLibary("mydll")
both calls are static but it doesnt matter.
When i call applet_1 first in my browser it can do anything it wants (function calling in dll etc).
When i call applet_2 after that in my browser, it doesnt load the libary, nothing happends - no exception thrown it just doesnt happend anything. The applet works fine but cant do any method calling to the dll.
The same happends if i open applet_2 first and after that applet_1 suffer the same problems that it cant call any dll methods, unless i close the browser.
So, the first applet that loads the libary is the only one who is able to call methods within the dll.
Further observation is, i made a simple class that only loads the libary, i set an int to 1 when the libary is loaded, however when the other applet calls that class the int is NOT 1 anymore, it has its initally value which leads me to believe that every applet in the java plugin has its own virtual machine.
I found this thread, it has the very same problem. However i didnt find anything about the bug 4299094.
http://forum.java.sun.com/thread.jsp?forum=30&thread=33843
Any ideas what i could do to solve this problem ? When i copy the dll and rename it to mydll2 i can use mydll in applet_1 and mydll2 in applet_2.
Regards

Further notice :
I put both applet classes into one jar after i read about the Class Loader Issues in the documentation of the java plugin.
"Class Loader Issues
Prior to version 1.3.1_01a, Java Plug-in would use a single class loader to load multiple applets during a browser session. This practice allowed the multiple applets to share information with each other through static variables.
In order to maximize compatibility with the Java virtual machines embedded in Microsoft Internet Explorer browsers, beginning with version 1.3.1_01a Java Plug-in uses separate class loaders for applets that differ in their codebase and/or the value of the ARCHIVE parameter in the APPLET tags that invoke the applets. Only if two or more applets share the same codebase and have the same value for their ARCHIVE parameter will the same class loader be used.
Applets that rely explicitly on the old Java Plug-in behavior with respect to class loaders may be incompatible with the new Java Plug-in. That is, applets that rely on the ability to share information afforded by a single class loader may fail to work properly if the new Java Plug-in uses separate class loaders for each applet. If this compatibility issue applies to your applets, you can force Java Plug-in to use a single class loader for multiple applets by simply ensuring that all applets have the same codebase and that the APPLET tags used to launch the applets each has the same value for the ARCHIVE parameter. "
Both applets now can load the libary but ONLY if executed in the SAME window, if i open a new window and load applet_1 or applet_2 the libary cant be loaded in the NEW window. It will still work flawless in the old window for applet_1 and applet_2 but in the new window applet_1 and applet_2 dont work.

Similar Messages

  • LabView hangs when trying to load the same VI with a different user logged onto Win2k

    When 'User A' is logged onto Win2k, a particular VI loads and runs fine. When 'User B' logs onto the same Win2k box, LabView hangs when trying to load the VI.
    I'm also not seeing the setup channels in the Data Neighborhood in MAX when logged on as 'User B'. I tried loading the configuration when logged on as 'User B' that I think is being used for 'User A', but nothing happens.
    Where are the configuration files (of whatever type) that tell LabView which user is logged on?
    Thank you!

    There are no configuration files that tells LabVIEW what users are logged on. It is Win2K permissions settings that allow different users access to different folders and applications. Try changing the permissions for the LabVIEW folder and see if that doesn't fix your problem.

  • I have itunes10 and have all the same info filled in but homeshare doesnt work, i am not able to look for others

    it doesn't give me the option to look for another computer to homeshare with

    try if anything in this support article helps.

  • Different Risk Analysis Results with the same user from 2 different RAR

    Hi..
    I've loaded the same Risks, Rules, etc, into 2 GRC RAR environments (Sandbox and Quality systems); both of them are connected with the same SAP ECC system. But when I do a User Risk analysis (authorization level), the result from Sandbox is different from Quality system. I donu2019t have users or roles mitigated yet, users are synchronized, rules are exactly the same and I donu2019t know what happen??... Please, help me.
    Thanks...

    Hi...
    If I do a Full Sync of users to the same ECC system from both RAR boxes, I got different number of users loaded (i.e. 18757 vs. 18141), similar case with the full sync of roles. (13100 vs.  13150).
    If I load exactly the same set of functions to both RAR systems and I generate the rules, I got the same problem, different number of rules is generated.
    I've verified both RAR configuration and they are the same (excluded users, roles mitigated, etc.)
    Is it a normal behavior? What could be wrong?
    Thanks in advance!!

  • Loading the same project twice

    I need to be able to load the same toplink project twice within the same jvm. It looks like the sessions.xml file would define a session named "mysession" and after having instanciated the server session twice the session manager would contain two different sessions : "mysession_1" and "mysession_2".
    I intend to load the project by doing :
    1. (Server) SessionManager.getManager().getSession(new XMLSessionConfigLoader(), sessionName, sessionClassLoader, false,true);
    2. rename the session manager hashtable key from mysession to mysession_1
    3. rename the session itself session.setName(...)
    4. redo 1.
    5. redo 2. and 3. for renaming from mysession to mysession_2
    What do you suggest?

    Or make two sessions in your session.xml file, one named mysession_1 and the other mysession_2.
    This would avoid messing around with the sessions once they have been loaded by the session manager and all you need to execute is:
    SessionManager.getManager().getSession(new XMLSessionConfigLoader(), "mysession_1", sessionClassLoader, false,true);
    SessionManager.getManager().getSession(new XMLSessionConfigLoader(), "mysession_2", sessionClassLoader, false,true);
    Cheers,
    Guy

  • Can i use 2 ipad's on the same itunes account with different apple accounts?

    Both me and partner have an ipad 4. Though we only have one computer, can we use the same itunes but with different apple acount without any issues? We use some of the same apps, but my partner plays fx Baldus Gate and is worries that save files will be corrupted.

    Each iPad should be linked to its owner's personal, private and nonshared AppleID. In the Mac, each one should have a different login account so each has their own iTunes Library containing your iPad's details. When you use iTunes on the Mac, since each logs in with a different login and corresponding Home directory, iTunes picks up the correct AppleID.

  • I have multiple devices backed up to the same computer each with different data. how do i keep them from syncing all data when i back up or transfer stuff from the computer to a device?

    i have multiple devices backed up to the same computer each with different data. how do i keep them from syncing all data when i back up or transfer stuff from the computer to a device? one is an iphone 6 and the others are ipad mini first gens, each ipad has 64gb and the iphone has 128, need to keep the data seperate as they are not all mine

    Itunes content and pics are NOT part of the backup that itunes performs.
    Backing up, updating, and restoring iPad, iPod touch, and iPhone software
    You should transfer any purchases from iphone regularly:  File>Transfer Purchases  , if they fail to be transferred when you sync.
    You buy one and only one download.  It is your responsibility to move/copy/backup your purchases.
    You can try contacting itunes support and asking for an exception, but they are under no obligation to allow.
    http://www.apple.com/support/itunes

  • How do i backup my iphone 3 started on one itunes account and restore to the same phone with a different itunes account without losing all my information?

    how do i backup my iphone 3 started on one itunes account and restore to the same phone with a different itunes account without losing all my information?

    Please search the forums. This has been covered here extensively.

  • How to use the same OC4j server with different port number

    How to use the same OC4j server with different port numbers..?
    I have to OC4J installed on my machine on different hard disk drives....
    I want to be able to run both the server simultaneously..?
    is it possible ..it yes then how..?
    for that i have changed the port number of one server...
    but when i am trying to start the other server with different port number..it says that JVM -Bind already...
    Is there any clues...?
    Nilesh G

    In the config directory:
    default-web-site.xml: Change the port the HTTP listener listens on
    jms.xml: Change the port the JMS service listens on
    rmi.xml: Change the port the ORMI listener listens on.
    Or, you can add another web-site.xml file, and deploy your applications to 1 server, and bind the web applications to the different web sites. This way you only have to deploy your applications to 1 place.
    Rob
    Oracle

  • HT3819 If I have to load the same apple id on all devices to use home share, does that preclude each device from using a second apple id and does that constitute a separate Itunes db or something?

    If I have to load the same apple id on all devices to use home share, does that preclude each device from using a second apple id and does that constitute a separate Itunes db or something?

    Welcome to the Apple community.
    Only one of your libraries needs to use your iTunes Store Apple ID for home sharing. Your other computers can use their own ID for iTunes, so long as they use the same ID as all of the devices on the network for home sharing.

  • 2 iphones 1 computer. updated my wifes phone to ios 5 her phone got wiped of all apps and all my contacts are on her phone. we had been using the same apple id but different user accounts on our laptop. How do i get her phone back to normal?

    2 iphone 4, 1 computer. i upgraded to ios 5 and just updated my wifes phone as well. her phone got wiped of all apps and all my contacts were put on her phone. we had been using the same apple id but different user acct on our laptop. How do i get her phone back to normal??

    Have your wife log in to her user account on the laptop. Launch iTunes, then connect her phone to the computer with the USB cable. Sync. That should put back all apps and media. Since you already upgraded her to iOS 5 she'll have to manually enter all her settings and preferences, and organize her home screens.

  • How can i use the same id on two different laptops?

    When trying to use the same login on two different laptops so that i can connect my nook to either depending on which one is free, i get the error that the id is already in use on another computer?

    The issue is embedded in the way the software works.  To comply with the
    Digital Millenium Copyright Act of 2000, all software companies in this
    business keep track of where their software is installed, making
    information about the computer and ereaders part of an ID file.  So, your
    user ID is embedded in the ID file of each computer, but each computer has
    a different ID of its own that is also embedded in that file.  Adobe's
    master server (yes, there is one that you connect to even if you didn't
    know it) also has that information, and when you try to use an ID on one
    that's embedded in the file of another, Adobe's server blows the whistle,
    and as you can see, you can't do that....
    ==========

  • HT4356 I have an air-print enabled printer: HP Premium e-all-in-one C310.  Can't print from iPad iOS6.  They're on the same network, but have different IP addresses.  On the iPad it's 192.16.1.126 and on my printer it's 192.168.1.133.  Can I match them? H

    I can't print from my iPad2 to my air-print enabled printer (HP Premium e-all-in-one C310).  They're on the same network, but have differed IP addresses!  The iPad IP is 192-168-1.126 and the printer is 192-168.1.133.  That's the only difference I can see.  Is there a way to fix this?

    fyi:
    you put periods between the numbers.
    Each device needs a unique number.
    for the 192.168.1 the right must number should vary.  192.168.1.x
    the numbers you have look ok.
    Power off all devices: wifi router, printer, ipad.. wait 10 minutes.  poweron router ... wait power on printer wait then power on ipad.
    cross fingers.
    Robert

  • Use two indicators for the same variable in two different VIs

    hello, I want to use two indicators for the same variable in two different VIs running at the same time
    should I use global variables?? I want to avoid because I have lot of variables and it would takes too much memory,I tried with this code but the value of the second indicator is not updated 
    I tried to use the queue and it works but the problem is as i said previously that i have many variables shoud I use a queue for each one??
    what should I do?
    thank you in advance
    cordialy
    Attachments:
    projet.zip ‏13 KB

    CrisSTine01 wrote:
    hello, I want to use two indicators for the same variable in two different VIs running at the same time
    I'm a huge fan of User Events to send updates to GUIs from who knows where.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Can you use home share where there are 2 itunes on the same computer but under different user profiles?

    Can you use 'Home Share' where there are 2 itunes on the same computer, but under different user profiles?

    check out method one from this support article -> How to use multiple iPods, iPads, or iPhones with one computer

Maybe you are looking for

  • I lost access to Acrobat X.

    I subscribed to Creative Cloud in May of 2012.  As part of a promotion for early adopters, Adobe offered a free upgrade to CS6 for existing Creative Suite customers.  This upgrade included Acrobat X, which I have been using ever since.  I cannot upgr

  • Need to remove reason id from the dropdown ...

    Hi SAP Experts , We need to remove the reason code in the drop down for the Reason field (as shown in the pic) in the interaction record workcentre . We want only the reasons to be displayed in the drop down Thanks in advance...

  • Reg: Procedure to find the exact BAPI in short cut

    Hi, I have two queries: Any body can tell me how to find out exact BAPI for say Change of PR. I want to know the procedure to find out a BAPI. In addition to that I would like to flag "closed indicator" for  huge no of PRs as a Cutover strategy. How

  • I tried to partition my Harddisk and now i can't find the partition and the space is lost.

    The 100GB that I intended to create my partition on are lost and I can't find them anywhere. The option to merge two partitions doesn't even appear and I don't tend to restore my device. Greetings

  • Need to setup monitoring aon multiple ports for IDS

    I have a cisco 3845. I need to need to setup monitoring aon multiple ports for IDS on 2 ports. How do I do this. Also, Is there a way to make ports on the switch portion act like hubs. Thanks