-1

I wanted to ask you a question. I created a program in java and then later rendered it and a .jar and then an .exe. The execution of the program does not include the graphical interface so when I run it I should open the windows console and run it there. My problem is that I don't know how to make the program run in the windows console. I await answers and thanks in advance.

Example: System.out.Println ("hello")

I want to open a console and go out in console "hello"

  • 1
    You need to execute `java -jar jarfilename.jar` to run jar file – Felierix May 16 '22 at 17:30
  • Regarding, *"I await answers and thanks in advance"* -- no need to wait in the future. Just search: [site:stackoverflow.com java run jar file from command line](https://www.google.com/search?q=site%3Astackoverflow.com+java+run+jar+file+from+command+line) – Hovercraft Full Of Eels May 16 '22 at 17:36

0 Answers0