Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12603 Discussions

elf2hex: Unsupported major.minor version 52.0

Altera_Forum
Honored Contributor II
1,283 Views

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 java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown 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
Altera_Forum
Honored Contributor II
583 Views

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.

0 Kudos
Reply