I\'m trying to implement JavaLibCore
to use Java method in robotframework. I followed this tutorial : https://blog.codecentric.de/en/2016/01/robot-framework-tutoria
Please find my solution below:
public class KeywordRemoteLibrary extends AnnotationLibrary {
static List<String> includePatterns = new ArrayList<String>() {{
add("keywords/*.class");
}};
public KeywordRemoteLibrary() {
super(includePatterns);
}
public static void main(String[] args) {
RemoteServer server = new RemoteServer("127.0.0.1", 8270);
server.putLibrary("/RPC2", new KeywordRemoteLibrary());
try {
server.start();
}
catch(Exception e) {
e.printStackTrace();
}
}
}
Try with this code:
RemoteServer.configureLogging();
RemoteServer server = new RemoteServer();
server.putLibrary("/keywords", KeywordRemoteLibrary.class);
server.setPort(8271);
server.start();