I've updated Tomcat to Java 7, the JDK to version 7, and the run-time to version 7.
---------------------
Yet, when I run the application's Servlet, I get this error:
type Exception report
message net/test/servlets/MyServlet : Unsupported major.minor version 51.0 (unable to load class net.test.servlets.MyServlet)
description The server encountered an internal error that prevented it from fulfilling this request.
exception
java.lang.UnsupportedClassVersionError: net/test/servlets/MyServlet : Unsupported major.minor version 51.0
-------------------
(Tomcat log has no reported problems.)
I noticed that in "/System/Library/Frameworks/JavaVM.framework", under CurrentVersion it still says 1.6 so that could be the problem, but I don't know how to change that.
I was thinking that installing the latest Java 7 to
"/Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk" would update the current version.
How do you update the current version "setting" on a Mac in /System/Library/Frameworks/JavaVM.framework (if you need to, that is)? Going into System Preferences already says it's 1.7.0.
--------------------
Within the IDE everything is set to Java 7 so I'm really at wits end trying to nail this one down. If I change the Java version to Java 6, then the Servlet loads/works.
Look forward to any suggestions.
(Wasn't sure exactly where to post this since it was part Mac config and part programming.)
Thanks in advance.
- m
---------------------
Yet, when I run the application's Servlet, I get this error:
type Exception report
message net/test/servlets/MyServlet : Unsupported major.minor version 51.0 (unable to load class net.test.servlets.MyServlet)
description The server encountered an internal error that prevented it from fulfilling this request.
exception
java.lang.UnsupportedClassVersionError: net/test/servlets/MyServlet : Unsupported major.minor version 51.0
-------------------
(Tomcat log has no reported problems.)
I noticed that in "/System/Library/Frameworks/JavaVM.framework", under CurrentVersion it still says 1.6 so that could be the problem, but I don't know how to change that.
I was thinking that installing the latest Java 7 to
"/Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk" would update the current version.
How do you update the current version "setting" on a Mac in /System/Library/Frameworks/JavaVM.framework (if you need to, that is)? Going into System Preferences already says it's 1.7.0.
--------------------
Within the IDE everything is set to Java 7 so I'm really at wits end trying to nail this one down. If I change the Java version to Java 6, then the Servlet loads/works.
Look forward to any suggestions.
(Wasn't sure exactly where to post this since it was part Mac config and part programming.)
Thanks in advance.
- m