Hello,
I just started to learn how to use the ProcessBuilder to invoke another
java program (jar). I have added this jar to the "lib" of the calling java program, but when executed I keep getting the error:
Exception in thread "main" java.lang.NoClassDeffoundError:...
Caused by: java.lang.ClassNotFoundException:...
I understand what this error means, but what I don't understand is running the same command directly in the shell works fine, but running it in the java program then i got the mentioned error. Not sure what I did wrong in using the ProcessBuilder (built upon example from the article recommended this
Thread
Here is the code: