General
This error also shows up if the JRE is too old (older than JRE 1.5). In this case, XJC fails to load the LegStar classes which needs JRE 1.5 at least.
/* Populate your JAXB object in getMyClass */ MyClass myClass = getMyClass(); /* Create an instance of the binding transformers */ MyClassTransformers transformers = new MyClassTransformers(); /* Convert Java to mainframe bytes */ byte[] hostBytes = transformers.toHost(request, hostCharset);
/* Create an instance of the binding transformers */ MyClassTransformers transformers = new MyClassTransformers(); /* Convert Java to mainframe bytes */ MyClass myClass = transformers.toJava(hostBytes, hostCharset);