I have very strange problem- from one program I run another application- by Runtime.getRuntime().exec(). It's look like something like this:
Runtime.getRuntime().exec(java -jar Something.jar + "bla bla params");
And when I run this code from new project- everything is ok. But if I run this app from our system in company- the smaller application occasionally hangs. And there is even better- if I close "parent" program, application "return to live"! The app (which hangs) is small java swing application. The big application is java swing app too. It uses the same db connection as application which run small app (Something.jar). Maybe that cause problem?
But for me it have no sense- if I run app by Runtime.getRuntime().exec- the running app is separate application container in separate JVM! How test/debug that configuration?