How to use external libraries jar files in the composite application?

Hi,
I have some external jars files (which consists of java classes) that I would like to use in my composite application. 
I have created a DC with type as external library for the jars.  However, I don't know how to specify the DC to be used in my caf application.
Can anyone help?
Thanks.
Regards,
Fui Voon

Hi,
My jar files consists only java classes and a manifest.mf. The files are compiled using jdk 1.4.2-b28.  Will this be any issue?
It seems that if I ignore the error and continue step 7 which is to do deployment of the ear, the error given is
Cannot update it.
Caused by: com.sap.engine.library.bytecode.cf.CFException: Invalid constant pool tag, 60 at index 41.
Does anyone know what that mean?
Is there any sample that teach how to deploy external libraries as bundled library?
Thanks.
Regards,
Fui Voon

Similar Messages

  • How to use javap with jar files ?

    how to use javap with jar files ?
    thanks

    As long as the jar is on the class path, your gold. So,
    javap -classpath myjar.jar mypackage.MyClass
    Chuck

  • How to use external libraries in EP

    Hi!
    I am with dificulties in utilizing an external ".jar" file in a Portal application (JSPDynPage). The ".jar" file is the JSTL 1.0 version. It compiles and is exported correctly (SNDS to Portal), but give me an error at runtime (NullPointerException). There is any restrictions in utilizing external ".jar"s files, e.g., not especific/proprietary versions?
    Regards,
    Alex

    hi,
    You can place the external .jar files under dist/PORTAL-INF/lib . By placing the external jars it would certainly run
    The other way  is as follows
    1. Go to navigation perspective
    2. Get into the project\lib folder of the your project. copy the jar files into it
    4. Right click on the project
    5. Click on properties
    6. Click on java build path
    7. Go to libraries tab
    8. click on Add Jars button
    9. Select the jar in your project
    11. Recompile
    12. Deploy
    Hope it helps..
    regards,
    Ganesh.N
    Message was edited by: ganesh natarajan

  • Applet : How to use Images in Jar file

    I want to put all images into a jar file to improve speed of loading.
    But how to invoke images from Jar file?
    Thanks.

    @Op. It's very important for a developer to know how to find information, and that skill usually comes with experience. Google is one of the best ways to find information and solutions to the most common problems.
    Kaj

  • How to use 3rd party jar files for xml transform

    Hi all,
    Am using OAS9.0.4 and I deployed my .ear successfully.
    In my application am using 4 jar files for xml transformation. (xerces.jar, xalan.jar, xml-apis.jar,xercesImpl.jar)
    OAS has its own xmlparserv2.jar file. Its using this jar file for transforming xml data and not even looking for above mentioned 4 jar files.
    In opmn.xml, I provided these 4 jar files in to class path. Then also it didn't effect my output.
    I also tried as put these 4 jar files into j2ee\home\applib directory, but o result.
    Can anybody tell me where should I keep these 4 jar files in OAS and OAS should use these 4 jar files instead of its own xmlparserv2.jar for transforming data.
    Thanks in Anticipation,
    Regards,
    RK

    Add the Xbootclasspath variable in the java-options field. It will somewhat look like the following in your opmn.xml file
    <process-type id="<OC4J Instance Name>" module-id="OC4J">
    <module-data>
    <category id="start-parameters">
    <data id="java-options value="........... -Xbootclasspath^/a:<location of your jar files>" />
    Ensure to use th ^/a (append) signature
    Regards,
    Chirag

  • How do I add a jar file into the build path of the compiler?

    Hey,
    I'm trying to import a jar file into the build path of the compilation process, but it does not find the packages or the classes that are in it.
    I think I don't add it right...
              ArrayList<String> options=new ArrayList<String>();
              options.add("-d");
              options.add(targetDirectory);
              options.add("-classpath");
              for(String str:includeDirectory)
                   options.add(str);
              if (!compiler.getTask(writer, fileManager, diagnostics, options, classes, compilationUnits).call());
                    ....and I've tried this way:
         public void setTargetDirectory(String targetDirectory) {
              this.targetDirectory = "-d " + targetDirectory;
         private void compile(Iterable<? extends JavaFileObject> compilationUnits) throws Exception {
              ArrayList<String> options = new ArrayList<String>();
              options.add(targetDirectory);
              String classPath="-cp ";// tried this also with "-classpath"
              for (String str : includeDirectory)
                   classPath+=str+":";
              options.add(classPath);
         if (!compiler.getTask(writer, fileManager, diagnostics, options, classes, compilationUnits).call())
              // throw new Exception("Compilation Error");
         }Thanks in advance,
    Adam.
    Edited by: Adam-Z. on Feb 24, 2010 5:41 AM
    Edited by: Adam-Z. on Feb 24, 2010 5:42 AM

    Thank you for your reply,
    Q: Are there .class files in that directory in that jar file? (the compiler doesn't ( can't )) look for directories, it can just look for specific files , and scan to get a list of all files matching certain criteria. So if there are no class files, it will say the package doesn't exist, even if there is a directory, possibly containing other files.yes there are class files in the jar, the tree structure:
    j2MeDataChunkGenerator_Plugin\(lots of class files)
    META-INF\manifest.mf
    and thats it.
    , your code will only work on windows because other platforms use a different path separator. You should use java.io.File.pathSeparator not explicit ';" when building your classpath. (this is unrelated to your problem, but you should correct it)will do, thanks.
    Q: Is that error in your post formatted by your own diagnostics? (we could possibly help you better if we didn't have to guess!!)I would not post my own error code, this text is generated by the compiler diagnostic.
    {code}
         System.err.println(" Error details: " + diagnostic.getMessage(null));
    {code}
    Q: Is line 3 of ImageCroper_Editor.java (sic) an import statement? (we could possibly help you better if we didn't have to guess!!)it is an import error... didn't the error message stated that it is an import problem? wired, I'm sure before it did. anyway it is an import error.
    Also you don't show us what the variable includeDirectory is in terms of type, and contents, that might be helpful. (we could possibly help you better if we didn't have to guess!!)It has only one String object: "D:\%Important Documents\WorkSpaces\PacMan\ApplicationManager\Plug-in\Data Chunk Designer.jar"
    the last file on the classpath list.
    Q: Have you proven this? that i did post, in this long line of text.
    Q: Is the compiler finding other classes (in other packages) in that same jar file?No. all the class files are in the jar, they all have entries that start with "j2MeDataChunkGenerator_Plugin\*.class", and since I get 47 errors I guess it does not load any other class.
    thank you for you comments, the problem with having these errors, is that I can't even get a piece of information where this error is coming from, only that it is an import loading error package not found, what does that mean? that the jar was not loaded in compilation(no error about this), that the jar is corrupted(no error about this), that the path is incorrect(it is correct I made sure), that there is no such package in the jar(There is), that the compiler does not load the package(does it even do that?), really I can't even guess why this happens, I've been at this on and of all day today, really annoying.
    Thanks,
    Adam.

  • How to use external libraries and JAR files with OpenScript

    Hello.
    I am trying to include ApachePOI, JODATime, and Javamail in my scripts to handle different aspects of our automated performance tests.
    I followed the documentation for Eclipse to be allowed to utilize these external libraries, however, when I attempt to run my tests the classes and methods that are being imported, show up with errors saying that they do not exist.
    I think perhaps that I am using them incorrectly. I cannot see them as script assets, package assets, or project assets using the properties for these items. An error pops up and says those screens are not displaying correctly or display incorrect information.
    If anyone can provide guidance on using these items, that would be great. Right now I'm trying to include them as "previously exported scripts" but I'm not sure that method will work.
    Any advice is appreciated.
    Thanks.
    --tiff                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi Tiff
    For OpenScript 9.* there is an out of the box solution for that, all you need to do in OpenScript go to:
    Script -> Script Properties -> Script Assets -> Add -> jar File ....
    And that is it.
    Alex

  • WDP classics: how to use external libraries in DCs

    Hi,
    I am also on 7.0 SP 13.
    I used method in the following blog & its working for me:
    /people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro
    Regards,
    Apurva

    Hi, I checked again to no use. I'm on NWDS 7.0.09
    I had to do it the hard way, procedure follows.
    Create external library as per blog.
    Create two public parts (API and SDA).
    build
    Create J2EE library as per blog.
    Add to used DCs both external lib's API_pp and SDA_pp: buildtime and runtime dependency - strong
    build
    ignore warnings such as: runtime dependency ignored
    the .sda does not have any .jar inside
    open the .sda in the file system path or directly from NWDS
    add your .jar to the server directory inside the .sda
    in server/provider.xml replace the line:
    </jars>
    with
    <jars>
    <jar-name>it.sap.mycustomer.myproject.jar</jar-name>
    </jars>
    do not build or you will lose your little tricky .sda editing
    deploy from NWDS as usual
    set WDP DC dependency as per blog (used DC + WDP references settings)
    Hope this save some time to others...
    If some one know how to do this without manual editing please let me know
    Best regards
    Vincenzo

  • How to use a packaged Jar File?

    Greetings to everyone reading this post!
    I have a query about a thing that seems to be basic but I don't know how to accomplish, here it goes:
    I have packaged a Simple application into a Jar file. this application contains a package like this:
    lib.demo, inside this package I have a Class named MyClass with some simple methods like this one:
    public void sayHi(String name){
    //implementation here
    }Now, I would like to Know how to use the Method sayHI(String name) from an entirely different Project. I have successfully included the Jar File as a Library(in the new Project), but I have I no Clue on How to invoke a Class inside my Jar library, and more Importantly, a method.
    Could anybody help me?

    if the "project" (not a Java-related system, it's IDE-specific) already includes the JAR file in its classpath (library), then all you need is to import the package/class and invoke the method, as such:
    // in your client code:
    import lib.demo.*;         // or, import lib.demo.MyClass;
    public class Test {
      public void inAMethod() {
        MyClass myC = new MyClass();
        myC.sayHi("say hi"); 
    }simple.

  • Plz suggest me How to use Third party jar files in ODI

    Hi all,
    I need to know how to use the third party jar files or our own customised jar file in ODI.
    regards
    palash

    Hi all,
    I am unable to implement..................
    I have one question, if I add any type 4 coneection supported jar file in my ODI_CLASSPATH can I use them in writing procedure to connect Databases
    I am trying to connect Oracle database by putting Ojdbc14.jar in the class path of ODI_CLASSPATH so that in my procedure I can use it .............but failed I dont know how to solve this problem.
    another thing Open Tools are delivered as a Java package (.zip or .jar) containing several files:
    A compiled Java .class file
    Other resources, such as icon files is it so ..............Then I can use full java apllication by preparing required bunch of classes and by set them appropriately in open tool
    need ur suggestion....
    regards
    palash

  • How to use packages and jar files for applet?

    Hi!
    My applet takes a class say a.class.
    Now this class depends on other classes that are packaged
    in a directory and put separately.
    I want to put this applet on the web.
    So how do I manage the .class files in he package.
    I have tried using jar file format.But I was not able to get it working.
    Can someone please help me?
    Thanks

    Use Archive instead of codebase:
    <APPLET CODE="MyApplet.class" ARCHIVE="MyApplet.jar" WIDTH=400 HEIGHT=300></APPLET>

  • How to use External DVM Lookup files in BPEL

    Hi,,
    I am using DVM in transformation.
    I want to keep DVM files outside the project directory and use it in my transformation.
    like
    <xsl:value-of select='dvm:lookupValue("file:/C:/dvm/CheckLOV.dvm","CSID",/client:process/client:input,"CSName","1")'/>
    I want to keep DVM file outside project so that I don't need to redeploy whenever there is changes in DVM file.
    But i am getting run time error.
    <bpelFault>
    <faultType>0</faultType>
    <subLanguageExecutionFault>
    <part name="summary">
    <summary>An error occurs while processing the XPath expression; the expression is ora:doXSLTransformForDoc("xsl/Transformation_1.xsl", $inputVariable.payload).</summary>
    </part>
    <part name="detail">
    <detail>XPath expression failed to execute. An error occurs while processing the XPath expression; the expression is ora:doXSLTransformForDoc("xsl/Transformation_1.xsl", $inputVariable.payload). The XPath expression failed to execute; the reason was: javax.xml.transform.TransformerException: oramds:/deployed-composites/AbhiPartition/TestLov_rev1.0/xsl/Transformation_1.xsl<Line 6, Column 171>: XML-22044: (Error) Extension function error: Error invoking 'lookupValue':'oracle.tip.dvm.exception.DVMValidationException: Unable to locate DVM "file:/C:/dvm/CheckLOV.dvm" The Exception is "MDS-01160: Expecting absolute document reference. Reference ":/dvm/CheckLOV.dvm" is a relative reference to the document." Please ensure the DVM exists at the location specified.'. Check the detailed root cause described in the exception message text and verify that the XPath query is correct. </detail>
    </part>
    <part name="code">
    <code>XPath expression failed to execute</code>
    </part>
    </subLanguageExecutionFault>
    </bpelFault>
    Can someone solve this issue.
    Thanks.....

    Hi Yatan,
    I tried using "file:///dvm/CheckLOV.dvm"
    <xsl:value-of select='dvm:lookupValue("file:///dvm/CheckLOV.dvm","CSID",/client:process/client:input,"CSName","1")'/>
    In this case i am getting these errors--
    <bpelFault>
    <faultType>0</faultType>
    <subLanguageExecutionFault>
    <part name="summary">
    <summary>An error occurs while processing the XPath expression; the expression is ora:doXSLTransformForDoc("xsl/Transformation_1.xsl", $inputVariable.payload).</summary>
    </part>
    <part name="detail">
    <detail>XPath expression failed to execute. An error occurs while processing the XPath expression; the expression is ora:doXSLTransformForDoc("xsl/Transformation_1.xsl", $inputVariable.payload). The XPath expression failed to execute; the reason was: javax.xml.transform.TransformerException: oramds:/deployed-composites/AbhiPartition/TestLov_rev1.0/xsl/Transformation_1.xsl<Line 6, Column 170>: XML-22044: (Error) Extension function error: Error invoking 'lookupValue':'oracle.tip.dvm.exception.DVMValidationException: Unable to locate DVM "file:/dvm/CheckLOV.dvm" The Exception is "MDS-01160: Expecting absolute document reference. Reference "vm/CheckLOV.dvm" is a relative reference to the document." Please ensure the DVM exists at the location specified.'. Check the detailed root cause described in the exception message text and verify that the XPath query is correct. </detail>
    </part>
    <part name="code">
    <code>XPath expression failed to execute</code>
    </part>
    </subLanguageExecutionFault>
    </bpelFault>
    I got one doubt while using file:///dvm/CheckLOV.dvm".
    How server will know that we are refering to C drive...
    Because there can be many othe drives also.
    In which drive it will try to locate "CheckLOV.dvm" file,since it is not present with Project directories.
    Abhishek

  • How to use external table - creating NFS mount -the details involved

    Hi,
    We are using Oracle 10.2.0.3 on Solaris 10. I want to use external tables to load huge csv data into the database. This concept was tested and also found to be working fine. But my doubt that : since ours is a J2EE application, the csv files have to come from the front end- from the app server. So in this case how to move them to the db server?
    For my testing I just used putty to transfer the file to db server, than ran the dos2unix command to strip off the control character at the end of file. but since this is to be done from the app server, putty can not be used. In this case how can this be done? Are there any risks or security issues involved in this process?
    Regards

    orausern wrote:
    For my testing I just used putty to transfer the file to db server, than ran the dos2unix command to strip off the control character at the end of file. but since this is to be done from the app server, putty can not be used. In this case how can this be done? Are there any risks or security issues involved in this process? Not sure why "putty" cannot be used. This s/w uses the standard telnet and ssh protocols. Why would it not work?
    As for getting the files from the app server to the db server. There are a number of options.
    You can look at it from an o/s replication level. The command rdist is common on most (if not all) Unix/Linux flavours and used for remote distribution and sync'ing of files and directories. It also supports scp as the underlying protocol (instead of the older rcp protocol).
    You can use file sharing - the typical Unix approach would be to use NFS. Samba is also an option if NTLM (Windows) is already used in the organisation and you want to hook this into your existing security infrastructure (e.g. using Microsoft's Active Directory).
    You can use a cluster file system - a file system that resides on shared storage and can be used by by both app and db servers as a mounted/cooked file system. Cluster file systems like ACFS, OCFS2 and GFS exist for Linux.
    You can go for a pull method - where the db server on client instruction (that provides the file details), connects to the app server (using scp/sftp/ftp), copy that file from the app server, and then proceed to load it. You can even add a compression feature to this - so that the db server copies a zipped file from the app server and then unzip it for loading.
    Security issues. Well, if the internals is not exposed then security will not be a problem. For example, defining a trusted connection between app server ad db server - so the client instruction does not have to contain any authentication data. Letting the client instruction only specify the filename and have the internal code use a standard and fixed directory structure. That way the client cannot instruct something like +/etc/shadow+ be copied from the app server and loaded into the db sever as a data file. Etc.

  • Use external libraries in web dynpro java

    Dear Experts,
    I need to add an external library to my project.
    Anyway, I do not know how to do it because it gives me many problems.
    I tried modifying the classpath and placing it in the lib folder of the project from "Navigator".
    Also project properties, add. jar outside, and throws me the following error:
    [javac] Compiling 213 source files to D:\WORK\WORKSPACE\7.2.jdi\LocalDevelopment\t\2BF09F48E6D0E2C201262098A0E4D79F\classes
         [javac] ERROR: D:\WORK\WORKSPACE\7.2.jdi\LocalDevelopment\t\2BF09F48E6D0E2C201262098A0E4D79F\gen_wdp\packages\elsys\com\.....\wd\comp\....\MainView.java:34: package com.estaf does not exist
         [javac] ERROR: import com.estaf.jpay;
         [javac] ERROR:             
    Given these errors, I know my includes without problems and I can instantiate objects from library classes, but these errors I can not deploy.
    I read the following link:
    /people/raphael.vogel/blog/2008/05/05/how-to-use-external-libraries-in-the-sap-component-model-part-ii
    I did everything the tutorial. I created the external library. I can see in my project "DC-Definition -> Used DCs" The public parts assembly and compilation. Now the problem is that it still does not recognize the classes of the libraries you want to use.
    A level of code, when I try to instantiate the class does not recognize me. What could be missing? I did a couple of times step by step and gives me the same results.
    I use SAP NetWeaver Developer Studio SAP NetWeaver 7.2 SP03 PAT0007 version.
    Infinitely appreciate any help. Thank you very much.
    Rasim
    Edited by: Rasim Donmez on Apr 11, 2011 4:50 PM
    Edited by: Rasim Donmez on Apr 11, 2011 4:51 PM

    Hi,
    please find below path for adding External Jar files.
    right click on the webdynpro dc and select the properties .
    then clcik on Java Build path->select libraries->select External External Jars.
    after that just rebuild your project (not Build).
    Regards,
    Govindu
    Edited by: Govindu Nagotla on Apr 12, 2011 2:28 PM

  • How to open a file in the default application for it directly from QuickLook?

    Is there a way to issue an Open command straight from QuickLook?
    Problem:
    I have a directory containing symlinks to the PDF files I usually refer to. I cannot copy the files locally and I must use symlinks.
    When I need to open one of the files, I can't rely on Finder icon previews as these do not show for symlinks (I think that's absurd, don't you? Is there any reason why they would not?)
    Not knowing how to pick the file I am interested in, I select them all and OPTION+SPACE QuickLook them. Immediately following OPTION+SPACE I press COMMAND+ENTER and finally see them all tiled across the screen (notice: COMMAND+ENTER is not bound in Finder as far as I can see, why not allow users to press that directly?)
    Here's the problem:
    Once I choose the file I want, with the mouse of the arrow keys, I don't see how I could open just that file in the owning application (say: Adobe Reader).
    That, to me, is dumbfounding. COMMAND+O opens ALL files I selected to begin with but I think QuickLook should allow for opening the file currently being previewed with an UI element or a keystroke, shouldn't it?
    It is so strange that it almost can't be, maybe I am just missing the obvious... in that case I apologise.  Feel free to report this to Apple if you think they can work on this.
    For the record, it's the 29th of Aug 2012 and I am on 10.6.8.

    Small update.
    I created a database with a western european characterset We8MSWIn1252
    If I use utl_file to write out the code on the database server it gets produced correctly in Ascii format with the accented charcacters.
    As soon as I try and write out the code using owa_util.Mime_header and htp.p the code is written in UTF8 format.
    I did try and write out the header specifying a western european characterset but it seems that if it encounters an accented character it automatically switches to utf-8 mode. If there are no accented charcters the file is produced in ascii format.
    Really stumped on this one.

Maybe you are looking for

  • Short X1 Carbon 1 month Review (its going back)

    The X1 Carbon is a lovely design. Unfortunately it doesn't live up. I got the model before the latest where they messed up the keyboard even more. Its the 3444CUU model loaded with touch, i7, 240gb, 8gb ram. The Good: Price $1500 with 3 year warrany.

  • ABAP proxy (Client proxy)

    Hi all, Could you provide an insight onto how the ABAP proxy on the client side works? What i want to know is, 1. How do we trigger the proxy. (in case of file -> abap proxy , when ever we pick the file and once the message is inside the XI and sent

  • Automating Command Line FTP.

    Hi, Gurus; I am trying to automate the Command line Ftp for Pulling a file from a remote Host. I want to do this interactively. Steps are: from DOS Prompt. C> ftp <Host IP> ftp> user: <username> [ my prgram will wait here to get "user:" reply from ma

  • HT1338 I have an Mac OS X version 10.4.11, how do I know which download 10.5 is what I need?

    I Have a Mac OS X version 10.4.11. I 've needed to upgrade my software for my IPhone 4S and it says that I require Mac OS X 10.5. but I don't know which one to download. If there is anyone who can help I would grateful appreciate it.

  • How HANA fits over SQL Db 2012 in a new BW installation setup

    Hello, We have new reporting setup. The ECC setup is about 300 GB.. We installed a BW 7.4 on SQL 2012 DB and BO 4.1 and BPC 10.1. Since we are still in building the development server. We decided to rethink our strategy , why to go with SQL 2012 DB i