Tuesday, March 08, 2011

DSC Deployment Issue

When using the LiveCycle Component tool as I've blogged about in the past, sometimes you'll run into class issues when deploying your dsc to either a LiveCycle 8.2 or ES2 server that looks like the following:
Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file

What you can do to rectify this is to specify the version that your javac task is targeting like so:

<target name="compile" depends="prepare">
<javac destdir="${classes.dir}" classpathref="class.path" debug="on" deprecation="on" optimize="off" target="1.5">
<src path="${src.dir}"/>
</javac>
</target>

No comments:

Post a Comment