0% found this document useful (0 votes)
12 views2 pages

Quickstart

Uploaded by

zaytsevas81
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views2 pages

Quickstart

Uploaded by

zaytsevas81
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

DataDirect XML Converters® for Java™ Release 6.

2
Quick Start
Copyright (c) 2013 Progress Software Corporation and/or its subsidiaries or
affilates. All rights reserved.

This Quick Start contains information on getting started with


DataDirect XML Converters. For information about:

■ What’s new in the current release, refer to the README

■ DataDirect XML Converters features, refer to the DataDirect


XML Converters for Java User's Guide and Reference

■ Product requirements, refer to the DataDirect XML


Converters for Java Installation Guide

■ The example application, [Link], which is installed in the


XML Converters /examples directory, see the comments in the
[Link] file.

Contents
This document contains the following sections:

■ “Setting the CLASSPATH”


■ “Sample XML Converters Application”

Setting the CLASSPATH


The DataDirect XML Converters jar file, [Link], must
be included in your CLASSPATH. The CLASSPATH is the search
string your Java Virtual Machine (JVM) uses to locate DataDirect
XML Converters on your computer. If the DataDirect XML
Converters jar file is not included in your CLASSPATH, you receive
2 DataDirect XML Converters® for Java™ Release 6.2 Quick Start

a ClassNotFoundException exception when trying to use


DataDirect XML Converters.

Windows Example
set CLASSPATH=.;c:\ddxmlconverters\lib\[Link]

UNIX/Linux Example
CLASSPATH=.:/home/user1/ddxmlconverters/lib/[Link]

Sample XML Converters Application


This simple application converts an EDI file of the X12 dialect
(myEdi.x12) to an XML file with the name [Link].

import [Link].*;
import [Link].*;

public class ConverterOne {


public static void main(String args[]) throws Throwable {

[Link](args[0] + " --> " + args[1]);


Converter toXML = new ConverterFactory().newConvertToXML("converter:EDI");
[Link](new StreamSource(args[0]), new StreamResult(args[1]));
}
}

To invoke this program, type the following command:

javac [Link]
java ConverterOne myEdi.x12 [Link]

See [Link] in the \examples directory for additional examples


of DataDirect XML Converters applications.

End of Quick Start

You might also like