I have a java swing application to extract text from pdf. It works fine when i run using command prompt(java -jar xyz.jar) or double click and run the jar but it gets stuck when I run using java code
Process asm = Runtime.getRuntime().exec("java -jar xyz.jar");
asm.waitFor();
or using process builder. is it because of the exceptions in my application? I'm not sure.