Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12419 Discussions

elf2hex: Unsupported major.minor version 52.0

Honored Contributor II

Seems Quartus is having trouble with using its own JRE or something. After upgrading to 14.1.1 I get: 



$ elf2hex Exception in thread "main" java.lang.UnsupportedClassVersionError: com/altera/elf2hex/Elf2hex : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at Source) at Source) at$000(Unknown Source) at$ Source) at Method) at Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) Could not find the main class: com.altera.elf2hex.Elf2hex. Program will exit.
0 Kudos
1 Reply
Honored Contributor II

This appears to be due to QUARTUS_ROOT pointing at the older installation. Seems like there was a Java 7/8 related problem. Setting QUARTUS_ROOT correctly resolved the issue.