About Third-party libraries..

Hello,
1) Is there any tutorial that shows how to use third-party jar files in our projects, step by step? I tried :
*Tools/Manage Libraries, then created new in "User" directory, Selected my jar files in class path then used Tools/Project Properties/Libraries/Add Library and selected the one that i added in previous step.
However when i type
import packagename.* it marks it as GRAY and does not do anything.. ?
2) If i add, does it encrypt and compress my third-party jar file in my Main jar file? Or do i need to make it read from external directory by my code?
If it does not ecrypt, how can i avoid people using the library that i used in my project when i give them my software?
Thanks..

hi GlenX
Could it be that your JAR file you refer to in (1) contains your "library JAR" as a JAR file?
It looks like using a "Library File Group" in a "JAR Deployment Profile" includes the "library JARs" as JAR file in the new JAR file created by the profile. It is possible to add the contents of "library JARs" using a "Dependency Analysis File Group" in a "JAR Deployment Profile".
see http://verveja.footsteps.be/~verveja/files/oracle/JarStuffThread615655-v0.01.zip
In JarStuffThread615655-v0.01.zip I have included two applications, "Thread615655MyToolApp" and "Thread615655MyClientApp" with in each one project (to avoid confusion about project dependencies).
The MyClient.jpr project has a "MyTool project library" configured, referring to "MyTool.jar".
So, you could try this scenario ...
(1) open Thread615655MyToolApp.jws in JDeveloper
(2) select "Deploy to JAR file" on MyToolDeploymentProfile.deploy
(3) open Thread615655MyClientApp.jws in JDeveloper
(4) select "Deploy to JAR file" on MyClientDeploymentProfile.deploy
(5) double-click the "MyClient\deploy\MyClient.jar", and see the "vSomeMyToolValue = some MyTool value" shown on the panel in the frame.
regards
Jan Vervecken

Similar Messages

  • Confusion about third-party-libraries in different versions in CE 71.

    Hi
    After some research on the use of different versions of third-party-libraries in SAP netweaver CE 7.1, I am actually quite confused and would be happy if someone could shed a light on that subject....
    1. Is there a way to tell netweaver CE 7.1 to use a library in my WEB-INFlib-folder by simple configuration?
    E.g. we would like to use a third-party-lib in a newer version than the one which is loaded by CE 7.1. Many application server provide a simple configuration option (e.g inside META-INFapplication.xml) where the web as can be forced to use the library inside WEB-INFlib for this application.
    2.Is the concept of "heavy loading" described in a blog by Georgi Danov(Using Hibernate in SAP NetWeaver Composition Environment) the answer to question 1.?
    Does it also work for other third-party-libraries than hibernate? Does it work at all?
    3. In the blog mentioned in question 2, Mr. Danov is talking about "shared libraries". Does this mean, that I have to forget everything about "bundled" and "standard" libraries explained in help.sap.com/CE, if I want to create a heavy loader?
    He is referencing another blog (Applications and shared libraries) which is two years old? Can I still apply the information there to CE?
    4. Are "Bundled libraries" applicable when using different versions of third-party-libraries in CE 7.1?
    In "Working with libraries" (http://help.sap.com/saphelp_nwce10/helpdata/en/44/f4e00e56ec0486e10000000a155369/frameset.htm) it says:
    "Bundled libraries: These provide resources only to a single enterprise application, and are packed inside the application's EAR file."
    =>As I want to provide the lib only to my enterprise application, I will probably have to create a bundled library, right? Does this also work if netweaver CE 7.1 uses a different version of the same library?
    5. Do I need Netweaver Developer Studio for creating "bundled" libraries?
    Or can I copy the binaries in the WEB-INFlib-folder of my application, deploy it and use it?
    6. Is configuration of application-j2ee-engine.xml the right place to reference a third-party-library in a specific version which exists in WEB-INF/lib-folder in my application even if it exists also in another version on netweaver?
    => In the document "Troubleshooting: Finding Missing Parent-Child Relations" it says: "To implement the chain of parent-child relations in the deployment descriptor of the component, use either application-j2ee-engine.xml (for applications) or provider.xml (for libraries and services)."
    => "Creating standard libraries" (http://help.sap.com/saphelp_nwce10/helpdata/en/44/f447a8d62b0484e10000000a155369/frameset.htm9 tells me, that I have to configure the file application-j2ee-engine.xml, too.
    => But in "Working with libraries" (http://help.sap.com/saphelp_nwce10/helpdata/en/44/f4e00e56ec0486e10000000a155369/frameset.htm) it says:
    "Standard libraries: These provide resources to all enterprise applications deployed on the server. They are packed in EAR files like the enterprise applications."
    => Does this mean, that I have to force Netweaver CE 7.1 to use a higher version of a certain third-party-library? Does this even work? Do all applications deployed on Netweaver 7.1 have to use this library in the higher version?
    It is really confusing to read through the documentation!!! Sorry for that avalanche of questions, but I really hope it will make the issue of using libraries (especially if they exist in different versions on the CE 7.1) a little clearer!
    Best regards
    Bettina

    Hi Bettina,
    I'll try to answer your questions:
    >
    > Hi
    >
    > After some research on the use of different versions of third-party-libraries in SAP netweaver CE 7.1, I am actually quite confused and would be happy if someone could shed a light on that subject....
    >
    > 1. Is there a way to tell netweaver CE 7.1 to use a library in my WEB-INFlib-folder by simple configuration?
    >
    > E.g. we would like to use a third-party-lib in a newer version than the one which is loaded by CE 7.1. Many application server provide a simple configuration option (e.g inside META-INFapplication.xml) where the web as can be forced to use the library inside WEB-INFlib for this application.
    >
    First of all, the appropriate docs are here: [http://help.sap.com/saphelp_nwce10/helpdata/en/44/f4e00e56ec0486e10000000a155369/frameset.htm|http://help.sap.com/saphelp_nwce10/helpdata/en/44/f4e00e56ec0486e10000000a155369/frameset.htm].
    Basically what you do is define a lib project in the studio and deploy it do the server. This may be less comfortable then just configuring manually, therefore it work better in larger environments because the server checks that libs are available in all running instances - which it could not do if you manipulate diretories manually  (an approach you should never attempt in any SAP envrionment)
    > 2.Is the concept of "heavy loading" described in a blog by Georgi Danov(Using Hibernate in SAP NetWeaver Composition Environment) the answer to question 1.?
    >
    > Does it also work for other third-party-libraries than hibernate? Does it work at all?
    >
    If Georgi describes it, I hope so, as he is one of our developers who knows best.
    > 3. In the blog mentioned in question 2, Mr. Danov is talking about "shared libraries". Does this mean, that I have to forget everything about "bundled" and "standard" libraries explained in help.sap.com/CE, if I want to create a heavy loader?
    >
    "shared" are all of theses libs, as otherwise they would be specific to an application.
    > He is referencing another blog (Applications and shared libraries) which is two years old? Can I still apply the information there to CE?
    >
    This was about anearly version of CE and even Georgi updated the blog this year to talk about slight differences. So yes, this still applies.
    > 4. Are "Bundled libraries" applicable when using different versions of third-party-libraries in CE 7.1?
    >
    > In "Working with libraries" (http://help.sap.com/saphelp_nwce10/helpdata/en/44/f4e00e56ec0486e10000000a155369/frameset.htm) it says:
    >
    > "Bundled libraries: These provide resources only to a single enterprise application, and are packed inside the application's EAR file."
    >
    > =>As I want to provide the lib only to my enterprise application, I will probably have to create a bundled library, right? Does this also work if netweaver CE 7.1 uses a different version of the same library?
    >
    That depends... Your application uses it's own classloader which means it should only use your libs in case there is another version available on the server. But if you're trying to deploy a lib that is used by a service of the server (int that case loaded by the server not your classloader!) I'm not so sure.
    > 5. Do I need Netweaver Developer Studio for creating "bundled" libraries?
    >
    > Or can I copy the binaries in the WEB-INFlib-folder of my application, deploy it and use it?
    >
    You need the Studio. No way around that. [Edit:] Sorry, misunderstood you here: I thought you want to copy something into the deployed directory on the server! - Of course, any deployment method would do it and though copying binaries seems to be valid. However,  I'm checking this currently with development in detail.
    > 6. Is configuration of application-j2ee-engine.xml the right place to reference a third-party-library in a specific version which exists in WEB-INF/lib-folder in my application even if it exists also in another version on netweaver?
    >
    > => In the document "Troubleshooting: Finding Missing Parent-Child Relations" it says: "To implement the chain of parent-child relations in the deployment descriptor of the component, use either application-j2ee-engine.xml (for applications) or provider.xml (for libraries and services)."
    >
    > => "Creating standard libraries" (http://help.sap.com/saphelp_nwce10/helpdata/en/44/f447a8d62b0484e10000000a155369/frameset.htm9 tells me, that I have to configure the file application-j2ee-engine.xml, too.
    >
    > => But in "Working with libraries" (http://help.sap.com/saphelp_nwce10/helpdata/en/44/f4e00e56ec0486e10000000a155369/frameset.htm) it says:
    >
    > "Standard libraries: These provide resources to all enterprise applications deployed on the server. They are packed in EAR files like the enterprise applications."
    >
    > => Does this mean, that I have to force Netweaver CE 7.1 to use a higher version of a certain third-party-library? Does this even work? Do all applications deployed on Netweaver 7.1 have to use this library in the higher version?
    >
    >
    >
    > It is really confusing to read through the documentation!!! Sorry for that avalanche of questions, but I really hope it will make the issue of using libraries (especially if they exist in different versions on the CE 7.1) a little clearer!
    >
    > Best regards
    > Bettina
    Could you tell me what you're trying to deploy? I'll try to get Georgi on this....
    Regards,
    Benny
    Edited by: Benny Schaich-Lebek on Nov 5, 2008 1:40 PM

  • Third-party libraries in a JSC team project

    We're using Sun Java Studio Creator 2 Update 1 (JSC) for the project I'm working on. This project uses a few third-party libraries (jar files). Up until 2 weeks ago I was the lone member of the project team and all was fine. Then we added another team member and encountered an issue with the 3rd-party jars. In particular, since I had setup the 3rd-party libraries using the "Library Manager" facility, I had no problems with building and deploying the app, but when my team member got the code from the version control system, he could not compile due to an error saying something like "library not found". I'm looking for a way to setup the 3rd-party libraries for our project such that those jars are found during compilation (and included in the WAR file) while at the same time new developers do not have to use the "Library Manager" to configure all the libraries on their JSC install. I tried adding the jars to the project's "lib" directory, but that did not work unless I explicitly listed them in the compile path (using "Project Properties") and this used a hard-coded path to the jars. I would rather not require that every project team member use the exact same disk path to our project so I do not like this approach either.
    Any suggestions?

    As a best-practice for creating projects for version control, the jar files should be added as jars and not in a library unless the library points to jars that are at a common location on the network. You can add a directory to your project from the "files" tab called something like "projectlibs". Then add the 3rd party jar files here. When you add the jar to the project, make sure you check the "package" column which tells Creator to package the jar with the deployment.
    Cheers!
    -David

  • Adding menu entry to "About Third Party Plug-Ins..."

    I am trying to find the language-independent identifier for the "About Third Party Plug-Ins..." menu in the Help menu but I can't seem to find it. Can someone help me find the identifier so that I can add my plug-in's about menu item entry to it? Here is the code that I am currently using, and I understand that I would need to modify it slightly to add it to the submenu:
    AVMenu HelpMenu = NULL;AVMenuItem AboutItem = NULL;
    AVMenubar TheMenubar = AVAppGetMenubar ();
    ExecProcPtr = ASCallbackCreateProto (AVExecuteProc, &ExecProc);
    CompEnabledProcPtr = ASCallbackCreateProto (AVComputeEnabledProc,
         &ComputeEnabledProc);
    CompMarkedProcPtr = ASCallbackCreateProto (AVComputeMarkedProc,
         &ComputeMarkedProc);
    HelpMenu = AVMenubarAcquireMenuByName (TheMenubar, "Help");
    if (HelpMenu) {
         AboutItem = AVMenuItemNew ("About S4i Express Annotate Plugin", "ABDE:S4IXPAPExpressAnnotate", NULL,
         false, NO_SHORTCUT, 0, NULL, gExtensionID);     if (AboutItem == NULL) {
         AVAlertNote ("Unable to create Express Menu Item, not loading.");
         return false;     }     AVMenuItemSetExecuteProc (AboutItem, ExecProcPtr, NULL);     AVMenuItemSetComputeEnabledProc (AboutItem,          CompEnabledProcPtr,NULL);
         AVMenuItemSetComputeMarkedProc (AboutItem,
              CompMarkedProcPtr,NULL);
         AVMenuAddMenuItem (HelpMenu, AboutItem, 1);     AVMenuRelease (HelpMenu);}
    Thank you for all your help!

    Use the Plugin Wizard to create it for you...
    However, I see a MAJOR PROBLEM with the code that you posted.
    You are using Adobe's developer extension ("ABDE:S4IXPAPExpressAnnotate") and NOT your own.  You need to register your own extension and use that for your plugin(s).

  • Third party libraries for hibernate(jar files)

    Hi I am new in hibernate.I follow some steps of hibernate tutorial from
    http://www.hibernate.org/hib_docs/v3/reference/en/html/tutorial.html
    In chapter-1 1.2.3. Hibernate configuration when i try
    java -classpath ../lib/hsqldb.jar org.hsqldb.Server
    database should be started but it,s not
    most probably reason is also include third party libraries
    I try all but still not getting success.
    In command prompt I get ::
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\shobhitsingh>cd\
    C:\>cd hibernatet*
    C:\hibernateTutorial>java -classpath ../lib/hsqldb.jar org.hsqldb.Server
    Exception in thread "main" java.lang.NoClassDefFoundError: org/hsqldb/Server
    C:\hibernateTutorial>pl guide
    Regards
    -S.Singh

    I'm sorry.I used classpath in wrong manner.I got where I'm wrong.
    Regards
    -S.Singh

  • No of classes, Methods, Lines of codes, DLL's used and Third Party Libraries details identifying tools

    We have started a project to migrate 100+ Web Applications developed using legacy Microsoft technologies to latest .Net 4.5 Framework.
    The following are the planned migration approach
    Classic Asp à                                                   
    Asp.Net 1.1 Framework à Asp.Net 4.5 Framework
    Asp.Net 2.0, 3.5, 4.0 Framework à         Asp.Net 4.5 Framework (Direct Migration)
    Asp.Net 2.0, 3.5, 4.0 Framework à         Asp.Net 4.5 Framework (Application Rewrite
    using MVC/Entity Framework)
    VB 6 (COM/DCOM) à                                  
    C# .Net 4.5 (Web Services)
    We have to analyze 100+ applications to categorize them as Simple/Medium/Complex conversions for planning the timeline for completing the migration activities.
    Analysis includes identifying the following details - No of classes, Methods, Lines of codes, DLL’s used and Third Party Libraries  details
    for 100+ Microsoft applications.
    Could you please let me know do we have any effective tool to identify above mentioned details?

    This forum is for Microsoft Project Server, an EPM tool. You will need to find a more suitable forum for your question.
    Good Luck with the conversion!
    Rod Gill
    Author of the one and only Project VBA Book
    www.project-systems.co.nz

  • Login module access to third-party libraries?

    G'day,
    I have a simple login module that is currently deployed in Netweaver 2004s. It is callable by both Netweaver AS and Netweaver Portal, and was implemented using Netweaver Developer Studio.
    I would like to have this login module use third-party libraries, but I am not sure of the best approach to take here.
    Do I just drop the third-party libraries into the jre/lib/endorsed directory of the JDK, or is there a better way of putting the third-party libraries onto the classpath?
    When I edit the server/provider.xml file of the login module library in Developer Studio, it only allows me to make references to jar files that currently exist in the workspace. So adding references to external jar files does not seem to be supported here.
    Is there a proper place to drop third-party jar files, so that they can be used by my login module?
    --Geoff

    Hi,
       There are different ways. as you said You can either drop it in jre/lib folder or a clsspath setting will do.
    But some times the server will not be able to catch up those libs so You can set the path to these libs in config tool. This will ensure the server will take these libs for sure.
    If you have set the classpath NWDS will take this reference

  • Using third party libraries

    Hi,
    I have an oc4j application which refers to certain third party libraries ( jar files).
    Which xml files should I be making an entry in, for the application to refer to these jar files?
    Regards,
    Rishikesh R.

    The <library-directory> element of the application.xml file specifies either a relative or absolute path or URL to a directory or a JAR or ZIP archive to add as a library path for this OC4J instance. Directories are scanned for archives to include at OC4J startup.
    -Frances

  • Doubt about third party process

    Hello SD Consultants.
    Recently i joined in a company...so here we implement third party process.. My colleague has implemented third party process.
    here he has done...va01...me21n...migo...miro and vfo1......but when i take coaching they dint say about migo in third party...so
    friends please help me..what is the relevance of migo here...we are not receiving any goods from  vendor...so whats the use...
    Thanking you

    Dear K. Ram
    MIGO - goods recipt, MIRO - invoice verification.
    Third party process sales order > PR > P.O  > MIRO > Invoice (delivery done by vendor to customer)
    Individual purchase order (IPO)   sales order > PR > P.O  > MIGO >  MIRO > Invoice (delivery done by vendor to company n then to customer).
    You are right concept wise. Ask ur friend or team leader and try to have a discussion on business process.
    Also check the Item category group  is BANS (Material master), Item category  TAS (Sales order)  for third party .
    If it is showing BANC, TAB. It is IPO as mentioned above and u have been disguised with business process explanation from your friend/ seniors or they din't understand the process.
    You can discuss n debate , also raise a point of reducing the master data by eliminating migo transaction in third party.
    This is what been taught to us too.
    Regards
    Pavan Kumar

  • Discussions about third party tools

    Do we have any forum where queries related to third party tools for SAP like SecurInfo can be put up ??

    Hi,
    What about the Software Integration and Certification forum?
    Eddy

  • Integrate third party libraries with JBuilder 2005

    Hi,
    Does any body know how to integrate any third party APIs with JBuilder 2005. It would be of great help if anybody of you could jot down the steps to integrate third party APIs with JBuilder.I've got to use the JDIC API(https://jdic.dev.java.net) and the PDFBox APIs(www.pdfbox.org) with in JBuilder.
    Thanks & Regards,
    DT

    Yep got it. Shoud have refered the docs before asking this question. I used the following menu item to add a third party .jar file
    Project->Project Properties: select the Paths option and add the required jar file by selecting the "Required Libraries" tab.
    Regards,
    DT

  • Using old third party libraries

    I am trying to compile several programs and the programs need to use old libraries that I cannot re-compile because they belong to a third party vendor. Is there any way to get symbols resolved using older libraries that were probably built using Sun's 4.0 compiler ?

    For full details, read the C++ MIgration Guide that comes with the compiler, and which is also available at docs.sun.com.
    If the libraries were built using Sun C++ 4.2, you can build new code using the -compat=4 option and it will be binary compatible with the libraries. You will be restricted to ARM (1990) style C++, and will not be able to use modern C++ features in your new code.
    If the libraries were built using Sun C++ 4.0 or 4.1, you might have some compatibility problems.
    You should get the vendor to re-build the libraries using a recent Sun C++ compiler, or find replacements for the libraries. You can't rely on old-style C++ forever.

  • About third party order

    I would like to know the process of those third party order.
    1. Create SO with item cat is thrid party
    2. assign PR to PO
    3. MIGO   <------ I don't know whether need good received or not
    4. PGI
    5. Billing.
    Above steps is correct or not. Thanks!

    Hi,
    If the material is directly sent to customer,the following steps to performed.
    Order Related Billing.
    1.Create Sales Order (Purchase Req.automatically generated after saving the sales order.
    2.Release the PR for creation of Purchase Order.
    3.Purchase Order is sent to Vendor.
    4.MIGO or MIRO done as per requirement.
      (If MIGO is there then it's Stastical)
    5.Create Billing Document.
    Thanks & Regards,
    Hemant Patil

  • Questtion about Third party returns process

    Hi All,
    We have an issue in returns PO process -Third party
    Customer Forward Processp flow as below
    OR (US Sales Order) -> US Purchase Requisition (NB) -> US Purchase Order (NB) -> MIGO (Mvt 101) -> MIRO (Vendor Invoice) -> F2 (Customer Invoice)
    Customer Return Process:as below
    ZREP (with US customer) -> US Purchase Requisition (NB) -> US Purchase Order Return (NB) -> MIGO (Mvt 161) -> MIRO (Vendor Credit Memo) -> ZRE (Customer Credit Memo)
    When the user raises Return purchase order , it is taking the price from Inforecord for current validity date.
    But ,Our user wants , it should select the same price from the initial purchase order( as in forward process) even though the price changed in Inforecord for the current validity date when the Return purchase order raises .
    Please advise how to achevie this reqmt. Any user exits available.
    Regards,
    Amara.

    Hi Amar
    Can you you share the solution you achieved , which will be the usefull to other members
    of the forum also. Bcoz as fas as  I am concerned SAP doesn't suppot the return process
    in third party sales. Did you use any user exits?
    Thanks
    Sushant

  • About third party process

    hi friends,
    in third party order processing what is the need of creating purchase requisition, cant we create purchase order with out refrence to puchase requisition?
    Thanks and regards
    sudhakar

    hi
    Yes, wat you said is correct we can create PO with Reference to PR.
    In some situation we need to show this information to the auditing people ( Internal Process ) for that they need to show the reference doct, beacause of this order only we are created PO..
    And also one more scenario
    One customer is palcing material for 100 item but we have only 80 in that case we need to deliver the good the customer from our third party vendor in this sitution also we need some refrence document which is linked to Our Order..
    Because we need to create PR
    Ihope it is clear, Rewards if it is Usefule
    Regards
    Durga Prasad
    Third Party Process
    Customize the third party sales in summary:
    1. Create Vendor XK01
    2. Create Material – Material Type as "Trading Goods". Item category group as "BANS".
    3. Assign Item Category TAS to Order type that you are going to use.
    4. A sale order is created and when saved a PR is generated at the background
    5. With reference to SO a PO is created (ME21N). The company raises PO to the vendor.
    6. Vendor delivers the goods and raises bill to company. MM receives the invoice MIRO
    7. Goods receipt MIGO
    8. Goods issue
    9. The item cat TAS or Schedule line cat CS is not relevant for delivery which is evident from the config and, therefore, there is no delivery process attached in the whole process of Third party sales.
    10. Billing
    SD - 3rd party sales order Create Sales Order
    VA01
    Order Type
    Sales org, distr chnl, div
    Enter
    Sold to
    PO #
    Material
    Quantity
    Enter
    Save
    SD - 3rd party sales order View the PR that is created with a third party sales order
    VA01
    Order Number
    Goto Item Overview
    Item ->Schedule Item
    SD - 3rd party sales order View the PR that is created
    ME52N
    Key in the PR number
    Save
    SD - 3rd party sales order Assign the PR to the vendor and create PO
    ME57
    Key in the PR number
    Toggle the "Assigned Purchase Requisition"
    Execute
    Check the box next to the material
    Assign Automatically button
    Click on "Assignments" button
    Click on "Process assignment"
    The "Process Assignment Create PO" box , enter
    Drag the PR and drop in the shopping basket
    Save
    SD - 3rd party sales order Receive Goods
    MIGO_GR
    PO Number
    DN Number
    Batch tab , click on classification
    Serial Numbers tab
    Date of Production
    Flag Item OK
    Check, just in case
    Post
    Save
    SD - 3rd party sales order Create Invoice
    MIRO
    Invoice Date
    Look for the PO , state the vendor and the Material
    Check the box
    Clilck on "Copy"
    Purchase Order Number (bottom half of the screen)
    Amount
    State the baseline date
    Simulate & Post
    Invoice Number
    *Invoice blocked due to date variance
    SD - 3rd party sales order Create a delivery order
    VL01N
    In the order screen , go to the menu Sales Document , select "Deliver"
    Go to "picking" tab
    State the qty and save
    SD - 3rd party sales order Create a billing document
    VF01
    Ensure that the delivery document is correct in the
    Enter
    Go to edit -> Log
    Save

Maybe you are looking for