Forums Register Login

servlets in myeclipse

+Pie Number of slices to send: Send
I wrote a small EE application using MyEclipse, and when it runs it throws a runtime exception saying UnsupportedClassVersionError for the Servlets used in the application.
So, what should I do to prevent that and to make it work??
+Pie Number of slices to send: Send
UnsupportedClassVersionError is thrown when the major/minor version of the .class file cannot be supported by the JVM runtime.

In practical, this means you compiled your classes higher version of Java and trying run in lower version of it.

Try to findout which version of Java the MyEclipse is using to compile the Servlet and then you run the Servlet container in same version.

Other option is change the MyEclipse java library version to match with the Servlet Runtime container one.
The happiness of your life depends upon the quality of your thoughts -Marcus Aurelius ... think about this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1333 times.
Similar Threads
Hibernate Quick Install?
Plugin Support for J2ee 1.2 for Eclipse
How to find out Memory Leakage of a Web Based Application in MyEclipse
Eclipse and servlets - which plug in?
IDE for BCD5.0
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 08:13:32.