title: Java code in vscode console not running correctly when packaged as .jar
body: <p>I am trying to write a simple code in java, that when run will launch the google website. Below is my code.</p>
  <pre><code>import java.awt.Desktop;
  import java.net.URI;
  class DoTheFunny{
      public static void main(String args[]) throws Exception{
          Desktop d=Desktop.getDesktop();
          d.browse(new URI(&quot;https://www.google.com&quot;));
          }
      }
  </code></pre>
  <p>This code is working when run in vscode. However, when packaged as a .jar file and run, nothing happens. I have tried converting to a .exe and once again nothing happened. Also when extracting the .jar file I get the correct packaging information. I used the <a href="https://marketplace.visualstudio.com/items?itemName=aslamanver.jar-builder" rel="nofollow noreferrer">JAR Builder</a> extension to package my code. Anyone have any idea what is wrong?</p>