Error on Reading jar files in SoapUI | Selenium Forum
M
Posted on 23/03/2016
hi Ashish

Sorry to ask Soapui questions in Selenium forum.

I am getting this error on running soapui project

<java.lang.UnsupportedClassVersionError: com/soapuitutorial/property/PropertyReading : Unsupported major.minor version 52.0>

I understand from this article http://javarevisited.blogspot.com.au/2011/07/javalangunsupportedclassversionerror.html that it happens when [b:582fjys6]higher JDK version is used to compile the source file and a lower JDK version is used to run the program[/b:582fjys6]

How do I check the JDK version of Soapui on which I am running. I am using Java 1.8

And How to solve this problem?

Regards

Here is the code in SoapUI

import com.soapuitutorial.property.PropertyReading

def path = "C://Users//User//Desktop//Soapui//application.properties"
PropertyReading prop = new PropertyReading(path)
log.info prop.getProperty("name")

Also attaching the JAR file imported

M
Replied on 25/03/2016

Please uninstall java completely
Install java 7


M
Replied on 28/03/2016

hi Ashish

I have installed Java 7 and created a jar using that.

I am still having the same problem.

Here is the class File I get when I compile with Java 7

Also attaching the Jar file generated.

Can you please check on your end if the Jar file works on your SoauUI version.

Here is the code to use this Jar file.

import com.soapuitutorial.property.PropertyReading
def path = "C://Users//User//Desktop//Soapui//application.properties"
PropertyReading prop = new PropertyReading(path) log.info prop.getProperty("name")

Thanks for your help.

Regards

Ritesh