Home>
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
-
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
- java - i want to start the system with the start command of the play framework
- java - i want to implement start tag end tag check of html validation without using regular expressions
- comparing java date and time and displaying error
- [java] i don't understand that upcasts are automatically cast without explicit casts
- java - i don't know how to read a file or write a file name with command line arguments
- java - problem when displaying alertdialog when starting android (app) and ending the app
- i am learning about java about addition of command line arguments
- java - how to convert to command line input format
- java - i want to calculate the deviation value from command line arguments
- java - i want to get the date and time continuously by calculation without using sleep or timer
- mysql server does not start up (error! the server quit without updating pid file)
- java - i want to store the number of command line argument and the deviation value obtained from the number in a two-dimensional
- how to use java external libraries on the command line
- java - displaying database search results using a form configured with jsp/servlet
- java - i want to display katakana characters read from a file without duplication
- java: cat command to display the contents of multiple text files
- displaying java array
- i want to create a game in java that can be created without programming knowledge
- java - about displaying the values of the obtained array
- java - i want to start the service implemented by spring boot on sakura vps (centos 8) and display it on the browser
Trends
Double-click on test.jar file to launch
Only the dialog was displayed and started.