Forum Discussion
santanu33
7 years agoNew Contributor
JHunt Thanks for the response, Yes they are frustrated. I am going to this thread. and change my code to this.
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ) def classpathHacker = new com.eviware.soapui.support.ClasspathHacker () log.info "utils=" + groovyUtils mystring = "file://H://Baz.jar" com.eviware.soapui.support.ClasspathHacker.addURL( new URL(mystring) ) def cls = new bar() log.info cls
Still not resolved. Any help.
My super simple Jar source code
public class bar { public static void main(String[] args) { add(); } public static void add(){ String path = "H:" + File.separator + "Groovy" + File.separator + "hi.txt"; File f = new File(path); f.getParentFile().mkdirs(); try { f.createNewFile(); } catch (IOException e) { e.printStackTrace(); } } }
Related Content
- 7 months ago
Recent Discussions
- 15 years ago