Create Stanadlone JARs with Third-party API

Hi,
I'm working on some personal explorations using OSB 11g, and for that I need to call some JARs with my code. But, the problem is that I'm using Apache POI API for reading MS Excel files. So, how do I go about exporting the POI API along with my code into a single JAR. It has to be one JAR, since to the best of my knowledge OSB doesn't support referencing of multiple JARs at one go.

See http://java.sun.com/developer/technicalArticles/java_warehouse/single_jar/

Similar Messages

  • Best way to make a jar with third party jars

    hi, i have a question.
    i have an application that uses different third party jars. For the moment i make my jar like this :
    a) i include all my third party jars (it is working)
    or is it better to
    b) include the jars in the jnlp file
    if b is better should i :
    b1) link to them to another jnlp file, like this :
    <extension name ....
    or
    b2) just put them as resources
    Another question :
    i sign my jar, but can't access the local file system. if i use solution a from above, do i have also to sign the jars that i include in my jar...
    for solution b i think i will have to sign all the jars... right ?
    Thx for your help

    hi, i have a question.
    i have an application that uses different third party
    jars. For the moment i make my jar like this :
    a) i include all my third party jars (it is working)
    or is it better to
    b) include the jars in the jnlp file
    this is best, leaving the third party jars alone.
    if b is better should i :
    b1) link to them to another jnlp file, like this :
    <extension name ....
    If you app needs all-permissions, it is best to do it this way, you can, for example, sign your jar, and then ask for all-permissions in the main jnlp file, then not ask for all-permissions in the extension jnlp file. Or you can ask for all-permission in the extension as well, if the third party jars are signed, and need all-permissions to run properly.
    or
    b2) just put them as resources
    if you don't need all-permissions anywhere, this is easiest.
    If you do need all-permissions everywhere, you could also do this, but you would need to sign the third party jars with the same certificate chain as you signed your jar.
    If the third party jars are allready signed by the third party, or if all-permissions are only needed in some of the jars, the b1 is beter.
    >
    Another question :
    i sign my jar, but can't access the local file
    system. if i use solution a from above, do i have
    also to sign the jars that i include in my jar...
    You need to add :
    <security> <all-permissions/> </security>
    to your jnlp file. In that case, all the jars listed as resources in that jnlp file need to be signed, and by the same certificate.
    for solution b i think i will have to sign all the
    jars... right ?
    yes
    Thx for your help/Andy

  • Create a JAR including third party JARS

    How can I export my project into a JAR file also including the third party JARs being used from my application (project)?
    I think Eclipse does not support this, does it?
    The problem is, that when I export my project into a JAR and then manually put the required JARs into the JAR using WinZip I do get such an Exception:
    java.lang.NoClassDefFoundError: oracle/ucp/jdbc/PoolDataSourceFactory
    In my project I have a class (Runner.java) with a main method which the user can invoke from command line. Furthermore I have a GUI also with a main method which internally invokes Runner.java. How can I start either of themain methods/classes both in the same JAR?
    Thank you.

    hi, i have a question.
    i have an application that uses different third party
    jars. For the moment i make my jar like this :
    a) i include all my third party jars (it is working)
    or is it better to
    b) include the jars in the jnlp file
    this is best, leaving the third party jars alone.
    if b is better should i :
    b1) link to them to another jnlp file, like this :
    <extension name ....
    If you app needs all-permissions, it is best to do it this way, you can, for example, sign your jar, and then ask for all-permissions in the main jnlp file, then not ask for all-permissions in the extension jnlp file. Or you can ask for all-permission in the extension as well, if the third party jars are signed, and need all-permissions to run properly.
    or
    b2) just put them as resources
    if you don't need all-permissions anywhere, this is easiest.
    If you do need all-permissions everywhere, you could also do this, but you would need to sign the third party jars with the same certificate chain as you signed your jar.
    If the third party jars are allready signed by the third party, or if all-permissions are only needed in some of the jars, the b1 is beter.
    >
    Another question :
    i sign my jar, but can't access the local file
    system. if i use solution a from above, do i have
    also to sign the jars that i include in my jar...
    You need to add :
    <security> <all-permissions/> </security>
    to your jnlp file. In that case, all the jars listed as resources in that jnlp file need to be signed, and by the same certificate.
    for solution b i think i will have to sign all the
    jars... right ?
    yes
    Thx for your help/Andy

  • 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.

  • 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 ?

  • 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

  • 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.
    %

  • 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.)

  • SerialVersionUID problem with third party class

    Hello,
    One of our projects is using java 6 (that won't change). We need to use some third party APIs which is developped using java 5, and I guess some wild rmi implementation.
    If I try to use this api from a java 5 project, no problem.
    If I try to use it from java 6, I got this exception.
    Is there something I could try (workaround, something I can tell the api provider to fix, ...)?
    "C:\Program Files\Java\jdk1.6.0_01\bin\javaw.exe" -client -classpath D:\dev\TestAde\Project1\classes;D:\dev\TestAde\Project1\lib\ADEAde.jar;D:\dev\TestAde\Project1\lib\ADEConfig.jar;D:\dev\TestAde\Project1\lib\ADEJDom.jar;D:\dev\TestAde\Project1\lib\ADEMisc.jar;D:\dev\TestAde\Project1\lib\ADEStubs.jar project1.Test
    Exception in thread "main" java.lang.RuntimeException: Unable to connect to the server : java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
    java.io.InvalidClassException: sun.rmi.server.UnicastRef; local class incompatible: stream classdesc serialVersionUID = -9213327104222131866, local class serialVersionUID = 8258372400816541186
    at com.adesoft.config.ServerLocation.getRemoteConfig(Unknown Source)
    at com.adesoft.config.ConfigManager.getRemote(Unknown Source)
    at com.adesoft.config.ConfigManager.getProperty(Unknown Source)
    at com.adesoft.login.WebSessions.<init>(Unknown Source)
    at com.adesoft.login.WebSessions.getInstance(Unknown Source)
    at com.adesoft.beans.SessionBean.setLogin(Unknown Source)
    at project1.Test.main(Test.java:14)
    Process exited with exit code 1.

    The serialVersionUID of sun.rmi.server.UnicastRef in 1.5 is -9213327104222131866L. Strangely it isn't defined in the source code, just left to be calculated at runtime.
    I recommend you first search all your JAR files on both client and server, apart from the Java rt.jar of course, for classes in java.rmi.* and sun.rmi.*. If you find any class in these packages, or indeed in sun.* or java.*, complain loudly to the supplier, and try deleting them.
    If you don't find any such thing, I would then report this as a bug to Sun and I would also post it to the RMI-USERS mailing list where you will probably get a very rapid response.

  • 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

  • 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.

  • Really Apple? OSX 10.8.5 disables built-in camera functionality with third party apps such as Skype and Gmail video chat. I do not have time machine on my 2013 MB Air. How can I get back to 10.8.4?

    Really Apple?
    With the release OSX 10.8.5 Apple has once again showed its true colors, and continued its efforts to create a closed Apple system, which eliminates third party vendors, unless, one can only assume... they pay.
    Included in this OSX update is the disabling of the built-in camera to work with third party applications such as Skype and Gmail video chat. No surprise the camera works just fine with Apple apps such as Facetime and Photobooth.
    The answer I got on my call to AppleCare to ask for assistance in reinstalling 10.8.4, so that I may Skype again, was we can not do that. You can not go back unless you have a time machine bkup.
    Can anyone help me get back to to 10.8.4 on my 2013 MB Air?
    I do not have a time machine bkup as this computer is not used to store important documents.
    Thank you.

    Read this post: 10.8.5 Broke Camera Usage For 3rd Party Apps Like Skype
    Another: isight not recognized in Skype after 10.8.5 upgrade
    Don't panic. Skype simply needs to update its app.

  • Integration of ChaRM with third party tools

    Hi all,
    We are in the process of building the solution for Change Request Management implementation integrated with third party tool. 
    As the normal process for ChaRM is to work with the Service Desk functionality (to raise a ticket, then support message, change request, change document etc...), but what we need is create the change request, and change document directly with ChaRM without using the Service Desk functionality. 
    Did anybody come across this situation?
    Please share your experience. 
    Thanks in advance.
    Balaji

    Hi Balaji,
    there is no problem, as I understand, you want to use ChaRM without Service Desk. OK, than you create directly a Change Request in CRMD_ORDER, the transaction type you have to select is SDCR (standard transaction type), you have to approve it and then you can create a change document, it is not necessary that you start with a Service Desk ticket like SLFN.
    You need configured TMS a SolMan Project with a Maintenance Cycle, thats it (but this is enough , don't forget the customizing).
    I hope I understood you correct
    Udo

  • How to integrate DRM with third party tool for loading metadata in SQL table

    Experts,
    I am new to DRM and I have a requirement in which we want to integrate DRM with third party tool(lets say SQL table) as target and load metadata from DRM (Parent node, name , alias etc) to SQL table (same column name)
    Is there any way we can integrate DRM to export the same to table directly instead to files. If yes what are the steps we have to follow.
    Is there anyway we can customize DRM to execute queries or run batch
    Can I have a basic example please.
    Thanks in advance,
    Regards,

    1. Use DRM Export to Table option, for that create an External Connection first for the Target Database and select the respective Tables to which you wish to Export the Hierarchy information.
    2. You can perform most of the DRM Actions via the DRM_BATCH_CLIENT.exe.
        Please refer to Using the Data Relationship Management Batch Client of DRM User guide.
    let me know if you have any issues.

  • SAP IDM  7.0 integration with third party system

    Hi Experts,
    I know SAP IDM  7.0 can integrate with third party systems and create user ids on most of the third party systems.
    But I need to know regarding If it is possible to integrate with following systems
    1) Microsoft Exchange 2007 (  I know till exchange 2003 SAP  IDM support )
    2)  Microsoft  Active directory 2008 ( I know till Actice directory 2003)
    3) EMC  Documentum 6.5
    4)  ARIS 7.1.0
    5)  BlackBoard, Release 9.0
    6) Oracle 10g  ( Is it possible to create users at oracle level ? or at what level ? )
    7)  Sun Solaris Sparc  ( Is it possible to create users at  OS level )
    If you have information how on this please share. I know that  provisioning framework will have templates for most of the target systems. I want to know if they are available for above systems on SAP IDM 7.0 or if not have we can connect to them?

    Hi Matthew
    Your expertise in SAP IDM is indeed a great help!!
    >Can't see why not, it's all done via SQL commands. I've done similar things with MSSQL
    You mean that there will be oracle 10g drivers/oledb connectors in SAP IDM and in through SQL commands like "create user alfredo identified by alfredos_secret; " we can create user  in oracle database ?. As you said this should be possible.  What about creating user( user management ) in oracle 10g application  like dba or scot  and assigning the privileges in oracle application?
    >might need to do via UNIX scripts, but it can be done
    You mean that Unix scripts will be defined in SAP IDM and SAP IDM will execute these scripts in the Sun Solaris Sparc ?. It should be possible as you said. By the way how we will be able connect to Sun Solaris sparc ?  Is it via  the option "file " under the "Repositories" with repositories wizard  and later executing the file from SAP IDM ?
    Thank you once again for your expert answers on third party systems.

Maybe you are looking for

  • Need help in sales order creation

    How to create a sales order ,invoice,credit memo step by step.

  • Final Cut Pro on a Mac Book Pro

    My daughter is going to buy a Mac Book Pro, 15", 2.4GHz, 2GB and 160GB hard drive. She intends to have the commercial Final Cut Pro downloaded onto it. I don't know anything about it but she says it is the very expensive software that is used commerc

  • How can i create this type of texture?

    Hey I'm trying to replicate/create the texture in this poster. It looks to me like a fresh paint brush strokes or some plywood. Any help would be great thanks (:

  • How to connect to multiple backend systems to IMS

    Hi, I want to connect multiple backend system to SRM IMS.How to connect multiple backend system. Thanks in advance Regards Nitin Amritkar

  • Changing the dbid of the physical standby database...

    hai... i am new to dataguard. can we change the dbid of the physical standby database? and if it is possible what would be the effect on primary database at the time of sending archive log files. why should we change the dbid of the logical standby d