converted the .class file of java into jarfile and saved in lib. how to import in soapui and access
*****************************java program***********************8888
package com;
public class Method_wi_Para
{
int a = 10;
int b = 20;
/*void sum(int x, int y )//case3
{
System.out.println(x + y);
}*/
int Multiply(int x, int y )// case 4// passing parameters and returning value
{
return(x * y);
}
public static void main(String[] args)
{
Method_wi_Para Result = new Method_wi_Para();
// M.sum(200,300);
System.out.println(Result.Multiply(20,30));
}
}
************************SOAPUI GROOVY SCRIPT***********************
import com.Method_wi_Para
properties prop = new properties()
def path = "C:\Program Files\SmartBear\SoapUI-5.7.0\lib"
FileInputStream f = new FileInputStream(path)
prop.load(f)
def a
def b
Method_wi_Para obj = new Method_wi_Para
log.info obj.Multiply( 10,20) // case 4// passing parameters and returning value