use java edition and edition of native at the same time in a single java application

Hello

I have a situation where I need to use both versions of berkeley Db at the same time. I have an external library that I use and which requires the Java edition and my own code which uses the native version. Unfortunately, the library source code is not available and I don't want to see my program to use the Java edition.

Some packages in je.4.0.103.jar and db.jar (version 5.1) contain the same naming structure and classes for example. com.sleepycat.persist.EntityStore. I removed the packages duplicated in je.4.0.103.jar however, it seems that the implementation is slightly different between the two versions I get

java.lang.NoSuchMethodError: com.sleepycat.persist.EntityStore. < init > (MBCA/sleepycat/I/environment; Ljava/lang/String; MBCA/sleepycat/persist/StoreConfig ;) V

When I had just two available versions my code for the preserved native version using the packets from the Java edition and an external library maintained on the use of the native version and therefore I had loads of errors.

So how I differentiate them. The problem is because the two sets of packages have identical names and the names of classes for Java does not know which ones to use. I use eclipse then maybe there is an option where I can say that some classes to use some packages.


Any ideas?

Hello

We do not officially support using BDB and BDB I from the same JVM process.

It is possible to circumvent this limitation by creating two [url http://download.oracle.com/javase/1.4.2/docs/api/java/lang/ClassLoader.html] Chargers of Java classes which load a file two jar. When you call BDB or BDB I methods, the call should be put in brackets with calls like this that cause the correct class loader to use:

ClassLoader saveLoader = Thread.currentThread().getContextClassLoader();
Thread.currentThread().setContextClassLoader(/* specify correct loader for BDB or BDB JE here */);
try {
   // do something with BDB or BDB JE
} finally {
  Thread.currentThread().setContextClassLoader(saveLoader);
}

We are not experts in the field of chargers for custom classes and we do not have an example of this. We don't him did not ourselves, we know only that users have done.

I hope this helps.

Kind regards
Alex Gorrod
Oracle Berkeley DB

Tags: Database

Similar Questions

  • Windows Virtual PC will allow me to use Office 2007 and Office 2002/2003 on the same PC without problems?

    I have Windows 7 Enterprise (32 bit) installed with Office 2007. New machine. However, I am a trainer/support specialist and many of my clients have XP Microsoft Office 2002/2003, and I need to provide support. It would be much easier if I had XP and Office 2002/2003, but I know that Microsoft does not recommend the 2 versions on 1 PC. Windows Virtual PC is the solution?

    Yes, that might work.  You can install Windows Virtual PC and Windows XP Mode, and then install Office 2002/2003 in the Virtual PC in Windows XP.  You can then run the Office 2002/2003 programs in Virtual PC, or close the Virtual PC and run them in Windows 7 from all programs > Windows Virtual PC > Windows XP Mode Applications .  You can even have Office 2007 programs and 2002/2003 open at the same time in Windows 7. Boulder computer Maven
    Most Microsoft Valuable Professional

  • So, now that the iPhone 7 no longer a listener, how can we charge the iPhone and listen to music at the same time?  There is an adapter that will be a separator so that the two things are possible?

    So, now that the iPhone 7 no longer a listener, how will we be able to charge phone and listen to music at the same time?  Will it be a card which will be a dispatcher?

    You can use a dock of lightning to reload everything using plug the dock integrated headset for listening to music.

    http://www.MacRumors.com/2016/09/08/lightning-dock-iPhone-7-charging-with-music/

  • iPhone 7: how to charge and listen to music at the same time...

    The new iPhone is great! But a quick question that I can't find the answer to... In the car, I use the TomTom app and listen to the music on my phone. Because it must be reloaded when I use TomTom, I have a cable for music and one for the load. The new iPhone means that I can't load and listen to music at the same time? Or will there be some accessory available?

    Thank you!

    You can read what is known on the Apple site.

  • If I click on "PIN to the browser" the sensitive axis is unselected and vice versa. I need object "PIN at the top of the browser" and 'sensitive pine' work at the same time. Any suggestions?

    In the latest version of muse to adobe, I have me against "PIN at the top of the browser" and 'sensitive pine' work at the same time.

    Now if I choose an object and the axis 'browser', "sensitive pine" is unselected and vice versa.

    The need is for the header with the logo and menu bar to be pinned to the top of the browser, so that the page scrolls in the header bar.

    Now when I click on the sensitive left axis for the logo and the sensitive right pin for the navigation bar, the "pin at the top of the browser" gets deselected.

    Any suggestions or workarounds will be appreciated.

    Kind regards

    Vijay

    Hi all

    Thanks for that bring to our attention. We will consider adding this feature in the future.

    RyanDoyle - it's an interesting hack you have found! Unfortunately, I wouldn't count on that it works like this in the future, as a bug which is to operate. If you drag the screen to change the width of the browser as a Muse, you'll see that the behavior of the elements in the status button (a menu, for example) is different from when exported. However, if you make a small change to your hack, so it should always work: set button "width sensitive" State instead. In addition, I don't see why all parts must be in separate to this job state buttons, but I've only tried a simple example myself.

    An another workaround I used is to create another, more breakpoint. For example, if I have a menu that is pinned to the top left of the browser in the dots stop, then in a breakpoint, I would pin in the center top of the browser. Normally, I wouldn't add more breakpoints, but there is a way that I found to work around the problem. Ryan workaround is perhaps the best way to go if you take my advice and use a status button sensitive width instead of the width of the browser.

    Hope this helps,

    Anna

  • Template file - y at - it an easy way to update the files related to a model, and download them (put) at the same time?

    First of all, I am a user of Adobe software for 20 years now.  I love the adobe range. I want to just clarify.

    Question... Template Files - y at - it an easy way to update the files related to a model, and download them (put) at the same time?

    Its been bothering me since I started using Dreamwever 10 years now, when you use template files to create small, who later turn wholesale websites. Whenever I update a template file I have to find each file in the files Panel, then download them. When I navigate through a lot of directories to find it can get a lot of time and boring.  Whey cant be just a button that does it? See the attached file.

    Is there a way to do this?  Any help would be appreciated.

    Thank you very much

    Andy

    Dreamweaver-Updated-Template-File.jpg

    The sync tool should do what you want (second "circular arrows" icon in the files window).

    Who checks your files against the files of the current server and download all that is changed. By default, is also download any file from the server which is more recent than your local files at the same time, but you can set it to 'Put the latest files remotely' rather than 'get and put newer files' and you should be good to go.

  • How to use develop/Tone/Auto on several pictures at the same time?   v.1.4

    How can I use develop/Tone/Auto on several pictures at the same time?

    Highlighting multiple photos and clicking on it did not work for me, if I can get it to work on a single photo at a time.

    Method 1:

    1. Go to the develop module
    2. Select the photos in the camera roll.
    3. Hold down the Ctrl key and click on the Sync button. He turns to auto sync.
    4. Now, whatever you do develop apply to all photos.
    5. Click on auto sync once more to turn off autosynching.

    Method 2:

    1. The display of the grid of Goto.
    2. Select the photos.
    3. Press Ctrl + U.
  • iPhone 6 s - photo app does not allow users to take pictures and listen to music at the same time

    The repro steps:

    • iPhone 6 s - photo app does not allow the user to take pictures and listen to music at the same time

      Music app vs photo app

    (1) play a sound track in the music app
    (2) the swtich to app photo (on the "Photo" mode)
    (3) music stops

    Pandora app vs photo app

    1) turn on pandora
    2) switch to the camera on the 6s iphone app
    (3) stopping the music

    PLEASE FIX AS SOON AS POSSIBLE *.

    My iPhone stopped playing music when you take photos?

    Nothing to trouble since he was not taken in charge.

  • In windows movie maker, failed to get the narration and music to play at the same time

    Hello
    I have followed the instructions to the T, but cannot get the narration and music to play at the same time.

    Hi Anataia,

    You are unable to play the music and narration at the same time, you can adjust the audio levels to determine which audio will play louder than the other in your movie.

    The audio settings by default in Windows Movie Maker is for the audio portion of imported video and any narration or music that you add to play at an equal level, but you can change that setting if it does not give you the balance that you want. To adjust the audio levels, follow these steps:

    1. Click on Tools, then the Audio levels.
    2. Do one of the following:
      • To increase the level of audio on the Audio track that is part of a video clip, drag the slider toward Audio from video.
      • To increase the level of audio that is located on the audio / music, drag the slider to Audio / Music.
    3. Click close.

    http://Windows.Microsoft.com/en-us/Windows-Vista/adjusting-audio-in-Windows-Movie-Maker-frequently-asked-questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/add-narration-to-your-movie

    Hope this has been helpful.

    Bindu S - Microsoft Support
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Buy two planes? Photographic for 9.99 and 19.99 Indesign at the same time? It s less expensive than 49.99 with applications and I only need this two software

    Buy two planes? Photographic for 9.99 and 19.99 Indesign at the same time? It s less expensive than 49.99 with applications and I only need this two software

    Hello

    Yes, you can buy the plan of photography as well as one app In-design under the same account.

    Please check the link for purchase https://creative.adobe.com/plans

    Please go through the Adobe - General conditions of subscription as well.

    Hope this helps!

  • Copy and paste multiple fields at the same time?

    Is it possible to copy and paste several fields at the same time as in the employment history section or reference to an employment application?

    Hello Glenn,.

    You can right click on the domain and select 'Copy field' and can then slide it into position suitable in the document so that in the preview page.

    Let me know if that helps!

    Kind regards

    -Usman

  • where is "allow firefox developer edition and firefox to run at the same time"?

    just update to 41... and now I have cannr run this at the same (time

    You can add - no.-distance to the command line to open another instance of Firefox with its own profile and run multiple instances of Firefox at the same time.

  • Can I install/use the Acrobat 9 and Acrobat DC versions at the same time?

    I use Acrobat 9 and try a trial version of Acrobat DC.  Can I use both versions on my laptop at the same time?  The Setup program for DC wants to 'replace' my existing version.  Uh, no.

    Hello

    Unfortunately, you cannot use/install Acrobat 9 and Acrobat DC on the same computer and uninstall older versions of Acrobat to install or use Acrobat DC.

    Thank you.

  • Can I use Lightroom on my mac and my pc at the same time with a single subscription?

    Hi all

    for five months now, I have a subscription to creative cloud for Lightroom and Photoshop. So far, I used just on my PC. Now I have bought me a MAC and want to install Lightroom on MAC either. Do I need a second subscription for MAC or can I use my subscription on MAC and PC at the same time?

    thx for your comments

    If you ask if you can run the software subscription on both machines at the same time, the answer is no.  Your license you can only use one of the facilities at any given time.

    If you ask that if you have the software installed and that can be used on both machines so the answer is Yes... just can not both machines in use, software subscription running at the same time.

  • Windows 7 will not accept any ati driver and catalyst control center at the same time.

    I tried a number of ati drivers. My card is a 4870 x 2 2 GB edition. The driver that windows installs will not accept any CCC.

    I did also install CCC and only driver left. I tried to play Everquest 2, first game to install, and it crashes before the charge, gives me an error of ref dx9.

    I'm assuming that windows 7 has the new package dx so I shouldn't have to reinstall that. I downloaded some of them however.

    I'll try a restore and see if it works. If I could go back in time and never bought this o/s I now.

    This is ridiculous.

    Windows 7 DirectX 11.  You can also download and install v9 and have both at the same time, which is what I have on two different computers for this reason.

    Press the low a 3rd to: http://www.microsoft.com/downloads/en/resultsForProduct.aspx?displaylang=en&productID=9C954C37-1ED1-4846-8A7D-85FC422D1388

Maybe you are looking for

  • Since the update to Thunderbird worm. 41 it is fixed as the preferred application for browsing the web in Linux Mint 17.2?

    What could be the cause of Thunderbird to set as the favorite in Linux Mint 17.2 browser client. If I reset it to Firefox, the next time I open Thunderbird, it still resets the preferred setting Thunderbird client. When I open Firefox, it pops up a w

  • Equium A60-155 will not start

    Hello I have an Equium a60-155, that I knew that she works for a while, but recently I came with a new poroblem... my laptop guard turn off without notice and loses all power. The battery has been dead for some time and lasts about 5 seconds, but I'v

  • My w2228h speakers does not work

    I plugged in my processor, but is yet to produce a sound. What will I do? help someone

  • How to play mp3 speaker BB Storm?

    I'm playing an mp3 on the storm.  I read through known (see thread below), I have to come sound in the headphones, but I'm still not able to get sound from the speaker of the device. http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java

  • Zoom on a timeline / sequence

    in first pro cc 2014 you can zoom in on a timeline / sequence by pressing alt and scroll with a scroll wheel and it zooms just where is your mouse pointer.but in first pro cc 2015 it just zoomed in on a random place not where is the coursor.someone a