Hello,
I made a program (Eclipse, Linux) which execute a command (shell). It works fine as it is not in a JAR:
Code:
Shell s = new Shell();
String res = "";
try {
/ / Execute the command
res = s.command(". / plugin / check_disk-c ...").consumeAsString();
}catch...
Shell is a package found on a good site. It allows one to run Linux commands.
But my problem: I put it all into a JAR, including the plugins folder containing the executable that call the command line. But it can not find it, it's normal, it looks at the project level and not in JAR. So for now, I copied the plugins folder to the same level as the JAR, and as this is good. But how to be able to include in the JAR? Any help on this is appreciated. Thanks in advance.
Thank you in advance!
Bookmarks