Adding a and at the end of the command should unlock it and allow your program to continue, for example:
int main() {
system("java -jar /home/user/test/test.jar argument &");
cout << "The end" << endl;
return 0;}
I have something similar and it works fine.
source
share