Precompiled third party API usage

Hi,
I have a question related to the compile and run time behavior of the java objects.
I have written a class which is using third party API classes. The third party API is compiled using the older version (say JDK1.2) version of java. Now I compile my developed class with JDK 1.6.
When we compile a java file which is using the third party API classes, does the byte code hence generated contains the references of the API classes used or somehow it include the byte code of these classes in the newly compiled classes' bytecode? If the byte code of the API classes gets inserted into the newly generated class, does the third party class will also be compiled with the JDK1.6.
Actually I am trying to migrate my application from weblogic 8.1 to weblogic 10.0. The higher version of weblogic require the java files compiled using JDK 1.5 or higher versions. Since the third party APIs are compiled using the previous versions of JDK so I am getting a bit skeptical whether this will work or not. If at all, this will work (with the old API classes) than how?
Thanks in advance,
Amit Singhal

I would say to (at least attempt) to get new versions of the librarires.
In any case, the only byte code that shows up in a classfile is created from the code in that class definition (excpet for some references to static final variables, but that can be overlooked for now). Nothing from those "libraries" will be inserted into your newly compiled classes.
Now, as far as those libraries functioning under a new JVM (with such a large version disparity) is questionable. Technically they should, but I would neither count on this, nor expect them to be effecient even if they do function.

Similar Messages

  • Deploying a third party API in a J2EE application.

    Hi there
    I have a small J2EE applicaion made up of EJBs, servlets and JSPs
    packaged and deployed as an EAR file in WebLogic 6.1.
    I'd like to make use of a third-party API (that is packaged as a JAR
    file) from the servlet and EJB components within the application, but
    am a little confused as to where to place the JAR file.
    I've tried placing it in the WEB-INF/lib directory of the WAR file,
    the servlets found the library successfully but the EJB components
    threw ClassNotFoundExceptions.
    I've tried placing it in the EAR file at the same level as the WAR and
    EJB JAR file, ie:
    App.EAR
    /application.xml
    /EJB.JAR
    /WEB.WAR
    /LIB.JAR
    but then the servlets were unable to find it.
    Finally, I tried placing one copy in the WEB-INF\lib and one copy as
    described above in the EAR file, but still - the EJBs were unable to
    find the library.
    Unfortunately, the API needs to be configured on a per-application
    basis, so placing a reference to the JAR file in the CLASSPATH when
    starting WebLogic is not an option.
    Any one encountered or solved this kind of problem before ?
    Kind regards
    Eea

    Hi Eea,
    There are many articles in the Internet talking about
    packaging of j2ee compenents, for example:
    http://www.onjava.com/pub/a/onjava/2001/06/26/ejb.html
    And, you may try to put your 3rd party API into weblogic
    classpath in your startserver command file...
    Regards,
    Slava Imeshev
    "Eea" <[email protected]> wrote in message
    news:[email protected]..
    Hi there
    I have a small J2EE applicaion made up of EJBs, servlets and JSPs
    packaged and deployed as an EAR file in WebLogic 6.1.
    I'd like to make use of a third-party API (that is packaged as a JAR
    file) from the servlet and EJB components within the application, but
    am a little confused as to where to place the JAR file.
    I've tried placing it in the WEB-INF/lib directory of the WAR file,
    the servlets found the library successfully but the EJB components
    threw ClassNotFoundExceptions.
    I've tried placing it in the EAR file at the same level as the WAR and
    EJB JAR file, ie:
    App.EAR
    /application.xml
    /EJB.JAR
    /WEB.WAR
    /LIB.JAR
    but then the servlets were unable to find it.
    Finally, I tried placing one copy in the WEB-INF\lib and one copy as
    described above in the EAR file, but still - the EJBs were unable to
    find the library.
    Unfortunately, the API needs to be configured on a per-application
    basis, so placing a reference to the JAR file in the CLASSPATH when
    starting WebLogic is not an option.
    Any one encountered or solved this kind of problem before ?
    Kind regards
    Eea

  • Third Party APIs in Java Language which doesnot use JavaMail APIs

    Hi Pals,
    Is there any third party java mail APIs available which doesnot using Sun JavaMail APIs? The third party would have its own APIs which does not use javax.mail. I have to code in Java Platform so if the APIs are java based its nice and useful to me.....
    Thanks & Regards,
    Prakash

    ksp wrote:
    Hi,
    I am using Javamail APIs to send mails. Sometimes Mcafee blocks the mails and its not allowing javax.mail package. Thats why i would like to go for some other third pary which uses their own APIs......What makes you think a third party API would be less prone to interference by McAfee?
    Edited by: sabre150 on Jun 18, 2009 10:39 AM
    :-)

  • Third Party API with Tomcat and Axis

    I'm experimenting with creating web services in Java. I'm using tomcat and axis for this. I have successfully created and deployed some basic web services and now I want to create one using a 3rd party API. I follow the same exact procedure and when I deploy the service I check my list of deployed services through the axis page, but all my services have disappearred. Commenting out all 3rd party related methods does successfully deploy the service. Is there anything special/extra I have to do to get 3rd Party classes to function correctly in a web service?
    Thanks in advance

    what kind of third party API are using ?

  • Third party API within DC project

    Hi,
    We are using a JSF web project for online account management for CRM.
    We need to use a payment gateway API for which I have created a new external library DC project and a corresponding EAR.
    I am able to build the project successfully.
    It also recognizes the API classes however it fails at one particular call where the API internally calls a class from an embedding jar/package XMlLabel ?
    If I comment out that call it does not result in any exceptions.
    This API works just fine in a Java application.
    I came across this forum and it looks like a similar issue. But I am unable to figure out how to fix this in a DC project.
    Please let me know if anyone has any idea.
    Thanks,
    Veena.

    I was referring to this forum
    Unable to call third party API within Spring- Spring Forum

  • Design Approach For Integrating Third Party API's

    Our application requires a lot of third party API's to be integrated with the application.
    What would be a good design approach for the same
    Ritesh.

    I think maybe you should post a little bit more info: What kind of APIs? C++? java?

  • How to use third party APIs with Sun J2ME Toolkit

    I've installed Sun J2ME Toolkit 2.1. If I intend to use other third party APIs with my existing toolkit, how do I do that. I can manage to get the jar file of the associated API classes, but how to integrate the same with the toolkit. Thanks in advance to all who support.

    if I remember right, it is enough, if you put the .jar of the api in the lib/ directory of your project (<WTK>/apps/<yourProject>/lib/ )
    hth
    Kay

  • OATS OTM Third-Party API/Interface?

    Hello,
    I am an Oracle employee and an automation tools developer in a large testing group and we are investigating if OATS OTM has the internal/public interfaces that allow us to update/create test cases and/or update/create test results for test execution that are not wui/gui type applications. Essentially, testing outside of OATS OTM and the OATS integrated testing facilities. I have scoured the available documentation but there is no indication or it is not clear that any such third-party API/Interface exists to perform such tasks.
    We are VERY interested in using the OATS OTM as a central testing repository but nearly all of our testing do not include wui/gui application testing, mostly cli/custom/firmware/non-OS/cross-platform testing. We are interested in transitioning from our existing test repository software, which is not an Oracle product, and moving to OATS.
    Any help in this area would be greatly appreciated.
    Thank you in advance,
    Robert

    Hello everyone,
    I'm also looking for a API that is exposed from the OATS.
    Thanks,

  • Is it a third party API for creating table in J2ME?

    I am a newbie to J2ME and i would like to know that whther is there any third party API for creating table in J2ME beside using Canvas to draw the table? Please help...

    its not the "L shape" that holds it better rather the higher GAUSS rating on the older connector.
    Apple redesigned the NEW magsafe to be weaker AND of a diff. design with lower neodymium magnetic gauss rating for a reason
    people at coffee shops etc were getting their macbooks yanked to the ground when someone tripped over the cord.
    The new neodymium is a N35 gauss and the older Lshape was N40 or N45 gauss (too tight)
    I know what youre talking about, but Apple redesigned it that way for several good reasons, despite it "coming out easier" on the bed for which ,
    as Apple Inc. states, it is "not intended to be used" (nor in laps, couches...etc.)

  • *urgent* importing third party API

    hi,
    To import the third party *.jar we bought,
    I click on
    Project->Project Properties->library->add->new
    Then I give the APi a name in a the box
    Then I click on ... Classpath ->add ZIP/JAR and browse to choose the Jar file to be added to our project.
    but then when we expilictely import the
    package it is redded highlight
    import abc.*;
    this line is highlighted and the error message say
    Error reading directory D:\thirdparty\JAAdapter.jar bad entry
    did I do anything wrong...please help

    Hi,
    This sounds like your jar file might be corrupt.
    Try the following: rename the jar file to JAAdapter.zip and try opening it with a zip utility (e.g. WinZip). If the zip utility reports errors, the Jar file is corrupt.

  • Coldfusion with third party API's?

    We've just signed up to Constant Contact's Mailing list
    services, and not that they can provide an API to link their
    services to your own web application.
    I'm in the early stages of learning coldfusion, and plan to
    convert our site to Coldfusion in the near future.
    I vaguely what an API is meant to do, but can anyone give me
    some basic guidance as to whether using API's should be
    straightforward with Coldfusion (and therefore worth building into
    our web application from scratch) or is it a difficult/complex area
    worth avoiding until fully experienced with using
    Coldfusion?

    It depends on the application that is providing the API. As
    you are probably aware that CF is all java under the hood so if the
    "Contant Contact" is build in Java/Groovy, it can be easily
    utilized by CF. Othewise in CF8, you can call .Net assemblies. Web
    Services are always an option to access any third party
    applications. Essentially CF is very ready to integrate with most
    third party applications.

  • UCCX Third Party API monitoring Probe

    Anyone know of a third party UCCX probe that can be used to report back things like Call Abandonment Rate, Ring No Answer increases, basically any of the getStat variables, or Real Time Reporting variables, such that it reports back through API or something else to our monitoring software so I can configure alerts based on these values and thresholds we configure.
    I'm not expecting this product to be free, I'm just interested in what the options are out there.  To be clear I'm not looking for separate monitoring software, but more of a probe or something can be scalable across multiple clients networks.  If you know of someone who has built this, or know of a company selling this style of product, please let me know.
    Thanks,
    -Ron

    Hi,
    UCCX CTI SDK.
    Take a look at it at http://developer.cisco.com/
    It might seem a bit outdated, but if you want something more modern, object-oriented, some companies offer .NET and Java wrappers, too. Please send a private msg for more info.
    G.
    Sent from Cisco Technical Support iPad App

  • How to integrate third party API and DLL

    Dear sir/Madam
    How can i integrate the third party high level API and DLL into my DLL, project keeping in view that all their functions and their definitions kept hidden. i have tried it but when importing the functions in the DLL and export the high level functions, compiler demands their declarations and prototypes.
    Is their a way to hide all these high level functions and still utilize them.
    thanks, regards
    Zafar

    Hi Matrix39,
    The compiler will still need the proper prototypes for the functions called in the third party DLL to compile your DLL whether you are using explicit or implicit linking to call the functions.  Declaring these prototypes in your DLL does not mean they will be exported by your DLL.  The functions exported by your DLL can be configured by navigating to Build»Target Settings in CVI.  From here you can configure what functions your DLL exports by clicking the Change... button in the Export section.  There are several options for specifying the functions including using header files and manual export declarations.  See the CVI Help for more information.
    Justin D
    Applications Engineer
    National Instruments
    http://www.ni.com/support/

  • Redirecting stdout of third party API?

    Good Morning (or afternoon),
    I have an interesting problem with an application that I am writing.
    I am using my own classes, as well as a third party package that somebody developed, in this application.
    I have developed a GUI for ease of use and in this GUI I have a textarea component that shows all stdout messages.
    To achieve this I simply used System.setOut(PrintStream out) to redirect the output to my textarea. Now, all stdout messages display on my textarea. So far so good.
    The problem came when I used the third party package. The third party stdout still goes to the default (terminal).
    I have to use the third party package through it's main method so I am calling ThirdPartyPackage.main(thingToPass).
    Does anyone know why this occurs, or how I can get the third party classes to use the stdout that is currently in use by the calling class?
    I am very stuck and would really appreciate any help even theoretical.
    Thankyou in advance.

    I am doing exactly the same thing, here's the code that calls an external process and appends the output to a JTextArea:
    (txtOutput is the JTextArea I'm showing the output in)
              try
                   Process proc = Runtime.getRuntime().exec(progName);
                   InputStream procStdout = proc.getInputStream();
                   InputStream procStderr = proc.getErrorStream();
                   int exit = 0;
                   boolean processEnded = false;
                   while(!processEnded)
                        try
                             exit = proc.exitValue();
                             processEnded = true;
                        catch(IllegalThreadStateException e) {} // still running
                        int n = procStdout.available();
                        if(n > 0)
                             byte[] pbytes = new byte[n];
                             procStdout.read(pbytes);
                             //System.out.print(new String(pbytes));
                             //System.out.flush();
                             txtOutput.append(new String(pbytes));
                             txtOutput.setCaretPosition(txtOutput.getText().length());
                        n = procStderr.available();
                        if(n > 0)
                             byte[] pbytes = new byte[n];
                             procStderr.read(pbytes);
                             System.err.print(new String(pbytes));
                             System.err.flush();
                        try
                        Thread.sleep(10);
                        catch(InterruptedException e) {}
                   System.out.println();
                   System.out.println("Process exited with: " + exit);
              catch (java.io.IOException e)
                   System.out.println(e.toString());
              }

  • Using Third Party APIs with Tomcat and Axis

    I'm experimenting with creating web services in Java. I'm using tomcat and axis for this. I have successfully created and deployed some basic web services and now I want to create one using a 3rd party API. I follow the same exact procedure and when I deploy the service I check my list of deployed services through the axis page, but all my services have disappearred. Commenting out all 3rd party related methods does successfully deploy the service. Is there anything special/extra I have to do to get 3rd Party classes to function correctly in a web service?
    Thanks in advance

    If you're using Tomcat, JARs in the /common/lib directory are available to all applications deployed on that instance of Tomcat.
    I prefer putting them in the WEB-INF/lib of my web app, even if that means duplication. That way my app doesn't depend on having the server set up a certain way. I deploy them as a WAR file with everything they need enclosed within,no more and no less. They're completely portable to any servlet/J2EE engine that way.
    %

Maybe you are looking for

  • How to Create a jar war or ear--Probelms in deploying

    I have the following dir structure. I am using Struts 1.1 and weblogic 7.0 APP +jsp +WEB-INF + ---lib +--- classes +----com --ap --action --beans --handler --service --client --ejb --valueobject 1> Do I need to create a ear file since i want both the

  • My ipad2 can't use Adode Flash player. Is there a fix?

    I would like to know how to see adobe flash player items on my iPad2.

  • Get WSDL

    Hello, My question is: How I can get access to the WSDL from an external System (without copy and paste). The external system want to access all WSDL Definitions of every message defined (or imported) in XI.So we don't want to see all WSDLs from the

  • Problem of contentHeight with Latest Build 442

    Hi, I am having a problem to access contentHeight from controller. The syntax is below. private var _controller:ContainerController; var newHeight:Number = _controller.contentHeight; It throws an error now, I was previously using IContainerController

  • Missing 1000's of photos on iPhone 6+ w/ iCloud

    I just got the new iPhone 6+ (128 GB) & opted to use iCloud instead of iTunes for the back up. Maybe that was my first mistake.  Now, of the 3000+ photos that used to be on my old iPhone, only 194 miscellaneous pics from various years of 9000 photos