How do you close the console from which java called annex?



  • Hello, people! Sorry for a stupid question. How do you close the console from which java called annex?

    I created this.

    java -jar Application.jar

    I'm launching it. He's launching my app. I'll get my JFrame out. And the console stays until I close this Jframe. If I close the console, the app closes too.

    Code main

     public static void main(String[] args)  {
    
        frame = new SomeFrame();
        frame.enterHowUnregistred();
        frame.init();
        frame.setSize(884, 595);
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
    

    }



  • Tried in the interior and found it: the point is, the console will close at once and leave only your app:

    start javaw -jar Application.jar
    

    It's javaw.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2