How to add javah command in build.xml?

Hello
I need to add my javah command to "MyProjet"/build/build.xml (ant).
How can I do it?
any reference/example?
Thanks
U.

Try looking here.

Similar Messages

  • How to run JDev's generated build.xml file(BPEL project) from command win.?

    hi all
    When I execute build.xml file of simple BPEL project from JDev it runs properly. But when I try to execute it from normal command window It gives me an following error.
    ...........droping jar file xyz.jar from path as i doesn't exists.
    While all jar files are exist there.But Ant drops it from Classpath variable.
    So JDev sets some environment before executing such build.xml file.Like {oracle.home} variable u need to set while runnig build.xml from command window.
    Any suggestions...???
    /mishit

    you cant run a .war file from command prompt
    .war files should be executed in a server
    how to execute a single servlet class
    do you mean to run the servlet or compile the servlet?
    any way you need a server and if you are a beginner Apache tocat will be the best server to start with you can down load it from
    http://tomcat.apache.org/

  • How to add DTD syntax line into XML using java code

    Hi,
    I am building xml file with java, usiing document.createElement()
    and document.appendChild(element),
    like that
    now i need to add dtd file path and synatx in the top of the xml file,
    how can i do it through java code
    any body could help me
    i appreciate your help.
    thanks
    Durga

    Hi Suneetha,
    Thanks for your reply..
    Now i am getting docType in xml file but not in the format of what i want
    please look at my code
    i need
    <!DOCTYPE myRootElement SYSTEM "myXMLDTD.dtd" >
    but i am getting
    <!DOCTYPE myRootElement PUBLIC "" "myXMLDTD.dtd">
    There is change i need to get the SYSTEM in place of PUBLIC and i need to get rid of "" code between dtd and PUBLIC
    for this i am doing in my code as
    DocumentType theDocType = new DocumentImpl().createDocumentType ("SYSTEM","","myXMLDTD.dtd");
    Document theDoc = new DocumentImpl(theDocType);
    i dn't know what is the wrong ? i dn't know what are the parameters at what place to pass if you know any thing just let me know
    thanks in advance
    and i apperciate you help.
    Durga

  • How to add -bootclasspath in the build of KToolBar

    Hi, all. How do I add -bootclasspath in the build button of the KToolbar. Am trying to compile classes via the command line but I can't seem to run them using the Ktoolbar..Any idea?

    Create a JAR of your classes and put the JAR in your project's "lib" directory. Then KToolbar will add your JAR to the classpath (not bootclasspath, but that shouldn't be necessary) when compiling the MIDlet.
    Or just skip using KToolbar and do everything from the command line.

  • How to add a digital signature in xml publisher report

    The problem is: There is a existing pick slip report.This is a xml publisher report and the data source is RDF. We have to add digital signature there. Now this signature is stored in a table with type Long Raw and format BMP. XML Publisher do not support Long Raw and BMP format. It supports BLOB and jpg format.
    Could you please guide how to add this signature in the existing RDF with datatype as BLOB and format as jpg.
    Please provide the steps with example.

    Hi,
    Have a look at this thread.
    Implementing electronic signatures on an existing AP check run
    Re: Implementing electronic signatures on an existing AP check run
    Regards,
    Hussein

  • How to add extra blank space in xml

    I open the xml file in notepad I get this
    <XXON_EXT_BANK_ACCOUNT_NAME>創名聯合會計師事務所                                        </XXON_EXT_BANK_ACCOUNT_NAME>
    But when I open the xml file in html format the blank space is gone.
    How can I add extra blank space in xml?

    Hi
    Why do you need the extra space for?
    This difference in display that you see between your browser and notepad/notepad++
    will not affect your generated report.
    Bogdan 

  • How to add a textline to an xml structure using xslt

    Hi,
    I am having a requirement where i need to add a textline to an xml.
    scenario: IDOC-File  and output format is an xml.
    Output should be like this:
    &&##AOC0MB000#AD15543390#BOIFCO#Z
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <messages>
         <batch>0800062844</batch>
         <message>
              <type>VPR</type>
              <action>A</action>
              </body>
         </message>
    </messages>
    The line that has been added to xml is the data that will be coming from IDOC. How can we append the textline to the xml using xslt.Will document() in xslt works for doing this?

    The required format in ur scenario is not an xml format, so u should not save the file in xml format. U may write an adapter module at receiver to achieve this.
    How can we append the textline to the xml using xslt
    This is not possible as the output of xsl transformation is an xml file.
    Regards,
    Prateek

  • How to deploy the application via Build.xml

    Hi,
    this is my first time using this cloud service. I have an open source application to be deploy in the cloud. This application come with ANT script (build.xml) and table scripts.
    Would like to know how do I configure the eclipse or write the build script to deploy the application into the java service. In addition, how do I configure the java service (app server) to talk to the database?
    many thanks
    I look forward to your advices and guidance.

    Hello ,
    You can get this information from Java Cloud Service learning center.
    Java Cloud Service provides  a SDK (Download) which includes ANT tasks library (As well as Maven Plugin) which can be used to extend the Ant build file to deploy the application to the cloud.
    In case of App server talking to the Database , that part is already taken care of in the Oracle Java Cloud Service and associated Oracle Database Cloud Service.

  • How to add styles to image in XML view ?

    Is it possible to add styles to Images in XML view ?
    <Image alt="alternate text " src = " " />
    I tried adding sytle= "align : right " but its not working. I just want to align this element in the view to the right.

    Hi Micheal,
    Pleas see the below code.
    View:
    <core:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m"
      controllerName="testing.imageXml" xmlns:html="http://www.w3.org/1999/xhtml">
      <Page title="Image">
      <content>
      <Image id="img1" alt="alttextimage" src="images/img1.jpg" />
      </content>
      </Page>
    </core:View>
    Controller:
    onBeforeRendering: function() {
      this.getView().byId("img1").addStyleClass("myimage");
    Index.html :
    <!DOCTYPE HTML>
    <html>
      <head>
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>
      <script src="resources/sap-ui-core.js"
      id="sap-ui-bootstrap"
      data-sap-ui-libs="sap.m,sap.ui.commons"
      data-sap-ui-theme="sap_bluecrystal">
      </script>
      <script>
      sap.ui.localResources("testing");
      var app = new sap.m.App({initialPage:"idhome1"});
      var page = sap.ui.view({id:"idhome1", viewName:"testing.imageXml", type:sap.ui.core.mvc.ViewType.XML});
      app.addPage(page);
      app.placeAt("content");
      </script>
      <style>
      .myimage{float:right !important; width:300px; height:200px;}
      </style>
      </head>
      <body class="sapUiBody" role="application">
      <div id="content"></div>
      </body>
    </html>
    Output :
    Regards,
    KK

  • How to Add Input Values into a XML in Flex AIR Application

    I need a help, now I am developing a flex windows AIR application, in this I am displaying data using a xml file,
    I have some input fields in my application,if the application user filled the input field and press submit button, the inputs
    Should be stored in that xml. How can I do this using flex, can you  anyone please provide me a sample file with tutorial.
    Thanks in advance
    Vasanth,
    Chennai

    You can use the "+" operator which is both the addition (number) and concatenation (string) operator. JavaScript makes the decision about how this operator will work by the type of the value of being processed. Two numbers JavaScript performs addition, character string and number, number and character string, or 2 character strings then concatenation.
    If you just use the '+' operator and spaces, you will get extra spaces unless you add code to allow for null fields and adjusting the spacing or other punctuation as needed. You may also need to force numeric values to character stings or you might end up with an addition and not concatenation.
    Adobe provided a example of a funciton to properly join 3 fields with full versions of Acrobat:
    function fillin(s1, s2, s3, sep) {
      // Concatenate 3 strings with separators where needed
      // convert passed strings to a string value
      s1 = s1.toString();
      s2 = s2.toString();
      s3 = s3.toString();
      // assign a numeric value for presence of a given string(s)
      var test = 0; // no passed strings
      if (s1 != "") test += 1; // s1 has a value
      if (s2 != "") test += 2; // s2 has a value
      if (s3 != "") test += 4; // s3 has a value
      // return appropriate combination based on passed strings
      if (test == 0) return ""; // no stings passed
      if (test == 1) return s1; // s1 only
      if (test == 2) return s2; // s2 only
      if (test == 3) return s1 + sep + s2; // s1 and s2
      if (test == 4) return s3; // s3 only
      if (test == 5) return s1 + sep + s3; // s1 and s3
      if (test == 6) return s2 + sep + s3; // s2 and s3
      if (test == 7) return s1 + sep + s2 + sep + s3; // s1, s2, and s3

  • How to add b tags in your XML when changing style to Bold

    I'm currently checking if there is an easier way to automatically add <b> tags when changing font style to Bold in your xml. I'm not sure how to override the format  of a structured application automatically in FM. Do I need to create a script for this? Or is there any configuration that can be made to make this work automatically?

    Most of the discussion on this thread has dealt with the relevance of the Bold button on FrameMaker's Text Formatting toolbar to structured documents.
    While someone made the suggestion to create a <b> element and then insert text within the new element, I don't think anyone has yet commented on how easy it is to wrap an element (<b> or another element) around existing content. You can do so with the Element Catalog. Simply select the content to be wrapped and double-click the tag of the new element (e.g., b) in the Element Catalog. Or click the tag in the Element Catalog and then the Wrap button at the bottom of the Catalog.
    If you prefer to use the keyboard, you can use what is called Smart Insert in FM 11 and quick keys in earlier versions. The first three buttons at the bottom of the Element Catalog window are Insert, Wrap, and Change. You don't need to have the Catalog open to use Smart Insert. I mentioned the buttons only because that order is pretty easy to remember--1. Insert, 2. Wrap, 3. Change. The keyboard shortcuts Ctrl-1, Ctrl-2, and Ctrl-3 bring up the Smart Insert or Quick Keys to Insert, Wrap, or Change an element. With Smart Insert, a pop-up menu appears that shows the available elements. You can use the up and down arrow keys to navigate to the one you want, or type a unique prefix. Then press Enter to perform the operation (or Esc to cancel). With Quick Keys, the left side of the status bar at the bottom of the document window or Structure View (whichever is current) will prompt for the element tag with I: for Insert, W: for Wrap or C: for Change. Again, use the arrow keys or a prefix to display the desired element tag and then press Enter.
    So, to create a new <b> element to hold an existing string, select the string, type Ctrl-2 b, and press Enter.
    That said, I will close with an observation on the use of format overrides in structured documents. While automatic formatting based on element structure is the heart of structured FM, the software was deliberately designed in recognition that as a practical matter it is sometimes necessary for an author to create formatting that the document's element definitions simply do not provide. It therefore allows the user to tweak the formatting (for example, by deliberating making some content bold without using the element structure to do so). Users should understand the difference between element-based formatting and format overrides and use the latter with care if at all.
         --Lynne

  • How to add property through managed-beans.xml

    Hi,
    I am trying to take a hard coded value property from managed-beans.xml file. I tried using :
    <managed-property>
    <property-name> filename </property-name>
    <value> xx </value>
    I called getProperty("filename"); from one of my bean classes and it did not recognise it.
    I am not sure how to do this one. any help will be appreciated.
    Thanks

    I'm not sure what getProperty method you are referring to in your original posting. Is this a method on your managed bean class?
    Managed beans are implemented as regular JavaBeans so you will need to add a setFilename(String) and getFilename() method to your backing bean class to get this to work correctly. The setter method will get called automatically when the bean is first instantiated, either by accessing it from a JSP value-binding expression as a result of calling context.getApplication().getVariableResolver().resolve(context, beanName) where context is an instance of FacesContext and beanName the name of the managed bean as specified in faces-config.xml. You can then use the getter method to access the property value from within your application code.
    Alternatively, if you don't want to implement a JavaBean class, you can specify java.lang.HashMap as the managed bean class and use myBean.get("filename") to access the property instead.
    Hope this helps.
    -- Keith

  • How to add processing instruction to my XML view

    Hi,
    How do I add the processing instruction like &lt;?xml version="1.0" encoding="iso-8859-1"?&gt;.
    in my XML view.

    The only way to do at the moment is as follows... And it's not very pretty. The SQL/XML standard is still finalizing the correct way of doing this...
    set echo on
    connect &1/&2@&3
    create or replace view EMPLOYEES_WORKBOOK_XML of xmltype
    xmlschema "excel.xsd" element "Workbook"
    with object id
    'EMPLOYEES_WORKBOOK_XML'
    as
    select
    xmltype(
    '<?xml version="1.0"?>' ||
    xmlElement
    "Workbook",
    xmlAttributes
    'urn:schemas-microsoft-com:office:spreadsheet' as "xmlns",
    'urn:schemas-microsoft-com:office:office' as "xmlns:o",
    'urn:schemas-microsoft-com:office:excel' as "xmlns:x",
    'urn:schemas-microsoft-com:office:spreadsheet' as "xmlns:ss",
    'http://www.w3.org/TR/REC-html40' as "xmlns:html",
    'http://www.w3.org/2001/XMLSchema-instance' as "xmlns:xsi",
    'excel.xsd' as "xsi:noNamespaceSchemaLocation"
    xmlElement
    "DocumentProperties",
    xmlAttributes('urn:schemas-microsoft-com:office:office' as "xmlns"),
    xmlForest
    USER as "Author",
    USER as "LastAuthor",
    '2002-10-11T15:47:35Z' as "Created",
    'Oracle Corporation' as "Company",
    '10.350' as "Version"
    xmlElement
    "OfficeDocumentSettings",
    xmlAttributes('urn:schemas-microsoft-com:office:office' as "xmlns"),
    xmlElement("DownloadComponents"),
    xmlElement
    "LocationOfComponents",
    xmlAttributes('file://' as "HRef")
    xmlElement
    "ExcelWorkbook",
    xmlAttributes('urn:schemas-microsoft-com:office:excel' as "xmlns"),
    xmlForest
    '8835' as "WindowHeight",
    '14220' as "WindowWidth",
    '480' as "WindowTopX",
    '60' as "WindowTopY",
    'False' as "ProtectStructure",
    'False' as "ProtectWindows"
    xmlElement
    "Styles",
    xmlElement
    "Style",
    xmlAttributes('Default' as "ss:ID",'Normal' as "ss:Name"),
    xmlElement("Alignment",xmlAttributes('Bottom' as "ss:Vertical")),
    xmlElement("Borders"),
    xmlElement("Font"),
    xmlElement("Interior"),
    xmlElement("NumberFormat"),
    xmlElement("Protection")
    xmlElement
    "Style",
    xmlAttributes('s21' as "ss:ID"),
    xmlElement("Font",xmlAttributes('Swiss' as "x:Family",'1' as "ss:Bold"))
    xmlElement
    "Worksheet",
    xmlAttributes('EMP' as "ss:Name"),
    xmlElement
    "Table",
    xmlAttributes('11' as "ss:ExpandedColumnCount",'108' as "ss:ExpandedRowCount",'1' as "x:FullColumns",'1' as "x:FullRows"),
    xmlElement
    "Row",
    xmlAttributes('s21' as "ss:StyleID"),
    xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Employee ID')),
    xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'First Name')),
    xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Last Name')),
    xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Email Address' )),
    xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Phone Number' )),
    xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Hire Date')),
    xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Job Title')),
    xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Salary')),
    xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Commission Rate')),
    xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Manager')),
    xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Department'))
    xmlagg
    xmlElement
    "Row",
    xmlAttributes('Default' as "ss:StyleID"),
    xmlElement("Cell", xmlElement("Data", xmlAttributes('Number' as "ss:Type"), e.EMPLOYEE_ID)),
    xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), e.FIRST_NAME )),
    xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), e.LAST_NAME )),
    xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), e.EMAIL )),
    xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), e.PHONE_NUMBER )),
    xmlElement("Cell", xmlElement("Data", xmlAttributes('DateTime' as "ss:Type"), to_char(to_char(e.HIRE_DATE,'YYYY-MM-DD"T00:00:00.000"')))),
    xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), JOB_TITLE)),
    xmlElement("Cell", xmlElement("Data", xmlAttributes('Number' as "ss:Type"), e.SALARY )),
    xmlElement("Cell", xmlElement("Data", xmlAttributes('Number' as "ss:Type"), e.COMMISSION_PCT)),
    xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), m.FIRST_NAME || ' ' || m.LAST_NAME )),
    xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), DEPARTMENT_NAME )) )
    xmlElement
    "WorksheetOptions",
    xmlAttributes('urn:schemas-microsoft-com:office:excel' as "xmlns"),
    xmlElement
    "Print",
    xmlElement("ValidPrintInfo"),
    xmlElement("HorizontalResolution",96),
    xmlElement("VerticalResolution",96),
    xmlElement("NumberOfCopies",0)
    xmlElement("Selected"),
    xmlElement
    "Panes",
    xmlElement
    "Pane",
    xmlElement("Number",3),
    xmlElement("ActiveRow",6),
    xmlElement("ActiveCol",1)
    xmlElement("ProectedObjects",'False'),
    xmlElement("ProectedSecenarios",'False')
    ).getClobVal())
    from HR.EMPLOYEES e, HR.JOBS j, HR.DEPARTMENTS d, HR.EMPLOYEES m
    where e.JOB_ID = j.JOB_ID
    and e.DEPARTMENT_ID = d.DEPARTMENT_ID
    and e.MANAGER_ID = m.EMPLOYEE_ID
    pause
    create or replace trigger IGNORE_IO_OPERATIONS
    instead of INSERT or UPDATE or DELETE on EMPLOYEES_WORKBOOK_XML
    begin
    null;
    end;
    show errors
    pause
    quit

  • How to add tags to the existing XML file?

    Hi,
    I have a requirement wherein I have to add a tag to the existing xml data.
    For Eg:
    <ROW>
    <EVNT_ID>7333976</EVNT_ID>
    <DISTRCT_CD>67</DISTRCT_CD>
    <TIME_OFF>06-May-2008 10:50:04 AM</TIME_OFF>
    </ROW>
    The desired output is,
    <DI_DATA>
    <ROW>
    <EVNT_ID>7333976</EVNT_ID>
    <DISTRCT_CD>67</DISTRCT_CD>
    <TIME_OFF>06-May-2008 10:50:04 AM</TIME_OFF>
    </ROW>
    </DI_DATA>
    I have to add <DI_DATA> </DI_DATA>at the start and end of the input.
    Could any of you help me on this?
    Thanks,
    GV

    If your XML is just in a CLOB, you can just use string manipulation to prepend/append the nodes on. If you have it in an XMLType you could just do the following
    select appendchildxml(XMLTYPE('<DI_DATA/>'),
                                  'DI_DATA',
                                  XMLTYPE('<ROW>
    <EVNT_ID>7333976</EVNT_ID>
    <DISTRCT_CD>67</DISTRCT_CD>
    <TIME_OFF>06-May-2008 10:50:04 AM</TIME_OFF>
    </ROW>'))  -- this would be your variable
      from dual;which will put your data within the DI_DATA node.

  • How to add OS command in SM69?

    Hi,
    How to pass command lines in transaction SM69?
    Thanks.

    Thanks Raju Chitale.
    It is working fine from SM49. But it is giving error when i call the command from FM SXPG_COMMAND_EXECUTE. Please see the folllowing details.
    Execution from SM49:
    Operating system command: /opt/pgp/bin/pgp
    Parameters for operating system command: --verify & --passphrase <passphrase>
    Additional parameters: /misc/interface/test.txt.pgp
    Result:
    /misc/interface/test.txt.pgp:verify (3093:data is encrypted to blah blah blah
    /misc/interface/test.txt.pgp:verify (0:verify complete)
    Execution from FM SXPG_COMMAND_EXECUTE passing
    COMMANDNAME = ZPGP_ENCRYPTION
    ADDITIONAL_PARAMETERS = /MISC/INTERFACE/TEST.TXT.PGP
    OPERATINGSYSTEM = HP-UX
    TARGETSYSTEM = SY-HOST
    Result:
    Status: E
    Exitcode: 164
    /MISC/INTERFACE/TEST.TXT.PGP:verify (3001:input file not found)
    External program terminated with exit code 164

Maybe you are looking for