I want to call a executable file in my node. It is in my src/ folder but I can't get his relative path. I read topics about Bundle, but it's difficult to find the documentation or tutorials. Moreover, I feel a heavy mechanism for just a little executable file...
Install the "Sources for KNIME Chemistry Add-Ons" and have a look at org.knime.ext.chem.openbabel.BabelActivator. This is the easiest way to retrieve packaged executables.
And I anticipate a second problem : I feel that my executable has "lost" his permission executable. In my project (Knime SDK), my file is executable, but when I export project, it is not any more.
I don't want to change it, it is just that "targetFile:linux/x86/myBabel" doesn't seem work for me, whatever location of myBabel in project. I tried too "targetFile:/myBabel" and "targetFile:./myBabel". But as I don't see where @artificats points, it is not easy to debug
It is not working for me... And if I do not make a mistake, here we just try to change permissions. But it is also necessary that activator find the file with getBundle().findEntries(...), right ? Yet this does not work either. It is not bound ?
Is the executable really part of the binary build? In the correct location? This works without any problems in many KNIME plug-ins therefore you must have a configuration error somehwere.