Hi, I want to generate classes using the JiBX tool. The classes generated should extend a base class. My base class is SPDXClassDecorator: ```
*package org.spdx.jibx;import org.eclipse.jdt.core.dom.FieldDeclaration;import org.eclipse.jdt.core.dom.MethodDeclaration;import org.jibx.binding.model.ElementBase;import org.jibx.schema.codegen.IClassHolder;import org.jibx.schema.codegen.extend.ClassDecorator;public class SPDXClassDecorator implements ClassDecorator { public static void main(String[] args) {System.out.println("hi"); } public void start(IClassHolder holder) { } public void valueAdded(String basename, boolean collect, String type, FieldDeclaration field, MethodDeclaration getmeth, MethodDeclaration setmeth, String descript, IClassHolder holder) { } public void finish(ElementBase binding, IClassHolder holder) { }}* ``` I created its .jar and added it to class path. Then a customization.xml file has been created which which uses this class: ``` *<schema prefer-inline="true" show-schema="false" import-docs="true" use-inner="true" > <class-decorator class="org.spdx.jibx.SPDXClassDecorator"/></schema>* ``` But I am getting the error when I run it . Error is: ``` * Generating Java sources in src/main/source-code from schemas available in src/main/config...Error: Unable to find class org.spdx.jibx.SPDXClassDecorator in classpath for "class-decorator" element at (line 2, col 68)ERROR codegen.CodeGenCommandLine - Unable to find class org.spdx.jibx.SPDXClassDecorator in classpath for "class-decorator" element* ``` May somebody please help to rectify this error. Thanks, Anisha
_______________________________________________ jibx-devs mailing list jibx-devs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-devs