Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

UnsupportedClassVersionError: Bad version number but JRE correct versi

We use JVM version 1.5 on our Sun Unix deployment server. The TIS client is set up to use JVM 1.5 (See images). The path to the JRE is the first in the PATH env var.
I have used Javap to determine the JRE version of a built job and that returns
minor version: 0
major version: 49
Which corresponds to version 1.5.
But when a job is built, deployed and run or distant run the following error occurs.
Exception in thread "main" java.lang.Error: java.lang.Error: java.lang.UnsupportedClassVersionError: Bad version number in .class file
We have a number of developers using TIS 4.2 and some have the problem and some don't even though the same settings are used by all.
Does anyone know what the problem could be and a solution?
Many thanks in advance Dave
Labels (3)
11 Replies
Anonymous
Not applicable
Author

Hi Dave
Have you tried the solution at Comment #9?
Regards,
Pedro
Anonymous
Not applicable
Author

Hi Pedro
I tried this but with the same results.
I have found a temporary workaround. Rather than uninstall Java 6 if I change the current version in the registry from 1.6 to 1.5 and restart the client then it works. This breaks Java 6 though until the registry is changed back to 1.6.
Dave