Open lucashmsilva opened 6 years ago
Hi!
It works for me just fine. Your example is not a proper String array. Use it like this:
String[] fdtParams = { "-c", "localhost", "-pull", "-md5", "-p", "9999" ... };
try {
FDT.main(fdtParams);
} catch (Exception e) {
e.printStackTrace();
}
Hi, is there any way I can use the FDT classes through a Java program without having to use a command line interface to invoke the JAR file?
I tried this:
public class Main {
But, no matter which command arg I pass, the default server is started:
2018-09-02 21:05:25 INFO lia.util.net.copy.FDT main
FDT [ 0.26.1-201708081830 ] STARTED ...