Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7858449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T21:26:36+00:00 2026-06-02T21:26:36+00:00

I have a problem with running java code from groovy script (groovy script is

  • 0

I have a problem with running java code from groovy script (groovy script is a part of SoapUI test suite)
i create simple script:

import myjar.jar
new TopClass().sayHello()

the code of TopClass:

public class TopClass {
    public void sayHello (){
        System.out.println("Hello");
    }   
}

I put myjar.jar into both soapui-pro-2.5\lib and soapui-pro-2.5\bin\ext folders.
But running script I get:

org.codehaus.groovy.control.MultipleCompilationErrorsException:
startup failed, Script1.groovy: 2: unable to resolve class myjar.jar @
line 2, column 1.org.codehaus.groovy.syntax.SyntaxException: unable to
resolve class myjar.jar @ line 2, column 1. at
org.codehaus.groovy.ast.ClassCodeVisitorSupport.addError(ClassCodeVisitorSupport.java:113)
at
org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:970)
at
org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:141)
at
org.codehaus.groovy.control.CompilationUnit$5.call(CompilationUnit.java:527)
at
org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:772)
at
org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:438)
at
groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:281)
at groovy.lang.GroovyShell.parseClass(GroovyShell.java:572) at
groovy.lang.GroovyShell.parse(GroovyShell.java:584) at
groovy.lang.GroovyShell.parse(GroovyShell.java:564) at
groovy.lang.GroovyShell.parse(GroovyShell.java:603) at

Please help me to find what I’m doing wrong

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T21:26:37+00:00Added an answer on June 2, 2026 at 9:26 pm

    Putting the jar under soapui-pro-2.5\bin\ext is all you need for the classes to be found (although restarting SoapUI won’t hurt).

    However – you should check that the error you get is related to your jar. Is com.my.research available within myjar.jar? If no – just add it.

    If yes, add more detailed information to your post.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I have the following code: import java.lang.InterruptedException; import javax.swing.SwingWorker; public class Test {
I have a problem with running a Java app (B) from my app (A).
I'm a beginner with jdbc ... I have a problem running this code :
I have a problem with running lame encoder via shell_exec script in php. And
I have a problem in running a new project which I downloaded from github.
I have a strange problem. Using wsimport I generated als JAX-WS Code from a
I have a problem with a server, written in Java, running on Tomcat, serving
I currently have Java ME SDK 3.0.5 installed and am running a MIDLET from
I have a Java webapp, running in Tomcat 6, that loads RSS feeds from
I have a problem with running jquery: <!DOCTYPE html> <html> <head> <meta http-equiv=Content-Type content=text/html;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.