java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at ...
When attempting to start Nexus, I received a startup error:
"The nexus-webapp service was launched, but failed to start."
The root cause:
This server (which also performs the CM builds) was reconfigured so that each "build engineer" would define the JAVA_HOME (and define JAVA_HOME in their path) in their own session contexts so they would have the ability to define the specific Java version needed for thier build requirements. Previously, the JAVA_HOME environment variable was defined as a System Variable. Becuse the JAVA_HOME System variable was removed, it caused Nexus to fail any futire restarts.