Black
Black

Reputation: 5367

AccessType issues using XJC Ant task for JAXB

While generating classes using XJC (using the Ant com.sun.tools.xjc.XJCTask task from Sun) I was getting the mentioned here: JAXB Binding Exception

But now that I've omitted the jaxb-api jar, I get: java.lang.NoClassDefFoundError: javax/xml/bind/annotation/AccessType

Any advice how to fix the classpath for my XJC task?

Upvotes: 2

Views: 494

Answers (1)

rbhawsar
rbhawsar

Reputation: 813

As per the given information looks like you are using jdk1.6 and you are not using the xjc.exe task under, java install dir/bin directory.

you might have configured the xjc task through other jars. please use the xjc/wsgen/wsimport tasks which comes with jdk1.6

Upvotes: 2

Related Questions