Forum Discussion
meldoobs
12 years agoOccasional Contributor
Hi Manne,
Someone has given me a script that is supposed to move files to an SFTP server but when i try to run it, i get this error....
Wed Oct 30 09:11:25 EST 2013:ERROR:java.lang.NoClassDefFoundError: org/apache/ivy/core/settings/IvySettings. This occurs on line 5.
This is the start of the script....
1 #!/usr/bin/env groovy
2 @GrabConfig(systemClassLoader=true)
3 import groovy.grape.Grape;
4
5 Grape.grab(group:"ant", module:"ant-jsch", version:"1.6.5")
6 Grape.grab(group:"com.jcraft", module:"jsch", version:"0.1.42", classLoader:this.class.classLoader.rootLoader)7
7 def ant = new AntBuilder();
8 def InputLocUserName = context.expand( '${#Project#IN_SMGSDKSFTPInputLocUserName}' )
9 def InputLocPath = context.expand( '${#Project#IN_SMGSDKSFTPInputLocPath}' )
10 def InputLocPassword = context.expand( '${#Project#IN_SMGSDKSFTPInputLocPassword}' )
11 def sb= new StringBuffer(InputLocPath)
I was also told to place these .jar files in the "C:\Program Files\SmartBear\SoapUI-Pro-4.6.1\bin\ext"...
ant-1.7.0.jar
ant-jsch-1.6.5.jar
ant-launcher-1.7.0.jar
ivy-2.0.0-rc2.jar
jsch-0.1.42.jar
The ivy jar file seems to have the IvySettings.class file under org\apache\ivy\core\settings.
Do you know what i'm doing wrong?
Someone has given me a script that is supposed to move files to an SFTP server but when i try to run it, i get this error....
Wed Oct 30 09:11:25 EST 2013:ERROR:java.lang.NoClassDefFoundError: org/apache/ivy/core/settings/IvySettings. This occurs on line 5.
This is the start of the script....
1 #!/usr/bin/env groovy
2 @GrabConfig(systemClassLoader=true)
3 import groovy.grape.Grape;
4
5 Grape.grab(group:"ant", module:"ant-jsch", version:"1.6.5")
6 Grape.grab(group:"com.jcraft", module:"jsch", version:"0.1.42", classLoader:this.class.classLoader.rootLoader)7
7 def ant = new AntBuilder();
8 def InputLocUserName = context.expand( '${#Project#IN_SMGSDKSFTPInputLocUserName}' )
9 def InputLocPath = context.expand( '${#Project#IN_SMGSDKSFTPInputLocPath}' )
10 def InputLocPassword = context.expand( '${#Project#IN_SMGSDKSFTPInputLocPassword}' )
11 def sb= new StringBuffer(InputLocPath)
I was also told to place these .jar files in the "C:\Program Files\SmartBear\SoapUI-Pro-4.6.1\bin\ext"...
ant-1.7.0.jar
ant-jsch-1.6.5.jar
ant-launcher-1.7.0.jar
ivy-2.0.0-rc2.jar
jsch-0.1.42.jar
The ivy jar file seems to have the IvySettings.class file under org\apache\ivy\core\settings.
Do you know what i'm doing wrong?