As the title shows, we created an executable file in jar format.
And start java -jar test.jar
in bat file As a result, the DOS window and dialog were displayed together.
How can I display only the dialog and not the DOS window?

public class test {
    public static void main (String [] args)
        JavaWindow window = new JavaWindow ();

Since most of it ends with a dialog, you don't need a DOS window.

  • Answer # 1

    Double-click on test.jar file to launch
    Only the dialog was displayed and started.

  • Answer # 2

    I don't know which window it is, but
    If you start the bat file by double-clicking from Explorer, the CMD.EXE window will open. That's it. If you don't want to open it, use a method other than a bat file.
    Also, since java.exe is a console app, a console window will always open. If you don't want to open it, use javaw.exe instead.

  • Answer # 3

    How to execute WSH/external command/Run method

Related articles