Forum Discussion

sodonnell's avatar
sodonnell
Occasional Contributor
9 years ago

Using custom jar in groovy script

Hi all,

 

I am trying to use acustom jar in a groovy test script but I get the error

 

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script4.groovy: 1: unable to resolve class xxx.yyyy.util.Util @ line 1

 

when my script calls

import xxx.yyyy.util.Util;

 

I have added the relevant jar to:

C:\Program Files\SmartBear\ReadyAPI-1.4.1\jre\lib

C:\Program Files\SmartBear\ReadyAPI-1.4.1\bin\ext

Restarted ReadyAPI

 

What am I missing or doing wrong?

 

Any help much appreciated

 

Thanks

  • Thanks... the issue was with my import!! :smileyembarrassed:

  • nmrao's avatar
    nmrao
    Champion Level 3
    It is difficult to say unless the script is provided? As the error states, there are compilation errors.
    • sodonnell's avatar
      sodonnell
      Occasional Contributor

      Thanks... the issue was with my import!! :smileyembarrassed:

      • MarcovS's avatar
        MarcovS
        Contributor
        C:\Program Files\SmartBear\ReadyAPI-1.4.1\bin\ext

        Path should be

        C:\Program Files\SmartBear\ReadyAPI-1.4.1\lib\ext