title: Runnable Jar is not connecting to postgres database when used inside another Java Swing Application
body: <p>The runnable jar gets executed and then the it waits to receive inputs from the user. While it is waiting, I can't use the jar application, it is not hanging but database connections are not working.</p>
  <p>After giving inputs to the main program, it receives and as it got to the end of the program, it terminates itself. Till then I can't use the jar, only after the main program got terminated. I can use the jar.</p>
  <p>I want both to run simulataneously.</p>
  <p>Any ideas on this</p>
  <p><strong>MRE Code</strong> - Eclipse 2021-03</p>
  <pre><code>public static void main(String[] args) throws IOException, SQLException, ClassNotFoundException {
      
      System.out.print(&quot;Started...&quot;);
      Runtime.getRuntime().exec(&quot;&lt;Path of my runnable jar&gt;&quot;);
      BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
      in.readLine();
  }
  </code></pre>