Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to solve the version 52.0 error of eclipse

Shulou Source: shulou.com Published: 2022-05-31 17:20:33 09月21日 Update

This article mainly explains "how to solve the version 52.0 error of eclipse". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to solve the version 52.0 error of eclipse.

The submitting job program appears:

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/itheima/hadoop/drives/TopKURLDriver: Unsupported major.minor version 52.0

Analysis: when checking the error, it is found that version 52.0 appears at the end of the error, and the version is incompatible. Because the JDK compilation environment of eclipse is 1.8 and the running environment of Hadoop is JDK1.7, there are errors caused by the high version of the program running in the low version environment.

The solution is as follows:

1. Open eclipse-"Preferences -" Java-"Compiler -" to modify the compilation environment to 1.7, and recompile

2. In spite of this, there will always be headaches in eclipse, and the compilation environment of the project will not be changed immediately, so compile according to the original version when compiling, and re-check the compilation environment of the project: right-click the project-"Properties -" Java Compiler, modify it to 1.7, and recompile OK.

At this point, I believe you have a deeper understanding of "how to solve the version 52.0 error of eclipse". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Compile error environment version project content method program problem study check run headache practical deeper nevertheless interest practicality reality tail Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Docker NVidia Huawei Shulou Technology