I recently ran into this on another project. It comes from compiling the code on a
later JDK than the one your running it on. I was compiling on JDK5 and attempting to
run in a Tomcat instance running JDK 1.4.2 when I got this error. If you compile
HtmlUnit using ant (which is unsupported but I use it) it will build for JDK 1.3
compatibility. If someone knows how to set the "source" and "target" attributes of
all the javac tasks under maven then we could make that change as well.
Brad C
--- "Dantes, Ed" <Ed....@gd...> wrote:
> Hello,
> Im getting a Java.lang.Unsupported ClassVersionError
> com/gargoylesoftware/htmlunit/WebClient(unsupported major.minor version
> 47.0) when running my junit test, it comes up right away. I am using
> the most recent CVS update availabe online and inserted this in my
> classpath. Has anyone come across this error and if so, how did you
> resolve?
>
> Thanks Again
> Ed
>
|