Resolving Class Version Problems [message #159912] |
Thu, 09 February 2006 12:50  |
Eclipse User |
|
|
|
I was following the WTP-Tutorial-1 excersise and when I tride to invoke
the servlet via Sun Application Server 8.2 I got
java.lang.UnsupportedClassVersionError:
org/eclipse/wtp/tutorial/SnoopServlet (Unsupported major.minor version
49.0)
Presumably the server is telling me that it's j2ee runtime is unable to
run SnoopServlet because the base class, HttpServlet, is version 49.0.
However, the project is including jars from the appserver/lib directory,
so how can there be a version mismatch.
Does anyone have any idea on how I go about resolving this? Any help would
be greatly appreciated.
|
|
|
|
Re: Resolving Class Version Problems [message #160013 is a reply to message #160005] |
Thu, 09 February 2006 19:58  |
Eclipse User |
|
|
|
Ahh, I forgot to update my asenv.conf file to point to the latest JRE.
Thanks
mitchell ackerman wrote:
> you are probably trying to run code compiled with 5.0 to 5.0
> compatability under an earlier jre, such as 1.4.
> Eric Kolotyluk wrote:
>> I was following the WTP-Tutorial-1 excersise and when I tride to invoke
>> the servlet via Sun Application Server 8.2 I got
>>
>> java.lang.UnsupportedClassVersionError:
>> org/eclipse/wtp/tutorial/SnoopServlet (Unsupported major.minor version
>> 49.0)
>>
>> Presumably the server is telling me that it's j2ee runtime is unable to
>> run SnoopServlet because the base class, HttpServlet, is version 49.0.
>> However, the project is including jars from the appserver/lib directory,
>> so how can there be a version mismatch.
>>
>> Does anyone have any idea on how I go about resolving this? Any help
>> would be greatly appreciated.
>>
|
|
|
Powered by
FUDForum. Page generated in 0.03085 seconds