Jars dependent on different versions of the another jar

I have two vendor supplied jars that are both dependent on different releases of another jar. So, in the usage instructions for the first jar, it says to make sure that x_1_2_1.jar is my classpath. Likewise, in the usage instructions for my other jar, it says to make sure that x_2_0_1.jar is in my classpath. The installers for each one of these jar puts their version of the dependent x jar in a subdirectory under their installation.
This causes all sorts of headaches because neither jar ever gets completely what it is looking for. Code in the jar that depends on x_1 fails if x_2 is in the classpath first, while code in the jar that depends on x_2 fails if x_1 is the classpath first.
(Since, I'm sure to encounter this mismatched versioning problem with other "utility" jars in future, I'm intentionally withholding the actually names of the jars involved. I'm looking for the general solution to this class of problem, not specific tips related to a particular utilities jar.)
I was thinking that maybe the manifest Class-Path of each jar might be used to force where each jar looks for it's dependent jars, but the documentation I read about Manifests indicated that each jars Class-Path is simply concatenated into the overall Classpath that the ClassLoader uses.
If it matters, all this is in a Java 1.3.1 environment.
It seems like I can't be the first person to come up against this, but I haven't really seen any traffic on the forums about this kind of problem. (Am I missing something obvious?)

May be custom ClassLoaders may help you, but I am not sure. It depends on whether you are allowed to explicitly load several equally named classes from different sources.
Probably it is allowed. The following is cited from the Java Language Specification, 2nd edition (chapter 7.7, Unique Package Names, packages.doc.html):
"If unique package names are not used, then package name conflicts may arise far from the point of creation of either of the conflicting packages. This may create a situation that is difficult or impossible for the user or programmer to resolve. The class ClassLoader can be used to isolate packages with the same name from each other in those cases where the packages will have constrained interactions, but not in a way that is transparent to a na�ve program. "

Similar Messages

  • How to use two different versions of the same jar within one project

    Hi everybody!
    I have a big problem while integrating different web service clients within one bigger java project. Both implemetations need some jar files to work but demand different version. So, i would like to know if there is any way to tell which implementation should use which version! Anyhow i add those jars to the classpath makes working only one or the other webservice working but never both! Any ideas somebody?
    Best regrads,
    Stefan G�tz

    Of course do have the jar files different names but the classes inside of them are the same ... means that the standard system classloader can distinguish them. When you add a jar to a classpath the name actually dosent matter.... any other ideas, please?
    PD.: i tryed to add a manifest file to the one jar which makes use of one of the dublicated jars to specify which jar to take direcly but it makes no difference since once classes loaded they cant be distinguish ....see:
    http://java.sun.com/docs/books/tutorial/ext/basics/load.html

  • Warning a client is using a different version of the ormi protocol 1.3 != 1

    Hi All,
    I am trying to access a bpel process deployed on 10.1.2.0.2 bpel process manager via java client. I am getting the below error on the bpel process manager as,
    Warning a client is using a different version of the ormi protocol 1.3 != 1.1
    I am using the following jars at client side,
    ejb.jar
    oc4jclient.jar
    oc4j-internal.jar
    optic.jar
    orabpel.jar
    orabpel-common.jar
    xmlparserv2.jar
    Can you please help me to solve this issue.
    Appreciate your help!.
    Thanks,
    Levey

    I believe there is a patch available, which allows cross version ORMI compatibility, which needs to be applied to the 10.1.2 release:
    http://download-west.oracle.com/docs/cd/B25221_04/web.1013/b14427/rmi.htm#JISVC6301
    -steve-

  • Versioned deployments: how to deploy different version of the same app ?

    I 'd like to deploy on a server (single instance) different versions of the same web application, say:
    webapp1.war
    webapp2.war
    webapp3.war
    The wars have the same ContextRoot.
    It is possible to version them with an attribute in MANIFEST.MF, but is it possible to have the N applications ACTIVE and running ? I'd like that one IP will be served from webapp1, another IP from webapp2, another IP from webapp3, etc.

    It may your 'requirement' but I have serious doubts that the app review team will approve it. Save yourself the waste of time and follow my original suggestion of one app. That's the only correct 'method' (w/IAP of course) that will have a chance of success.
    See the iOS Human Interface Guidelines and the App Review Guidelines before you go any further. In the case where you need 'official' guidance, consider using support event w/DTS

  • Different versions of the same app on the app store

    Is it possible to let users download the different versions of the same app from the App store,( even though I have not seen it but just wonder whether it is possible) ?
    If not then can we have different releases of the same product with different feature set.
    This question is applicable for iPhone as well.
    Thanks

    Wouldn't do you any good, as you need to be a registered developer to use the forum. Just contact one of the developer's of an app you're interested in and ask the developer directly.

  • EJB was compiled by a different version of the Weblogic Server

    I got the following error message when attempt to startup weblogic server to deploy my ejb.
    <The EJB deployment named: ejb_test was compiled by a different version of the WebLogic Server.>
    <... cannot be redeployed while the server is running ...>
    Anybody has any clue about this? TIA.
    Cheers. KokHwa.

    See inline:
    KokHwa wrote:
    I got the following error message when attempt to startup weblogic server to deploy my ejb.
    <The EJB deployment named: ejb_test was compiled by a different version of the WebLogic Server.>
    Exactly what is says. You are deploying an EJB that was compiled with a
    different Weblogic version (might be a different SP or a previous
    version) that the one you are deploying on. Recompile with the same
    version as the deployment and it should be fixed.
    <... cannot be redeployed while the server is running ...>
    This message is the same. Because you have some of the classes of the EJB
    in your server classpath you will not be able to redeploy that EJB but apart
    from that it's harmless. To redeploy after changing the EJB you'll have to
    restart the server.
    >
    Anybody has any clue about this? TIA.
    Cheers. KokHwa.
    --dejan

  • Good afternoon! We purchased the product Adobe master collection 5.5 AOO Litsense RU. Distribyutiv program has been lost, and now we can not find it on the site. There we find different versions of the program other than Russian. Please tell me where to d

    Good afternoon! We purchased the product Adobe master collection 5.5 AOO Litsense RU. Distribyutiv program has been lost, and now we can not find it on the site. There we find different versions of the program other than Russian. Please tell me where to download it?

    Voronello volume license installation files are available under the end user or deploy to account at https://licensing.adobe.com/.

  • Updated pages on 11/25 but it in application it is saying there is an new version for $19.99.  Is this a different version or the same?

    updated pages on 11/25 but it in application it is saying there is an new version for $19.99.  Is this a different version or the same?

    Launch Pages.
    From the Pages menu bar click Pages > About Pages
    The latest version available is 5.0.1
    If it's 5.0.1, your currently installed copy of Pages is up to date.

  • Why do different versions of the LabVIEW Run-Time Engine not compatible?

    LabVIEW Run-Time Engine to become more and more big
    Why do different versions of the LabVIEW Run-Time Engine not compatible?
    " 一天到晚游泳的鱼"
    [email protected]
    我的个人网站:LabVIEW——北方客栈 http://www.labview365.com
    欢迎加入《LabVIEW编程思想》组——http://decibel.ni.com/content/groups/thinking-in-labview
    Solved!
    Go to Solution.

    jwdz wrote:
    LabVIEW2020 ....... ,it look like?
    You need to express your ideas more clearly. We cannot fill in the blanks and read between the lines if the post has no substance.
    jwdz wrote:
    It will affect the future development of LabVIEW, right?
    What is "it"?
    There are many things that affect the future development of LabVIEW, starting with NI management, all the smart people in LabVIEW development, the economy, the LabVIEW users, etc.
    If you are worried about the increasing size of the distribution, the good news is that the cost of data storage and data transmission has dropped much more dramatically. Even though newer versions are bigger due to great and welcome new features, the improvements in infrastructure have actually made the distribution and storage significantly easier over the years and will continue to do so. Trust me!
    Nobody wants to go back to a LabVIEW version that fits on a floppy disk!
    LabVIEW Champion . Do more with less code and in less time .

  • I am getting two different versions of the App Store in iOS 6.

    I am getting two different versions of the App Store in iOS 6.  One is the new one and sometimes when I open it it goes to the old one and says cannot connect to the App Store.

    I am having the same problem, but I think I might know what's causing it.  I just updated my girlfriend's iPhone 4S (same phone as mine) to iOS 6 and was surprised to find that her app store is working just fine.  When I opened hers, however, I did notice that the "Categories" and "Top 25" buttons are totally different; and those happen to be the two buttons that are not working for me.  Mine shows the same that yours does, while hers has the "Genius" and "Charts" buttons in the place of the two that are not functioning for me.  I believe these old buttons are no longer active and therefor are bombing out when attempting to access them.
    Now I said I think I may understand the problem, but unfortunately I have no idea what the solution may be.  Hopefully this tread doesn't fade away and our problem gets addressed.

  • The upgrade patch cannot be installed by the windows installer service because the program to be upgraded may be missing, or the upgrade patch may update a different version of the program

    trying to install an update patch for Citrix xendesktop 7.5 and the error when I click on the msi patch is "the upgrade patch cannot be installed by the windows installer service because the program to be upgraded may be missing, or the upgrade patch
    may update a different version of the program"
    The application was installed 2 days prior and works fine but the patch will not install.
    Any ideas?
    Wendy2014

    Yes let's see if there is any error occurs in installation log.
    Meanwhile from the error message, the possible cause is that a part of the application is missing such as a registry key with app version. In this situation you can first test to reinstall/repair the application though it is still working fine - see if issue
    persists after reinstall the app.
    Meanwhile you could also contact Citrix about this issue. It may be a common issue and Citrix may provide a quick fix for it. 
    If you have any feedback on our support, please send to [email protected]

  • One JNLP with different JARs depending on JRE version

    Hello everybody! I want to produce one JNLP file that, depending on the user's Java version, loads a particular JAR or not. As an example, Java Activation Framework is included with Java 6 (no download needed), but not with Java 5. This serves just as an example, as that particular library is very small. Still, a user with Java 5 needs to retrieve and load "activation.jar", but Java 6 users might be better of with their built-in version. I know that I can mark the whole JNLP for a particular version (<java>) and that I can make a resource depend on "osName" and "arch". Does anyone know whether such a JDK-dependent resource (or JAR) is possible with JNLP syntax?
    Alternatively, I can programmatically download the library, but loading it is cumbersome: I just want to use JavaMail (which needs the Activation Framework) right away, it seems to me that with a custom URLClassLoader I cannot access the library directly (as I need classpath-like access to the Activation Framework)... and I'm hesitant to hack into Reflection as mentioned here.
    I'll just provide activation.jar for all of my users, including Java 6 ones; but I'm curious what would be the best way to handle such a situation. I did search the web and the forums a lot, sorry if I missed something obvious.

    Sorry, you meant two <resources> in the same JNLP? I can't put "activation.jar" in the same JNLP than the rest of my application, because it's already signed by Sun, but I did try to have in "activation.jnlp" two <resources>, an empty one for version 1.6+ and the JAR in the second one for "1.5". Didn't work either, the JAR gets downloaded.
    Same thing for several <resources> in the main JNLP, one for "1.5" including the extension for activation.jar, the other for "1.6+" listing the same contents but without that extension. No matter how I try, I get the console message "JNLP JREDesc in Component ignored". (If I just include everything in one single resource for "1.5+", I don't get that error, so it's not a typo in the <j2se> tag ;-)
    Edited by: cato_minor on Mar 26, 2009 12:00 PM

  • How can i deploy two different versions of the same application on the same server??

    I have two different versions of an application. One is a released version. And another version under development. I need to port this version of the application to the same server. I'm using the same classes and packages(except for some new ones). Is it sufficient if i change the name of my ear(application name). Or should i change my code also.

    Hi
    You can repackage the new versions of ear,jar and war with different names. I hope that should work well.
    Cheers
    -pradeep

  • A different version of the problem loading raw images edited in LR 3.3 to CS4

    I have recently upgraded LR2 to LR3 (now up to 3.3). I have CS4 extended and ACR 5.7. Haven't printed for some months now because I have moved overseas (UK to Malaysia) until yesterday. The printing was a disaster because the colours printed are not as the finished print files. So I have been investigating (calibrated my monitor etc) and then I noticed any LR3 edited Nikon raw file when edited in CS4 carrying across the LR3 settings was so bad and very different to the LR3 version. The nice vibrant LR3 image was dull with inaccurate and toned down colours as though a piece of grey glass had been put in front of it.
    So I have read as many of the forum questions on the related issue and have not found an answer or more to the point a solution. I run a MacPro with the latest Snow Leopard OS but all of the fixes I have tried don't change the problem. Is it a compatability problem or an error by me due to some obscure setting or something else? Never had the problem with LR2 and the same Photoshop CS4 software.
    I also lost most of my LR2 edit setting for a good percdentage of the edited files when I upgarded to LR3. Don't know if this is related or another problem as now I have to redo all of the files that have lost their edited changes.
    I would appreciate any help in solving this/these issues.

    The question posted by me has not been answered and I am pulling my hair out trying to have my Lightroom/CS4 image processing work flow that has worked for nearly 2years back to normal.
    I might as well not have lightroom as opening a lightroom 3.3 edited image in CS4 removes all of the editing done in lightroom. This appears to be true since I upgraded to v 3.3. As one person who posted in another theme suggested I tried saving a Tiff of the lightroom changes which I did via Nik Efex (I do not know how to save a raw file as a Tiff in LR as I don't do it as part of my normal workflow) but it reverted to the totally unedited version of the raw file when it opened in CS4.
    Is there a problem with LR3.3 that Adobe are keeping quiet on. There was no warning when I picked uop the 'updated software' message when I opened LR a short while back. Now I am unable to use either as the processing route I use in LR is very fast compared to CS4 (in my view) and I do not have the time to completely change my work flow. I could revert back to LR3.2 but that may lose all of my editing and cause me no end of problems.
    As this is an Adobe forum I thought these problems would be discussed with a lot more answers.

  • How do you set up iTC for two Different versions of the same app?

    I have been reading the iTC Developer Guide searching for the answer to this question, but so far I have found nothing that would help.  I plan on having a Lite and a Pro version of my app, and I may also have an iPad version as well.
    I have seen some iPhone icons which differentiate these app by using a slightly different icon for the Lite and Pro versions, but how these are submitted to the app store is what I would like to know.  And, for the sake of clarity, they will be priced differently as well.
    Thanks!

    Have you read the app store guidelines yet?
    App Store Review Guidelines:
    http://developer.apple.com/appstore/resources/approval/guidelines.html
    Don't go on what you've seen in the store - for every example you spot, there are hundreds that didn't make it in.
    As well, Apple is tightening up on reviews, etc.
    Loads of discussion on this in the iOS Dev Forums, BTW

Maybe you are looking for

  • Self Assigned IP address, can't connect

    In a few instances, I will join a network, be shown as linked to the network. Then when I look at the network status page, it reads "you are connected to the internet, however the provider has a self-assigned IP address & you may not be able to link

  • Satellite A105 S2712 DVD Drive

    I am running xp home, sp3, have a matsu**bleep**a uj-841s dvd drive, driver 5.1.2535.0, I have tried everything I have found in forums to try to get this drive to burn dvd's on dvd-r disc's to no avail, i see that the sonic dla does not support this

  • [SOLVED] SWF files are not working in Firefox 5.0.1. When visiting websites with 'zoom' on photos Forefox asks how to handle rather than just going to zoom

    On previous versions of Firefox I was able to use the 'zoom' feature on photos at retail websites. This no longer works. (You can go to Territory Ahead as an example). Firefox asks what to do with the SWF file. There is no option to use Shockwave (I

  • Is Docking Station ruining the battery?

    Hi, My old laptop was a Lenovo something which was duplicated 1 for me and the same version for my parents.. I use to keep my AC out when 100% or my battery out when I'm at home.| While they were plugged in - overcharging 24/7.. After 2 years mine wa

  • Skipped Assignments in Oracle HRMS Payroll

    Hello everyone, I would like to know that can cause an assignment action to be skipped during a payroll run. That is because it happened with many assignments we have in a certain run and we don't know where to start finding out why. Per privacy and