Forum Discussion

tsjakamaka's avatar
tsjakamaka
Occasional Contributor
5 years ago

Using external JAR files (in free SOAPUI) outside the default (lib) folder

All,

 

I have a little problem.  I want to use the JXL.jar (to read data from XLS file).  Normally you should add downloaded jar files in the "bin"-folder.  But I don't have permission to copy paste that file in this folder.  (Reason: I don't have admin rights)

 

Is there another way to use this file from another location in my SOAPUI project?

 

I hope somebody can solve this issue.  😉 

 

Thanks in advance!

 

Regards,

Tsjak

  • I have found the solution.

     

    Problem can be solved by adding this line in groovy script.  (as first line)

     

    com.eviware.soapui.support.ClasspathHacker.addURL(new URL("file:\\C:\\jxl.jar"))

     

    import jxl.*
    import jxl.write.*

  • tsjakamaka's avatar
    tsjakamaka
    Occasional Contributor

    I have found the solution.

     

    Problem can be solved by adding this line in groovy script.  (as first line)

     

    com.eviware.soapui.support.ClasspathHacker.addURL(new URL("file:\\C:\\jxl.jar"))

     

    import jxl.*
    import jxl.write.*