How to install JAVA API client files :: Using JAVA Proxy & NWDS

Hi
I am going to integrate the SAP with one "AB" System which is providing Java API to integrate with their client ( which in turn will connect with AB System ). So AB System is providing JAR files & property files, in order to instantiate objects & call those APIs.
Now I am going to write the JAVA code in NWDS which is installed on my Laptop so I am sure I need to give this jar files under ::
<i>Project -> Properties and then Java Build Path -> Libraries.
Choose Add External JARs</i>
But where do I need to add property files.
Also do I need to install the same files on XI Server too & do I need to install the "AB" System Client also on XI Server or it can be installed some place else too.
Regards
- Lalit -

Lalit,
><i>But where do I need to add property files</i>
How are you going to access the properties file? Are you going to use Java IO to read the file or are you dgoing to bundle the property file as a resource and use the getResource() . If you are going to use Java IO then you will have to hard code the property file path in your code and make sure that your Proxy can read the property file.
If your property file is going to vary across environments, I woudl suggest this approach. Make sure that the property file path will be same in all environments and it will work fine and make sure that your proxy will have OS level IO access as well.
Another option would be to have the property file bundled as a respurce, but, making changes to the file in this case will be an issue!
><i>Also do I need to install the same files on XI Server too & do I need to install the "AB" System Client also on XI Server or it can be installed some place else too.</i>
When you create the EAR file for your Java Proxy, remove all XI .jar files and just make sure that the Client JAR is available in the EAR file. You need not install the Client JAR file anywhere as long as the jar file is a part of the EAR!
Regards
Bhavesh

Similar Messages

  • How to install JAVA API client files :: Using XI JAVA Proxy & NWDS

    Hi
    I am going to integrate the SAP with one "AB" System which is providing Java API to integrate with their client ( which in turn will connect with AB System ) using SAP XI. So "AB" System is providing JAR files & property files, in order to instantiate objects & call those APIs.
    Now I am going to write the JAVA code in NWDS which is installed on my Laptop so I am sure I need to give this jar files under ::
    Project -> Properties and then Java Build Path -> Libraries.
    Choose Add External JARs
    But where do I need to add property files.
    Also do I need to install the same files on XI Server too & do I need to install the "AB" System Client also on XI Server or it can be installed some place else too.
    I am not much into JAVA so pls. try to give me detailed steps.
    Regards
    - Lalit -

    Lalit,
    ><i>But where do I need to add property files</i>
    How are you going to access the properties file? Are you going to use Java IO to read the file or are you dgoing to bundle the property file as a resource and use the getResource() . If you are going to use Java IO then you will have to hard code the property file path in your code and make sure that your Proxy can read the property file.
    If your property file is going to vary across environments, I woudl suggest this approach. Make sure that the property file path will be same in all environments and it will work fine and make sure that your proxy will have OS level IO access as well.
    Another option would be to have the property file bundled as a respurce, but, making changes to the file in this case will be an issue!
    ><i>Also do I need to install the same files on XI Server too & do I need to install the "AB" System Client also on XI Server or it can be installed some place else too.</i>
    When you create the EAR file for your Java Proxy, remove all XI .jar files and just make sure that the Client JAR is available in the EAR file. You need not install the Client JAR file anywhere as long as the jar file is a part of the EAR!
    Regards
    Bhavesh

  • How do I produce an excel file using java code

    How do i produce an excel file using java code.
    If it is possible would ne one have ne source code as an example.
    I have tried looking up information on outputing the information to a *.csv file but unfortunality i have had no luck in finding any information. To be exact ne source code.
    Thanks
    Lee

    That's what I use and I'd be the first to admit that it's very messy. But it works. Go use Google and see what else you can find.

  • How to Write data in Excel File using java

    Hi
    can anybody help me to write data in excel file
    using java code
    Thankx In Advance

    How much are you willing to pay for that?
    If you want it for free, http://jexcelapi.sourceforge.net/

  • How to enable commenting into pdf files using java?

    Hi All,
    Is there any way available to enable comments into pdf files through java. I have a Adobe Reader 9 and also I want put some comments into pdf file, but the reader is not allowed to place a comment into pdf file before enabling the Comments into pdf. After enabling the comments in pdf file then only we can place the comments and we can the pdf file with comments.
    Is there any way available to enable comments into pdf file to view acrobat reader.
    Thanks in advance.

    The end user who uses the web application has Acrobat installed in their mahcine needs it only for the purpose of enabling comments in pdf. If this task of enabling comments in pdf is done through my application there is no need for acrobat in such user's machine which was requested as a cost cuttnig measure.
    For this purpose, i need to know about how to enable comments in pdf through java api.
    I have used itext java api for other pdf related manipulation in java. But it does not have feature as per the requirement posted above. Can any body suggest relevant java api to achieve the task requested?
    Tahnks in Advance.

  • How Do I write an XML file using Java?

    Hello there!! to everyone reading my post.
    I have this project I need to do, and I have no clue where to start, I was wondering if you guys could help me out.
    I need to know how to write an XML file using a Java Program, but without using a Third party library.... just using java native APIs.
    I will probably take the values to construct the file from a form.
    I will certainly appreciate if you could post some sample code for me.
    Thank you very much in advance..

    Hello there!,
    I have some doubts about the Tutorial I am currently reading. correct me If I'm wrong, but the section "Write a simple XML file" teaches you how to do so using a text editor. I need to create my XML file from a running Java Program written by myself, that takes the values to build it from some variables.
    If I'm totally wrong about what I'm saying, could you please point me to where I can find the information of how to do what I'm asking for, inside the tutorial.
    Thank you very much,...
    sincerely.

  • How can i digital sign a file using JAVA?

    and how can i verify the digitially signed file was not altered by anyone using JAVA?
    please provide me with the simpliest way to do this.
    thanks a lot.

    I have no idea but you might want to take a look at :
    http://java.sun.com/j2se/1.5.0/docs/guide/security/index.html
    hth

  • How can I open/save .xlsx file using java

    Hi
    I have a jsp whose contenttype of response is application/vnd.ms-excel.
    When I am saving the file as .xlsx and opening from disk it displays error message.
    How can I save and/or open the file as .xlsx?
    Any advice will be appreciated.
    Thanks
    Rohini Kumar J

    sunshine_vennela wrote:
    I have a jsp whose contenttype of response is application/vnd.ms-excel.That's not the way to create excel files. You're just creating a plain vanilla HTML file and fooling the browser with a wrong content type.
    Checkout the Apache POI XSSF API or the OpenXML4J API's to create xlsx files and use a servlet to write it to the outputstream.

  • How to open a stored text file using java???

    Respected Sir / Madam
    I have a JList containing absolute path of files stored in my operating system in String format....I have added a ListSelectionListener...Now when i select an absolute path in the JList, the file should open ....I don't know how to do that....Hope you got my problem....Can any one pls help me out???
    Thank you[                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    thats ok buddy! best of luck
    U need to import
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    public void valueChanged(ListSelectionEvent e)
    if (!e.getValueIsAdjusting()) {
            String fileName=
              optionList.getSelectedValue().toString();
    final JFrame dialog = new JFrame(fileName);
              JEditorPane viewer = new JEditorPane();
              viewer.setEditable(false);
              JScrollPane jsp = new JScrollPane(viewer);
              try {
                   viewer.setPage("file:/" + fileName);
              } catch (Exception e) {
                   viewer.setText("Error opening " + fileName + ": " + e);
              dialog.getContentPane().add(jsp, BorderLayout.CENTER);
            JButton closeButton = new JButton("Close");
            closeButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    dialog.setVisible(false);
                    dialog.dispose();
              dialog.getContentPane().add(closeButton, BorderLayout.SOUTH);
              dialog.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
              //dialog.pack();
              dialog.setSize(600, 600);
              dialog.show();
    }

  • HOW DO I MODIFY EXISTING PDF FILES USING JAVA

    I HAVE CHECKED SOME OF THE THIRD PARTY SOFTWARE, HAS ANYONE DONE THIS BEFORE, IF SO PLEASE HELP

    ...which ones?

  • How to print a text file using Java

    How can I print a text file using Java without converting the output to an image format. Is there anyway I can send the characters in the text file as it is for a print job? I did get a listing doing this ... but that converted the text to an image format before printing....
    THanks,.

    Hi I had to write a print api from scratch, and I did not convert the output to image. Go and read up on the following code. I know there is a Tutorial on Sun about the differant sections of the snippet.
    private void printReport()
         Frame tempFrame = new Frame(getName());
         PrintJob printerJob = Toolkit.getDefaultToolkit().getPrintJob(tempFrame, "Liesltext", null);
         Graphics g = printerJob.getGraphics();
                    //I wrote the method below for calculations
         printBasics(g);
         g.dispose();
         printerJob.end();
    }This alone wont print it you have to do all the calculations in the printBasics method. And as I said I wrote this from scratch and all I did was research first the tutorial and the white papers
    Ciao

  • How can i rename a jar file using only java code

    i have tried everything i can think of to accomplish this but nothing works.

    ghostbust555 wrote:
    In case you geniuses haven't realized I said I tried everything I can think of not that I tried everything. So help or shut up I realize that I didn't try everything but if you can't figure it out either DO NOT POST.
    And the question is how can i rename a jar file using java code? As it says in the title. Read.I would tell you to use the File.renameTo method, but surely that would have been obvious, and you would have tried it already? But maybe you didn't. You were kind of lacking in details in what you tried.
    And yes, I am a genius. Just don't confuse "genius" with "mind-reader".

  • Create crystal report file using JAVA

    Can someone tell me how to a Create crystal report file using JAVA Programming
    I want a very simple example

    Please help me. It's urgent.[http://catb.org/~esr/faqs/smart-questions.html#urgent]
    Be back in an hour or two...

  • Reading/writing PDF files using JAVA

    how to read/write a PDF file using java,
    while i read a pdf file using BUfferedReader class it gives a list of char. which is not readable.
    how to convert those files to readable format.?
    is there any special class for doin that.?
    plz explain..?

    is there any special class for doin that.?Yes, I'm sure Google knows a few libraries that ca do that.

  • Generate Excel File using Java

    Hi,
    could any one tell me how can I create an Excel file using java. I can create the file using PrintWriter and other IO classes. But how do I insert the data in to different cells and rows.
    Any help would be greatly appreciated. Thanks in advance for your help,
    -MS

    Dear All,
    There are three ways for achiving excel operations using java including excel to xml etc.
    1. There is a very effective tool available for this operation is "jexcel". You can find it at http://www.andykhan.com/jexcelapi/index.html
    2. Jakarta site has provided a very good tool by name jakarta poifs. one can find at jakarta site.
    3. One can develop a very effective tool by combining these above tools togather.
    The operations that can be performed are read, write, convert etc for excel. The major attraction of Jexcel is excel to xml conversion.
    Regards,
    Nishant Kulkarni
    Software Engineer
    [email protected]

Maybe you are looking for

  • Set a variable in modify package - BPC 7.0 SP4 - Netweaver version

    Hi, can anyone tell me how to set a value (constant) for a variable in the modify package? In Import standard package I want to avoid to ask to user for a transformation file name: I want to substitute: PROMPT(TRANSFORMATION,%TRANSFORMATION%,"Transfo

  • Final Cut Pro X crash problem on export.

    Hello. Okay so I am running Final Cut Pro X Version 10.0.6 on a Late 2011 Macbook Pro 13-inch with 2.8 GHz Dual Core i7 processor, 4GB RAM. At the time of the export I am not running any other applications. I had begun exporting in 1080p HD with Appl

  • Commit interval while removing duplicates

    I am trying to remove duplicates from a table with over 10million records. Below query is working fine but it doesnt contain any COMMIT interval. I have to commit after every 20k or 30k records deletion for which IF loop is necessary. Can anyone help

  • Lumira on BW BEx queries

    Hello experts We intend to connect Lumira to BEx queries. How are the authorizations / access to BEx queries from the Lumira view handled? We don't have HANA. Thanks Thomas

  • Make send email action open in a different tab or window

    Made text a link in a smart shape with Cp7.Due to a shortcoming in the Google Chrome browser the email client doesn't open. So, I click the back button and it goes back to the first slide of the project. I am not looking for a resolution of the Chrom