How to create SAP RAR file using NWDS 7.31: ResourceBundle issue

Hello everybody,
I successfully create SAP JCA Connector project for .java / .class files.
When I try to use ResourceBundle in connector project, it isn't exported to JAR / RAR / EAR files.
What should I do?
The only builders are:
* org.eclipse.jdt.core.javabuilder
* org.eclipse.wst.common.project.facet.core.builder
* org.eclipse.wst.validation.validationbuilder
When I try to export connector project to SAP RAR file, I can switch between binary-only or binary with sources, not any checkbox for *.properties.
Thank you in advance for any point.

Here patching info.
Source getting script:
echo off
set JN=com.sap.ide.j2ee.servicelayer_1.0.1.140801063136.jar
set JAR=C:\NWDSsp12.p3\plugins\%JN%
set FERN=C:\sap\fernflower.jar
set UNZIP="C:\Program Files\7-Zip\7z.exe"
java -jar %FERN% %JAR%  .
mkdir src\com\sap\ide\j2ee\servicelayer\archive
%UNZIP% x %JN% com\sap\ide\j2ee\servicelayer\archive\BuildRar*java
move com\sap\ide\j2ee\servicelayer\archive\BuildRar*java src\com\sap\ide\j2ee\servicelayer\archive\
rmdir /s/q com
echo **************************************************************************
echo *                                                                        *
echo *                                                                        *
echo *                                                                        *
echo * Now fix BuildRar.createArchiveDescriptorForProjectWithPattern() method *
echo * look for "if(sAddJavaFiles)" condition                                *
echo *                                                                        *
echo * if (sAddJavaFiles)                            =: if (true)            *
echo * IPattern javaPattern = Pattern.getPattern(2); =: .getPattern(3)        *
echo *                                                                        *
echo **************************************************************************
pause
Classpath file:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.equinox.common_3.5.1.R35x_v20090807-1100.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.core.jobs_3.4.100.v20090429-1800.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.core.resources_3.5.2.R35x_v20091203-1235.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.core.runtime_3.5.0.v20090525.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.servicelayer_1.0.1.140801063136.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.adapter.ext.ra_1.0.1.140801063136.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.extensionpoints_1.0.1.140801063136.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.util_1.0.1.140801063136.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.adapter.web_1.0.1.140801063136.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.tssap.util.core_2.0.0.140801063136.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.tssap.util.trace_1.0.0.140801063136.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.tssap.tools_2.0.0.140801063136/lib/com.tssap.tools_api.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.adapter.core_1.0.1.140801063136.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.eclipse.jarsap_2.0.0.140801063136/lib/com.sap.ide.eclipse.jarsap_api.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.adapter.ear_1.0.1.140801063136.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.adapter.client_1.0.1.140801063136.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.adapter.ejb_1.0.1.140801063136.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.adapter.ext.client_1.0.1.140801063136.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.adapter.ext.cmpejb_1.0.1.140801063136.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.adapter.ext.core_1.0.1.140801063136.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.adapter.ext.ear_1.0.1.140801063136.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.adapter.ext.ejb_1.0.1.140801063136.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.adapter.ext.web_1.0.1.140801063136.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.adapter.ra_1.0.1.140801063136.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.sap.ide.j2ee.ui_1.0.1.140801073130.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/com.tssap.util.sdk.ui_2.0.0.140801063136/lib/com.tssap.util.sdk.ui_api.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jdt.core_3.5.2.v_981_R35x.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jst.j2ee_1.1.302.v201004131604.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jem.workbench_2.0.201.v200911302230.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jem.util_2.0.201.v201001252130.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.ui.workbench_3.5.2.M20100113-0800.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jst.j2ee.core_1.1.301.v200911302230.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jface_3.5.2.M20100120-0800.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.ltk.core.refactoring_3.5.0.v20090513-2000.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.wst.common.modulecore_1.1.301.v201001252130.jar"/>
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.wst.common.project.facet.core_1.4.1.v200911141735.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Patching:
@echo off
set JN=com.sap.ide.j2ee.servicelayer_1.0.1.140801063136.jar
set JAR=C:\NWDSsp12.p3\plugins\%JN%
set ZIP="C:\Program Files\7-Zip\7z.exe"
set BLD=bin\com\sap\ide\j2ee\servicelayer\archive
copy/b %JAR% .
cd bin && %ZIP% a ..\%JN% com\sap\ide\j2ee\servicelayer\archive\*class
echo **************************************************************************
echo * Now replace:
echo * %JAR%
echo * with with .\%JN%
echo **************************************************************************
pause
Attached: some scripts and project files.
Also see NWDS_PatchRAR at google disc.

Similar Messages

  • How to create new XML file using retreived XML content by using SAX API?

    hi all,
    * How to create new XML file using retreived XML content by using SAX ?
    * I have tried my level best, but output is coming invalid format, my code is follows,
    XMLFileParser.java class :-
    import java.io.StringReader;
    import java.io.StringWriter;
    import javax.xml.transform.OutputKeys;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerConfigurationException;
    import javax.xml.transform.TransformerException;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMResult;
    import javax.xml.transform.sax.SAXSource;
    import javax.xml.transform.sax.SAXTransformerFactory;
    import javax.xml.transform.sax.TransformerHandler;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.Document;
    import org.xml.sax.Attributes;
    import org.xml.sax.InputSource;
    import org.xml.sax.SAXException;
    import org.xml.sax.helpers.XMLFilterImpl;
    public class PdfParser extends XMLFilterImpl {
        private TransformerHandler handler;
        Document meta_data;
        private StringWriter meta_data_text = new StringWriter();
        public void startDocument() throws SAXException {
        void startValidation() throws SAXException {
            StreamResult streamResult = new StreamResult(meta_data_text);
            SAXTransformerFactory factory = (SAXTransformerFactory) SAXTransformerFactory.newInstance();
            try
                handler = factory.newTransformerHandler();
                Transformer transformer = handler.getTransformer();
                transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
                transformer.setOutputProperty(OutputKeys.INDENT, "yes");
                handler.setResult(streamResult);
                handler.startDocument();
            catch (TransformerConfigurationException tce)
                System.out.println("Error during the parse :"+ tce.getMessageAndLocation());
            super.startDocument();
        public void startElement(String namespaceURI, String localName,
                String qualifiedName, Attributes atts) throws SAXException {
            handler.startElement(namespaceURI, localName, qualifiedName, atts);
            super.startElement(namespaceURI, localName, qualifiedName, atts);
        public void characters(char[] text, int start, int length)
                throws SAXException {
            handler.characters(text, start, length);
            super.characters(text, start, length);
        public void endElement(String namespaceURI, String localName,
                String qualifiedName) throws SAXException {
            super.endElement("", localName, qualifiedName);
            handler.endElement("", localName, qualifiedName);
        public void endDocument() throws SAXException {
        void endValidation() throws SAXException {
            handler.endDocument();
            try {
                TransformerFactory transfactory = TransformerFactory.newInstance();
                Transformer trans = transfactory.newTransformer();
                SAXSource sax_source = new SAXSource(new InputSource(new StringReader(meta_data_text.toString())));
                DOMResult dom_result = new DOMResult();
                trans.transform(sax_source, dom_result);
                meta_data = (Document) dom_result.getNode();
                System.out.println(meta_data_text);
            catch (TransformerConfigurationException tce) {
                System.out.println("Error occurs during the parse :"+ tce.getMessageAndLocation());
            catch (TransformerException te) {
                System.out.println("Error in result transformation :"+ te.getMessageAndLocation());
    } CreateXMLFile.java class :-
    Sax.startDocument();
    Sax.startValidation();
    Sax.startElement("", "pdf", "pdf", new AttributesImpl());
    Sax.startElement("", "basic-metadata", "basic-metadata", new AttributesImpl());          
    String xmp_str = new String(meta_data.getByteArray(),"UTF8");
    char[] xmp_arr = xmp_str.toCharArray();
    Sax.characters(xmp_arr, 0, xmp_arr.length);
    Sax.endElement("", "pdf", "pdf");
    Sax.endValidation();
    Sax.endDocument();
    Sax.endElement("", "basic-metadata", "basic-metadata");* In CreateXMLFile.java
    class, I have retreived the xml content in the meta_data object, after that i have converted into character array and this will be sends to SAX
    * In this case , the XML file created successfully but the retreived XML content added as an text in between basic-metadata Element, that is, retreived XML content
    is not an XML type text, it just an Normal text Why that ?
    * Please help me what is the problem in my code?
    Cheers,
    JavaImran

    Sax.startDocument();
    Sax.startValidation();
    Sax.startElement("", "pdf", "pdf", new AttributesImpl());
    Sax.startElement("", "basic-metadata", "basic-metadata", new AttributesImpl());          
    String xmp_str = new String(meta_data.getByteArray(),"UTF8");
    char[] xmp_arr = xmp_str.toCharArray();
    Sax.characters(xmp_arr, 0, xmp_arr.length);
    </code><code>Sax.endElement("", "basic-metadata", "basic-metadata");</code>
    <code class="jive-code jive-java">Sax.endElement("", "pdf", "pdf");
    Sax.endValidation();
    Sax.endDocument();     
    * I HAVE CHANGED MY AS PER YOUR SUGGESTION, NOW SAME RESULT HAS COMING.
    * I AM NOT ABLE TO GET THE EXACT OUTPUT.,WHY THAT ?
    Thanks,
    JavaImran{code}

  • How to open a PDF file using NWDS or VC

    Hi Frndz...
    As per my requirment i need to open a PDF file on browser which PDFs are reside on R/3 and in my case EP server is on UNIX usinig either NWDS or VC ....
    Thanks in Advance
    Regards
    Rajesh
    09903726944

    hi,
    can you put your question much more clearly? I couldnt get you properly.
    Check out the following links, they may be useful
    [How to Create a pdf form Using Web Dynpro - Java;
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/805709cb-ec97-2910-04b8-f3d6303d8d3b]
    [Diff - PDF view inside NWDS livecycle designer and when App. is run;
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90e8e837-cc15-2a10-8db1-a87e2d29e9c9]
    Regards,
    Murthy.

  • Creating a LIb file using NWDS

    Hi,
    can anyone please guide me how to create a library file , we are using NWDI for our development purpose.The objective is to put all jars file inside one component and then use them globally.
    I have posted the same in portal forum , points will be rewarded for any help which is provided.
    Rakesh

    Hi Rakesh,
                    Do the following steps:
    1. Create an External Library DC with NWDS.
    2. Put all the jar files in the 'libraries' folder of th DC.
    3. Create two public parts for the DC.
        3.1 Right click each jar file and select 'Development Component' -> 'Add to public part'.
        3.2 NWDS will prompt to create a public part. Give a name for the public part and select the first option ('Provides an API for developing/compiling other DCs')
       3.3 Click finish.
    4. After finishing step3 for all jars, again right click on each jar and select 'Development Component' -> 'Add to public part'.
    5. A new dialaog box will be opened, prompting to select a public part or to create a public part.
    6. Create a new public part, but this time select the second option ('Can be packaged into other build results')
    7. Add all subsequent to jar files to this new public part.
    8. Once finished build the DC.
    9. Now create a J2EE Server Component-> Library DC.
    10. Go to 'DC MetaData->DC Definition-> Used DCs'
    11. Right click 'Used DCs' and select 'Add used DC'.
    12. Select the two public parts of the External DC created earlier.
    13. Build and Deploy the new DC.
    Now to access the jar files in any components, just add the public part of the J2EE server library DC to other components.
    Thanks and Regards,
    Shabeer.

  • SAX: How to create new XML file using SAX parser

    Hi,
    Please anybody help me to create a XML file using the Packages in the 5.0 pack of java. I have successfully created it reading the tag names and values from database using DOM but can i do this using SAX.
    I am successful to read XML using SAX, now i want to create new XML file for some tags and its values using SAX.
    How can i do this ?
    Sachin Kulkarni

    SAX is a parser, not a generator.Well,
    you can use it to create an XML file too. And it will take care of proper encoding, thus being much superior to a normal textwriter:
    See the following code snippet (out is a OutputStream):
    PrintWriter pw = new PrintWriter(out);
          StreamResult streamResult = new StreamResult(pw);
          SAXTransformerFactory tf = (SAXTransformerFactory) TransformerFactory.newInstance();
          //      SAX2.0 ContentHandler.
          TransformerHandler hd = tf.newTransformerHandler();
          Transformer serializer = hd.getTransformer();
          serializer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");//
          serializer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM,"pdfBookmarks.xsd");
          serializer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM,"http://schema.inplus.de/pdf/1.0");
          serializer.setOutputProperty(OutputKeys.METHOD,"xml");
          serializer.setOutputProperty(OutputKeys.INDENT, "yes");
          hd.setResult(streamResult);
          hd.startDocument();
          //Get a processing instruction
          hd.processingInstruction("xml-stylesheet","type=\"text/xsl\" href=\"mystyle.xsl\"");
          AttributesImpl atts = new AttributesImpl();
          atts.addAttribute("", "", "someattribute", "CDATA", "test");
          atts.addAttribute("", "", "moreattributes", "CDATA", "test2");
           hd.startElement("", "", "MyTag", atts);
    String curTitle = "Something inside a tag";
              hd.characters(curTitle.toCharArray(), 0, curTitle.length());
        hd.endElement("", "", "MyTag");
          hd.endDocument();
    You are responsible for proper nesting. SAX takes care of encoding.
    Hth
    ;-) stw

  • How to Create a Flat File using FTP/File Adapter

    Can any body done workaround on creating the Flat file using FTP/File Adapter?.
    I need to create a simple FlatFile either using of delimiter/Fixed length. using the above said adapters we can create XML file, i tried concatinating all the values into a single String and writing into a file, but it does not have proper structure
    Can any body help me out on this..
    Thanks
    Ram

    You can create a text schema while creating a File Adapter. If schema is specified for File Adapter, it takes care of converting XML into fixed length or delimited format.
    Thanks,
    -Ng.

  • How to create the trace file using run_report_object at runtime

    Dear All
    using :
    Oracel Application Server 10g
    Oracle Database 11g
    Windows XP/sp3
    I'm using run_report_object to call a report inside the form. THis report is running OK from reports builder, however it's too slow when run from Application server.
    How Can I create a trace file (at runtime) that contains the time spent in sql and formating the layout of the report ??
    Here is My code :
    repid := find_report_object('report5');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,'INVOICE.REP');
    v_url :='paramform=no';
    v_url := v_url||' FROM_NO=' || :PRINT_BLOCK.FROM_NO ;
    v_url := v_url ||' TO_NO=' || :PRINT_BLOCK.TO_NO ||' FROM_DATE=' || v_from_date ||' TO_DATE='|| v_to_date ||' NO_DATE=' ;
    v_url := v_url ||:PRINT_BLOCK.NO_DATE||' IDENT=' ||:PRINT_BLOCK.IDENT_NO||' REPORT_HEADING='''||V_REPORT_HEADING||'''' ;
    v_url := v_url||' COMPANY_NO='||:global.company_no;
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,v_url);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,:GLOBAL.INV_REPORT_SERVER_NAME);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'pdf');
    v_rep := RUN_REPORT_OBJECT(repid);
    IF rep_status = 'FINISHED' THEN
    V1:='/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1);
    WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?server='||REPORT_SERVER_NAME,'_blank');
    END IF;
    Thanks a lot

    Slow running reports often are not the result of a flawed report, but rather a flawed configuration. For example:
    1. If you call your reports (from Forms) via the default or inProcess Reports Server, often because startup time is slow, it will appear that it took too long for the report to be delievered. Using a stand-alone Rep Server is the preferred way to do this.
    2. If your Forms application makes numerous calls to RRO (RUN_REPORT_OBJECT), this can tend to result in what might appear as a memory leak (although it is not). The result is delayed processing because of the excessive memory use. This problem has been overcome in Forms/Reports 11 by the use of JVM pooling. However in v10 enabling "6i compatibility" mode is the way to overcome the issue. See Note 266073.1
    3. If the report runs fine from the Builder and it is connecting to the same db as when you run it from App Server, the issue is unlikely a db problem. However, if you want to look anyway, enable sqlnet tracing.
    4. To enable Reports tracing and investigate other tuning options, refer to the Reports 10 documentation:
    http://docs.oracle.com/cd/B14099_11/bi.1012/b14048/pbr_tune.htm
    Almost forgot to mentioned this one....
    If you are using a v11 db with App Server 10, you will probably want to consider reviewing Note 1099035.1 as it discusses an issue related to performance with such a configuration.
    Edited by: Michael Ferrante on Apr 10, 2012 8:49 AM

  • How to create smaller .exe file use JBuilder7

    I am currently using JB7(EE), which can create native executable file for me. But I found it so foolish that add so many unneed classes to .exe(As I can use WinRar open it, but cannot change it).
    Does anyone know how to reduce the .exe?
    ps: As I use castor, so I had to include castor class in it, but I really don't want to add all of these to it.

    In the Wizar you employ to make the native executable,
    in the second step the Wizard ask you what to do with
    the libraries you have employed in the proyect,
    include all them include only the classes and
    resources nedded, or not include. This way you'll be
    able to control what is in you .exe file.
    AbrahamYes, I had tried it, and tried every possible combination/permutation of the four choice.
    But still bigger than it can be.
    For example: I used castor.xml library, but JBuilder include all castor include xml parser, html parser, xhtml parser, etc.
    As castor.xml --> castor.xxx(I cannot remember its name) --> castor.html-->...
    So JB7 maybe confused by the complex deps.
    So JB7 include ALL in my exe fiel.
    It may be impossible to create smaller .exe file with normal way.
    So anyone know any other way to create .exe file with the .jar file?
    As I can change the content of .jar, but cannot to .exe.
    thx for continous reply

  • How to create multiple output files using TrAX?

    I am new in this field. I'm trying to create multiple xml output files using TrAX. I have to parse a xml source file and output it to multiple xml files. My problem is that it only creates one output file and puts all the parsed data there. When i use saxon and run xsl and xml files, it works fine and creates multiple files...it has something to do with my java code...Any help is greatly appreciated.
    Here's my XSL file
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.1"
    <xsl:template match="data_order">
    <data_order>
         <xsl:copy-of select="contact_address"/>
         <xsl:copy-of select="shipping_address"/>
         <xsl:apply-templates select="ds"/>
    </data_order>
    </xsl:template>
    <xsl:template match="ds">
    <xsl:variable name="file" select="concat('order', position(),'.xml')"/>
    <order number="{position()}" href="{$file}"/>
    <xsl:document href="{$file}">
    <xsl:copy-of select="."/>     
    </xsl:document>
    </xsl:template>
    </xsl:stylesheet>
    xml source file
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE operation SYSTEM 'data_order.dtd'>
    <data_order job_id='00-00-000' origin='PM-ESIP'>
         <contact_address>
              <first_name>ssssss</first_name>
              <last_name>sssss></last_name>
              <phone>2323232</phone>
              <email>dfdfdsaf</email>
         </contact_address>
         <ds ds_short_name ='mif13tbs'>
              <output>
                   <media_format>neither</media_format>
                   <media_type>FTP</media_type>
                   <output_format>GIF</output_format>
              </output>
         </ds>
              <ds ds_short_name ='mif15tbs'>
              <output>
                   <media_format>neither</media_format>
                   <media_type>FTP</media_type>
                   <output_format>GIF</output_format>
              </output>
         </ds>
    </data_order>
    My java file
    import javax.xml.transform.*;
    import javax.xml.transform.stream.*;
    import java.io.*;
    public class FileTransform {
    public static void main(String[] args)
    throws Exception {
    File source = new File(args[0]);
    File style = new File(args[1]);
    File out = new File(args[2]);
    TransformerFactory factory = TransformerFactory.newInstance();
    Transformer t = factory.newTransformer(new StreamSource(style));
    t.transform(new StreamSource(source), new StreamResult(out));

    Saxon has specific extensions. In this case it is <xsl:document>. That looks like a standard XSLT element, but it actually isn't. The history behind it is this: There was a proposal to create a new version of XSLT, called XSLT 1.1. One of the new features of this version was to be this xsl:document element. The author of the Saxon product, Michael Kay, is one of the people on the W3C committee directing the evolution of XSLT, so he upgraded his product to implement XSLT 1.1. But then the committee decided to drop XSLT 1.1 as a recommendation. So that left Saxon in the strange position of implementing a non-existent extension to XSLT.
    The other outcome of this process was that XSLT (1.0) does not have a way of producing more than one output file from an input file. And so the short answer to your question is "Trax can't do that." However, XSLT 2.0 will be able to do that, although it is not yet a formal W3C recommendation, and when it does become one it will take a while before there are good implementations of it. (I predict that Saxon will be the first good implementation.)
    One of the problems with XML and XSLT is that what you knew a year ago is probably obsolete now, because of all the evolution going on. So being new in the field is not a disadvantage, unless you get stung by reading obsolete tutorials or magazine articles.

  • How to create an exe file using labview and arduino?

    I bought Arduino Mega 2560. I have installed Arduino IDE 1.7.3. I am using Windows 7 64bit version and Labview 2012. I started working after the compilation of LIFA_Base File with Arduino IDE and with labview.
    My application is: I have connected my arduino to my PC via USB for read input/output pins. I have to read all the time an analogue input from arduino and I have to draw the graphical representation of the input. I would like to know if I can create an exe file of this application. I would like to use the created exe file to another PC without labview installation. 
    Please help me to resolve the problem.
    Regards

    Yup you sure can.  With Application Builder, that is bundled with several LabVIEW packages you can make an EXE, and then make an installer that can include the LabVIEW Run-Time engine (free) and you'll also need the VISA run-time for talking to serial devices like your Arduino.
    Then you should be able to run that installer on any normal Windows PC and without the development environment be able to run your program.
    Note that currently Student, and Home versions of LabVIEW do not have the application builder since it is intended for learning, and hobbyist, not for distributions.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • How to create an ear file using ant script

    Could you please help me in creating ear file using runAssembler task

    how to call runAssembler from an <exec> task.
    <exec dir="${atg.dir}/home/bin/" vmlauncher="false" executable="/runAssembler" failonerror="yes">
                   <arg value="-overwrite" />
                   <arg value="myModule.ear}"/>
                   <arg line="-m ${modules}" />
              </exec>
    I'm getting below error
    [exec] The system cannot find the path specified.
    Edited by: 895077 on Nov 15, 2012 10:46 PM
    Edited by: 895077 on Nov 15, 2012 10:47 PM

  • How to create a tgz file?

    Hi,
    I am wondering
    1. how to create a tgz file using java.uitl.zip API? Is that possible?
    2. what is the difference between zip and tgz?
    I have to compress a single file that is over 4 GB.
    Thanks!

    RFC 1952 (that defines the gzip format) does not mention problems with huge files (> 4GB), but it is better to see if there is any problems with your favorite compressor (gzip and gunzip, or other file-compressing utility that implements RFC 1952).
    Gzip files have a field called ISIZE:
    ISIZE (Input SIZE)
    This contains the size of the original (uncompressed) input
    data modulo 2^32.
    Some compressors and decompressors think that ISIZE is the original size, not the 4 least significant bytes of original size, so they could have problems with such large files.

  • HOw to create a Batch file for java application and whats the use of this ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    First of all, you're OT.
    Second, you can find this everywhere in the net.
    If you got a manifest declaring main class (an classpath if needed), just create a file named whatever.bat, within same directory of jar file, containing:
    javaw -jar ./WhateverTheNameOfYourJarIs.jar %*By the way, assuming a Windows OS, you can just double click the jar file (no batch is needed).
    Otherwise use:
    javaw -cp listOfJarsAndDirectoriesSeparedBySemiColon country/company/application/package/className %*Where 'country/company/application/package/' just stands for a package path using '/' as separator instead of '.'
    Don't specify the .class extension.
    Javaw only works on Windows (you asked for batch, I assumed .BAT, no .sh), in Linux please use java.exe (path may be needed, Windows doesn't need it 'cause java's executables are copied to system32 folder in order to be always available, see PATH environment variable if you don't know what I'm talking about) and use ':' as classpath (cp) separator.
    The '%***' tail is there in order to pass all parameters, it only works on Windows, refer to your shell docs for other OSs (something like $* may work).
    This way you have a command you can call to launch your code (instead of opening NetBeans just to see your app working). You could schedule tasks on it or just call it in any command prompt (hope you know what it is 'cause there have been people in this very same forum with no clue about it, if not just hold the 'Windows button' and press 'R', then type 'cmd' and run it).
    Finally add dukes and give 'hem away.
    Bye.

  • I was given an assingment, but have no idea where to begin. The assingment is to create a text file using notepad with all of my digital inputs and some how make those imputs show up on my digital indicators on my control pannel

    I was given an assingment, but have no idea where to begin. The assingment is to create a text file using notepad with all of my digital inputs and some how make those imputs show up on my digital indicators on my control pannel.
    When it was explained to me it didn't sound to hard of a task, I have no LabVIEW experience and the tutortial sucks.

    StevenD: FYI, I did NOT give you the one star rating. I would never do that!
    StevenD wrote:
    Ow. Someone is grumpy today.
    Well, this is an assignment, so it is probably homework.
    Why else would anyone give HIM such an assigment, after all he has no LabVIEW experience and the tutorials are too hard for him?
    This would make no sense unless all of it was just covered in class!
    This is not a free homework service with instant gratification.
    OK! Let's do it step by step. I assume you already have a VI with the digital indicators.
    "...but have no idea where to begin".
    open notepad.
    decide on a format, possibly one line per indicator.
    type the document.
    close notepad.
    open LabVIEW.
    Open the existing VI with all the indicators.
    (are you still following?)
    look at the diagram.
    Who made the program?
    Does the code make sense so far?
    Is it a statemachine or just a bunch of crisscrossed wires?
    Where do you want to add the file read?
    How should the file be read (after pressing a read button, at the start of the program ,etc.)
    See how far you get!
    Message Edited by altenbach on 06-24-2008 11:23 AM
    LabVIEW Champion . Do more with less code and in less time .

  • How to create the log file in remote system using log4j.

    Hi,
    How to create the log file in remote system using log4j. please give me a sample code or related links.The below example i used for create the log file in remote system but it return the below exception.Is there any authandication parameter for accessing the remote path? Please help.
    public class Logging
    Logger log=null;
    FileAppender fileapp=null;
    public Logging(String classname)
    try
    log = Logger.getLogger(classname);
    String path=" [\\192.168.0.14\\c$\\LOG\\d9\\May_08_2008_log.txt|file://\\192.168.0.14\\c$\\LOG\\d9\\May_08_2008_log.txt]";
    fileapp = new FileAppender(new PatternLayout("%r [%t] %-5p %c %x - %m%n"),path, true);
    log.addAppender(fileapp);
    log.info("Logger initilized");
    }catch(Exception ex)
    ex.printStackTrace();
    java.io.FileNotFoundException: \\192.168.0.14\c$\LOG\d9\May_08_2008_log.txt (The network path was not found)
    at java.io.FileOutputStream.openAppend(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)
    at org.apache.log4j.FileAppender.<init>(FileAppender.java:109)
    at annwyn.logger.BioCapLogger.<init>(Logging.java:23)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Please help.
    Thanks in advance.
    Saravanan.K

    Sorry path is missing for the above request.
    path="\\192.168.0.14\c$\LOG\d9\May_08_2008_log.txt ";
    please help.
    Saravanan.K

Maybe you are looking for