Activate License Java-critical error during deployment

2
Before deployment no errors reported. During deployment message: system/actions/ActivateLicenseJava : Unsupported major.minor version 51.0. Double checked correct location JVM: C:\Program Files\Java\jdk1.6.0_27. Also found this problem earlier reported but never answered: https://community.mendix.com/questions/3483/Error-Compilation-of-Java-actions-failed. Please can someone help me out. Stack trace: Request action: start Message: JVM Error! Cause: system/actions/ActivateLicenseJava : Unsupported major.minor version 51.0 Stack trace: com.mendix.m2ee.api.AdminException: JVM Error! at com.mendix.m2ee.server.handler.HttpAdminHandler.handle(HttpAdminHandler.java:144) Caused by: java.lang.UnsupportedClassVersionError: system/actions/ActivateLicenseJava : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at fy.<init>(SourceFile:78) at com.mendix.core.MxRuntime.z(SourceFile:269) at com.mendix.core.MxRuntime.y(SourceFile:235) at com.mendix.core.MxRuntime.a(SourceFile:217) at com.mendix.core.MxRuntime.b(SourceFile:170) at fH.a(SourceFile:49) at fG.execute(SourceFile:26) at com.mendix.m2ee.server.handler.HttpAdminHandler.handle(HttpAdminHandler.java:121) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) at org.eclipse.jetty.server.Server.handle(Server.java:334) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559) at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:992) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:550) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:203) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) at java.lang.Thread.run(Thread.java:662)
asked
5 answers
0

Unsupported major.minor version may refer to the JDK and JRE Java version on your machine. Should be 1.6u27 max (there are more recent 1.6 and 1.7, so you may have to manually download it).

answered
2

The modeler only recompiles .java files if it detects that those files have changed. If you open java files in a different editor (such as Eclipse) and compile them there (version 51.0 refers to Java 7), and THEN start it in the modeler without cleaning (and thus recompiling), you will get this error.

You should generally be able to fix issues like this by cleaning and redeploying from the modeler.

answered
0

Thanks for the comments! Unfortunately, the problem still occur. I have both versions (1.6 and 1.7) installed but the error remains visible when deploying the project.

answered
0

Did you compile your Java code out of Mendix, eg in Eclipse? If so, are you sure you use version 1.6u27 there?

answered
0

Version 1.6u27x86 was installed and that was the culprit. Meanwhile the problem overtakes. Right information for a similar error (JDK and JRE Java) view

http://www.oracle.com/technetwork/java/archive-139210.html

answered