Application Deployment WebLogic Error Unsupported Major.minor version 51.0 resolution process

Source: Internet
Author: User
Tags unsupported

Application Deployment WebLogic Error Unsupported Major.minor version 51.0 resolution process

?

?

1. Deployment hint Error: Unsupported Major.minor version 51.0

The 1.1 error phenomenon is as follows:

1.2 Cause Analysis

Similar errors are in the Java version of the problem, that is, the JDK version is too low, just choose the corresponding JDK version compiled.
48,49,50, 51, 52 are the version numbers inside the Java compiler:
Unsupported Major.minor version 52.0 corresponds to JDK1.8 (JRE1.8)

Unsupported Major.minor version 51.0 corresponds to JDK1.7 (JRE1.7)

Unsupported Major.minor version 50.0 corresponds to JDK1.6 (JRE1.6)
Unsupported Major.minor version 49.0 corresponds to JDK1.5 (JRE1.5)
Unsupported Major.minor version 48.0 corresponds to JDK1.4 (JRE1.4)

The check found that the JDK I used in Eclipse was 1.7, and WebLogic used a JDK of 1.6 that did not match, considering the difficulty of reinstalling the newer version of WebLogic, I chose to try to modify the JDK in Eclipse to version 1.6, as follows:

?

1.3 Resolution Process

1.3.1 will be modified to JDK1.6 path as shown in Preferences, java–installed jres, window, in Eclipse

?

1.3.2 After modifying this console error,Java compiler level does not match the version of the installed Java project facet

Cause Analysis: This error occurs because of inconsistent compilation levels set by the JDK version and the project

Solution: Compile level changed from 1.7 to 1.6

Resolution process:

1.3.2.1 Modifying the Java compilation level

Select Window, Preferences, Java->compiler

1.3.2.2 modifying the compilation level of a project

Right-click on the item and select Properties->java compiler set as shown

1.3.2.3 Modifying the Java version of project Facets

Right-click on the item and select Properties->project facets set as shown

?

1.3.2.4 Modify build path to rely on LIBRARIES,JRE of 1.6

1.3.3 when using MAVEN to package, error maven compile times error: Javac: Invalid target version: 1.7

Cause Analysis: The version of the JDK was specified because MAVEN was packaged

Solution: change The version number in the source and target tags in the pom.xml to 1.6 , as shown

To this problem perfect solution, the process is very tortuous, the result is perfect, finish that moment of mood you understand.

Application Deployment WebLogic Error Unsupported Major.minor version 51.0 resolution process

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.