The import statement at the top is where I think your problem is. You will need to give your code a namespace then import the package with your class. For example:
Java code
package mylib; //declare the namespace for myClass
public class MyClass{
private static String an = "!";
public static String clean(String s){
return s + an;
}
}
Screen-scraper script:
import mylib.*; //import all the classes in the mylib namespace
The import statement at the
The import statement at the top is where I think your problem is. You will need to give your code a namespace then import the package with your class. For example:
Java code
public class MyClass{
private static String an = "!";
public static String clean(String s){
return s + an;
}
}
Screen-scraper script:
String s = "hahahah";
s = MyClass.clean(s);
session.log (s);
Did you restart
Did you restart screen-scraper after you saved the jar to lib/ext?
Restart after saving jar file
Yes, I did.