1

I'm a beginner, and I have a question that many could consider dumb, but I really just created an account to understand this, since I have not find an answer anywhere else.

So, I start a few days ago and I created a simple test program in Intellij, where I make some questions and then the ''user'' answers it, and then I create phrases of it.

But I would like to run it like a normal program, with an icon, where I click it twice and it opens in a new window. I already know hot to run it in Intellij. I want to run it as a program outside of it. Is it clear ? Can someone enlighten me about how can I do this?

bruna0555
  • 11
  • 1
  • 2
    Your description is a little vague. The simplest way for anyone to provide answer for this question will be to see intellij's run configuration window. Otherwise, you can use java -jar Jarfile name. Configuration window will provide more details to answer the question like the build is using maven or gradle, what is the main class, is it a web app or standalone etc. – Avinash Sagar Jul 19 '20 at 19:22
  • 1
    If you look in the top of the console tab (probably adjacent to the one you use to debug in) the first line will be what that IDE is using to start your program – John Jul 19 '20 at 19:22
  • 4
    Does this answer your question? [How do I run a Java program from the command line on Windows?](https://stackoverflow.com/questions/16137713/how-do-i-run-a-java-program-from-the-command-line-on-windows) – ivanjermakov Jul 19 '20 at 19:59
  • just try the method how described [here](https://stackoverflow.com/questions/147181/how-can-i-convert-my-java-program-to-an-exe-file/147233#147233) – pawelA Jul 20 '20 at 10:40

0 Answers0