Hi people! Sorry for the dumb question. How to close the console from which the java application was called?
I created such .bat file:
java -jar Application.jar
Run it. He runs my app. I get out my JFrame. And the console remains until I close this Jframe. If I close the console, the application also closes.
The main code is
public static void main(String[] args) { frame = new SomeFrame(); frame.enterHowUnregistred(); frame.init(); frame.setSize(884, 595); frame.setLocationRelativeTo(null); frame.setVisible(true); }
c:\>start java -jar Application.jar- Sergey