Hi. CodeGen depends on some eclipse jars that are packaged in the distribution. Do you have these on your classpath?

On 21/12/10 08:30, Kyksa, Clint wrote:
Hello. I am trying to figure out how to change our existing infrastructure using XMLBeans to Jibx and have encountered a setback when trying (what looks like) a simple/beginners case. I am trying to use Ant using code along these lines:
<targetname="codegen"depends="check-runtime">
<echo message="Running code generation from schema"/>
<delete quiet="true" dir="gen"/>
<mkdir dir="gen"/>
<java classname="org.jibx.schema.codegen.CodeGen" fork="yes" classpathref="classpath" failonerror="true">
<arg value="-t"/>
<arg value="gen/src"/>
<arg value="-w"/>
<arg value="[.xsd file]"/>
</java>
</target>
Console output:
Loaded and validated 1 specified schema(s) and 8 referenced schema(s)
[_java_] Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/jdt/core/dom/Expression [_java_] at org.jibx.schema.codegen.PackageHolder.addClass(_PackageHolder.java:150_) [_java_] at org.jibx.schema.codegen.CodeGen.inlineReferences(_CodeGen.java:1282_) [_java_] at org.jibx.schema.codegen.CodeGen.generate(_CodeGen.java:1486_) I was wondering if someone could shed some light on this issue as I don't really know where to go from here.


------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d


_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to