JNI : Two native libraries with the same functions

Hello,
I have two versions of the same native library like "abc_v1.sl" and "abc_v2.sl".
They have the same functions but they act differently.
I want to use both of them in parallel (each in its own thread) but only the functions of the first loaded library are being called.
Isn't there any possibility to load each native library in a different name space... maybe a different JVM?
Any help will be appriciated.
Thank you!

Isn't there any possibility to load each native library in a different name space... maybe a different JVM?Naturally if you have different processes (different VMs) then each can load a different version.
This might actually be easier to do. Especially if you think that you are going to be adding more versions. It would require that you implement a communication api from each of thes to your main application.
If you want to do it in in a single process then you have some work to do in C. It has nothing to do with java or JNI.
Basically you need to dynamically load each library and the create a thunk to each method you want to access. Where 'thunk' represents a dynamic descriptor that allows you to dynamically call the method.
What you are doing now is statically loading the libraries. So that won't work.
You can search on your platform/compiler for examples on how to do that.

Similar Messages

  • Iphoto shows two photo libraries with the same name, one in small letters the other in all capital letters. they both open the same library and the only one in my computer. How do delete the capital letrs one as the one in the pictures folder is in

    In my  iPhoto application when I select switch libraries It shows 2 libraries with the same name, but one has the name is in Capital letters.
    They both open the same library which is in the Pictures folder. This is the only library I can see and the name is not in capital letters?
    How do I get rid of the one in capital letters

    What is your iPhoto version?
    when I select switch libraries It shows 2 libraries with the same name, but one has the name is in Capital letters.
    In the Library Chooser Panel look for the pathes to the two duplicate libraries. You will see the location of the libraries in the path bar at the bottom of the window when you select one of the libraries. Does it show both libraries in the same folder?

  • Jdcap, two different libraries with the same name?

    I am looking for a network packet capturer and I have found two libraries, both called "Jdcap":
    1) [http://netresearch.ics.uci.edu/kfujii/jpcap/doc/index.html]
    2) [http://jpcap.sourceforge.net/]
    What are the differences between them? Why do the have the same name? Their APIs are totally different. Which one should I use?

    Roxxor wrote:
    I am looking for a network packet capturer and I have found two libraries, both called "Jdcap":
    1) [http://netresearch.ics.uci.edu/kfujii/jpcap/doc/index.html]
    2) [http://jpcap.sourceforge.net/]
    What are the differences between them? Read the docs for one. Then read the docs for the other. The stuff that's not the same will be the differences.
    Why do the have the same name? Probably because that's an obvious name for a Java library that does packet capture.
    Which one should I use?The one that best suits your needs, which you can determine by having well-defined requirements, reading the docs for both, and writing some proof-of-concept code with both.

  • Can you put two iTunes libraries on the same computer? what is the best way?

    Is it possible to put two iTunes libraries on the same computer?  What is the best way to do it so the two libraries are not connected?

    MSGTN wrote:
    Is it possible to put two iTunes libraries on the same computer?
    yes.
    What is the best way to do it so the two libraries are not connected?
    give them distinct names. launch iTunes while holding the option (⌥) key, click on choose library when prompted, and select the iTunes folder of the desired library.
    FWIW, there are 3rd party apps that help with managing multiple libraries, notably:
    PowerTunes
    iTunes Library Manager

  • Can I use two separate computers with the same adobe ID.  I want to update my kobo from either unit

    Can I use two separate computers with the same adobe ID.  I want to update my kobo from either unit

    I doubt it is possible to run two instances of iTunes on the computer at the same time.  To do so would require two users to be signed in and running iTunes under each user.
    The better solution would be to either clean up and merge the two libraries or have iTunes running on a second computer.

  • Two Cube dimensions with the same name.

    Hi
    If I have a cube dimension that has the same name as another cube dimension, will this be an issue when quering the cube through 1) Excel 2) SSRS or Cognos Reports?
    For instance: The Database dimension DimOrganization exists in cube A as well as
    DimOrganization_Dep. Both dimension has the same attribute names and the same hierarchy names.
    Their database names are different. (object_ID and Object_name differs) 
    In the cube I change the name of DimOrganization_Dep to DimOrganization.
    This seem to work when I query the cube in Excel, the mdx looks like this;
    SELECT NON EMPTY { [Measures].[AntalNotNull] } ON COLUMNS, NON EMPTY { ([Dim Organization].[Yes- No].[ Yes- No].ALLMEMBERS * [Dim Organization].[Yes- No].[Yes- No].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME
    ON ROWS FROM [TEST] CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
    Anyone knows if this kind of setup will result in problems when quering from SSRS reports or Cognos?
    And/or if even though I get it right in the cube (quering from Excel) it might as well give me the wrong result the next time?
    Cheers
    /Martin

    Hi
    Thanks for the reply.
    I have tried and yes I can change then cube dimension namn to that of another cube dimension.
    For instance if i have Cube Dimension "DimA" and "DimB" to begin with , then  I change the name of the cube dimension "DimB" to "DimA". So now I have two Cube dimensions with the same name.
    It works to deploy and process and Excel somehow understands which one is which.
    Both is present in the same cube as you can see from the MDX above.
    The tricky part is how does the mdx return the correct result when the mdx looks like this (and it dpoes return the correct result).?
    Cheers
    /Martin

  • Two AM's with the same name but different forms causes Deployment problems

    Two Masters forms, DOC & PM are cloned except for the "where clause" in the View's query and the titles in their JSP's.
    DOC workspace has a BC project and a BC4JSP Project. The BC project comprises of the EO and VO named ComVsStaticValue. In the Edit prop-> query for the VO I have specified the "where clause" as VSSV_VS_CODE='DOCTOR'.
    In Java Webserver :-
    The JSP's are located in C:\source\Doctor\ .. and the *.xml and *.class files generated by the BC proj is in C:\source\Doctor\pol_ValueSet\..
    If I execute Doctor in JWS the records are getting filtered properly.
    PM workspace has a BC project and a BC4JSP Project. Again The BC project comprises of the EO and VO named ComVsStaticValue. In the Edit prop-> query for the VO I have specified the "where clause" as VSSV_VS_CODE='PAY_MODE'.
    In Java Webserver :-
    The JSP's are located in C:\source\PMode\ .. and the *.xml and *.class files generated by the BC proj is in C:\source\PMode\pol_ValueSet\..
    If I execute PM in JWS, the PM's JSP comes (the title is correct) but the records pertaining to DOC appears. I checked the View's xml file in C:\source\PMode\pol_ValueSet\ the "where clause" is correct. The xml & classes have the same name but their contents are different.
    I want to know whether this problem is because both have the same name for the AM and the BC4JSP's property file.
    Please clarify.

    Deploying two app modules with the same name will definitely cause problems.
    The JSPs use the information in the properties file to connect to the application module and get the data they need from the appropriate View Objects in those app modules. If you have two app modules with the same name, when a JSP tries to connect, it has no way of knowing which one of the app modules to connect to if they both have the same name.
    You could:
    1. Just use one application module that contains all the View Objects you need to access.
    or
    2. Rename one of the application modules or the package it is located in so the names are distinct. If you choose this method, you will also need to update the JSPs (specifically the 'registerApplicationFrompPopertyFile' method call), and your JSP project's appmodule property file.

  • I have two laptops authorized with the same itunes account.  One computer is not working, so I want to know how I can access my playlists, etc. that are one that computer on the working one?

    I have two laptops authorized with the same itunes account.  However, there are different playlists on each laptop.  One laptop is messed up and I cannot get on the internet with it, so I was able to deauthorize it from the itunes account.   I thought that would bring the playlists over to the other computer, but it did not.  Is there a way to do it?

    These links may be helpful.
    How to Track and Report Stolen iPad
    http://www.ipadastic.com/tutorials/how-to-track-and-report-stolen-ipad
    Reporting a lost or stolen Apple product
    http://support.apple.com/kb/ht2526
    Report Stolen iPad Tips and iPad Theft Prevention
    http://www.stolen-property.com/report-stolen-ipad.php
    How to recover a lost or stolen iPad
    http://ipadhelp.com/ipad-help/how-to-recover-a-lost-or-stolen-ipad/
    How to Find a Stolen iPad
    http://www.ehow.com/how_7586429_stolen-ipad.html
    Apple Product Lost or Stolen
    http://sites.google.com/site/appleclubfhs/support/advice-and-articles/lost-or-st olen
    Oops! iForgot My New iPad On the Plane; Now What?
    http://online.wsj.com/article/SB10001424052702303459004577362194012634000.html
     Cheers, Tom

  • Loading in a second Actions panel with the same functionality as the first, but independent from it

    The actions panel is perfect at what it does; however, if you have a few action sets and, in order to eliminate scrolling, you need to expand them into a double row of buttons, it quickly becomes difficult to maintain. As soon as you delete an action or add an action to it, it disorders the others and you have to reorganize again, which becomes a vicious cycle. I like to keep things organised and neat with all that I do and pretty much the only way to have this feature is to expand it on the back end of the software or, if possible, create a script that loads a second Actions panel with the same functionality as the first but completely independent from it. I assume that the SDK will not allow us to expand on the software in this particular way, as Photoshop is not open source; however, maybe this suggestion will be taken into account for future updates or versions since I have yet to find a suitable way to do this.
    Thank you in advance.
    Kind regards

    That would depend on the links on the page. Some pages have links that refer to different areas on the same page. If you want to force a link to open in a new tab, you can middle-click it.

  • HT5012 Can I install two root certificates with the same name in iPad?

    Can I install two root certificates with the same name in iPad?

    Antaeus00 wrote:
    I tried sending a request for help,
    But did you succeeed in sending a request for help?
    Did you receive a response? How long has it been since you sent a request?
    but I need someone with more authority to talk to.
    There is no one with more authority than iTunes store support. We herem are only users.

  • Can anybody tell how to compare two documents with two pointers controlled with the same mouse

    can anybody tell how to compare two documents with two pointers controlled with the same mouse ??

    I saw what I need but in a game to find the differences between two photos (two screens, two pointers controlled by one mouse), and I need a program to make the same thing   (compare a chosen files)

  • HT5622 I have two iPhones synced with the same Apple ID and so the contacts are being shared in both of them. Is there any way to revert this?? The reason is that if I delete some contact from one device then it automatically erases from the second one as

    I have two iPhones synced with the same Apple ID and so the contacts are being shared in both of them. Is there any way to revert this?? The reason is that if I delete some contact from one device then it automatically erases from the second one as well

    Yes, you stop using the same Apple ID under Settings > iCloud.

  • If I have another iphone and restore with my Mac, what happen with the FindMyIphone if I have two iPhone's with the same backup?

    If I have another iphone and restore with my Mac, what happen with the FindMyIphone if I have two iPhone's with the same backup or sync with the same computer?

    If you have more than one device on the same Apple ID, Find My iPhone will let you choose  the one to find.

  • How do you get FaceTime to work between two Mac's with the same email address? Thanks, Mike

    How do you get FaceTime to work between two Mac's with the same email address?

    I would like to know the same thing.  How does facetime work between a MacBook Pro and an I Pad that run off the same email address/mac id

  • Itunes match with two different libraries on two different computers with the same apple ID? How?

    I have a work PC that I synch with my itunes library and it works totally fine. I also have a macbook at home with a different library on it. Both compuers share the same apple id. will itunes match synch all the devices with the same library? If so do I only need one itunes match purchase or do I need one for each computer? The apple help desk (phone support) and apple store I recently visited were unable to provide me with answers to my questions.

    Just create a new account. On one iPod go to Settings>iTunes and App stores and sing out and sign in with other account. Same for Settings>iCloud and Settings Messages. Also go to Settings>Face time and add the new iD email addrss as the Caling email address and delete the other one.
    - Apps are locked to the account that purchased them.
    - To update apps you have to sign into the account that purchased the apps. If you have apps that need updating purchased from more than one account you have to update them one at a time until the remaining apps were purchased from one account.

Maybe you are looking for

  • How do I stop duplicating contacts when I sync with gmail

    How do I stop duplicating contacts when I sync my IPod Touch with Gmail?

  • Constant registration prompting in iTunes 7.5

    Hi, Every time I plug in my new iPod classic, the iTunes software prompts me to register the iPod & create an iTunes store account. I've registered it 3 times, twice by the iTunes software and once by the Apple website. It's getting annoying, and I'd

  • Changing Universe for WEBI Rpeorts

    Hi, We have a scenario where 5000+ webi reports based on 3 Universes currently pulling data from Oracle, we have plans to replace Oracle with SAP HANA. By this change and from our experience we are assuming that it  should be good practice to re-crea

  • Urgent!!!!Regarding Workflow mailer of iStore

    Hi All, I need to modify the body content of iStore user registration workflow email . I tried to modify the file IBENOTIF,then after I generated email from istore, then it showed the old format.. How can I get new format of body content of email? Pl

  • Public pages in authenticated application (NTLM)

    I've been using a custome authentication method based on the NTLM Authentication method documented in the [white paper|http://www.oracle.com/technology/products/database/application_express/pdf/apex_ntlm_authentication_wp.pdf] for a while now with no