Test of Generation of java Binding Classes from a simple XSD file
=================================================================



Date:    22/06/2007 @11:00 AM
Project: TestProject.prj
XSD:     purchaseOrder.xsd    ( copied from [1] )


Java systems installed (independent of Stylus Studio)
----------------------

Version               Install Date         Folder
---------------       -----------------    ---------------------------------------
JRE 1.5.0_03          10/11/2005           C:\Program Files\Java\jre1.5.0_03\ 
JRE 1.5.0_08          09/05/2007           C:\Program Files\Java\jre1.5.0_08\
JRE 1.4.2_06          22/06/2007           C:\Program Files\Java\j2re1.4.2_06\
JDK 1.4.2_06          22/06/2007           C:\j2sdk1.4.2_06\


Stylus Studio installation
--------------------------
Stylus Studio 2007 XML Enterprise Suite Release 2

Version (Build)       Install Date             
---------------       -----------------   
894i                  12/06/2007


[1] C:\Program Files\Stylus Studio 2007 XML Enterprise Suite Release 2\examples\simpleMappings\



Method
======

1.  Created a project, added XSD file
2.  Installed Java SDK v1.4.2_06
3.  Validated the XSD
4.  Generated the Java Binding Classes (success)
    Note default options (no Custon JAXB options)
      - See screenshot: purchaseOrder_GenerateJavaBC.jpg
5.  Allowed all generated files to be added to the project
6.  Compiled the Java code (from Main.java) - 1 ERROR
7.  Output: see below



Output
======
Generate2.txt   (successful)
Compile2.txt    (failed)

Compilation Error
=================
Main.java
c:\Validation of XML with XSD\StylusStudio\purchaseOrder\Main.java:8: cannot access java.io.FileInputStream
bad class file: C:\Program Files\Java\jre1.5.0_08\lib\rt.jar(java/io/FileInputStream.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
import java.io.FileInputStream;
               ^
1 error

Explanation
===========

mis-match in Java versions


Solution
========

*********************************
**         NOT SURE            **
**                             **
**   Remove JDK 1.4.2_06       **
**                             **
**  Install JDK 1.5.0          **
**                             **
**                             **
*********************************
