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.
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 'U
I hope this question isn't too amateurish to answer, but it is something that has been troubling me. I have a jsp page page that display information about a user and has the userID passed in the link. So something like user.jsp?userID=12 for example.
Question - I have photoshop elements 8 and I want to be able to load the same picture in multiple times because I have 1200 pictures already pregrouped into 60 file categories and some pictures are duplicated thruout these files. How can I get elemen
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 computerRead other 2 answers
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 ne
I am a recent convert to Firefox. Regarding bookmarks: it seems that you cannot create a new bookmark the same website in two or more different bookmark folders. For example, if I bookmark a website in a bookmark folder called 'ABC' and then bookmark
Hello everybody, I have a phone with the firmware: SCCP45.9-0-2SR1S.loads Added it to CUCM v8.0.2 and CUCM loaded a new firmware to the phone, but /Device/Device Settings/Device Default Cisco 7965 SCP SCCP45.9-0-sSR1S Def. Standard
Hi guys, Just recently got my iphone 4S and i got some issue here... I have been receiving the same imessages on two different phones. The other one was my brother iphone 4s. Whenever i send myself a message, i will get the repeated message and my br
I have two ipod nanos. And i have 2 itunes accounts and we are accessing both accounts from the same PC. One of my ipod works fine, it gets detected as a device and sync fine. The other one does not. Anyone knows what this may be?The music sync i
I can't make or receive calls in my iPhone 5(just bought second hand and unlocked), but I am able to use 3G network. If I use the same SIM card in other phone it works fine. I have tried network resetting and restore. I bought this cheap from an unkn
Hello, I have a performance problem with the statement below when running it with an insert or with execute immediate. n.b.: This statement could be more optimized, but it is a generated statement. When I run this statement I get one row back within
having a hard time figuring out how to run the cycle script which is in use on one portion of my webpage as a slider gallery under my header, but i'd also like to use it in a small are in the upper right of the same page but with a different transit
This problem started last night, I have uninstalled firefox and re installed it, but the same problem persists.hello davidbutterly, it sounds like a theme or extension might be interfering here. please try launching firefox in safe mode once and see
I created two pdfs in Illustrator and on the monitor they look the same because they are the same font, character size, both with the same black fill with no stroke but when they are printed it looks different. One version looks grey while the other
When I turn my computer on, It opens the programs but the same content loads and I can't seem to change it. How can I make it load the most recent previous thing that I did instead of the same thing over and over again?try an iOS upgrade to iOS 4.3.5
Dears! RAW format for my camera is RW2. I used conversion of RW2 files into DNG to process it in Ps. When previewing pictures in IRFAN VIEW I noticed that RW2 and DNG versions of the same picture (before any processing) are quite different. RW2 one
Hi All! In my applet I use two similar statements from javax.swing: jListTeaSortSelect.setToolTipText("To stop the alarm just click over here."); jProgressBar1.setToolTipText("To stop the alarm just click over here."); Both work correc
Hi there, On the print out of an invoice (VF03) I have realized that two different rows at the end of the invoice with the same description (Min Freight Charge) display 2x different amount of freight, once I check the condition type, on the header le