TJ-Bot
I am new to Java after coming from using C#/.NET and i'm trying to make my first Java projects in Intellij Idea to practice the language but it seems that all console apps only show output in the IDE itself and won't make a console window popup?
Anyone kn
In Java, console applications typically run inside the IDE's integrated console window (like IntelliJ IDEA's Run window). This is different from some environments in C#/.NET where you might be used to a separate console window popping up.
Why does this happen?
When you run a Java program in IntelliJ, the output streams (System.out, System.err) are captured and redirected to the IDE's built-in console for convenience, debugging, and easy access to logs. The console window is part of the IDE, not a separate OS-level terminal window.
How to run a Java console app outside the IDE?
- Compile and run from a command prompt or terminal manually using
javac YourClass.java and then java YourClass. This opens output in the OS console window.
- Build a runnable JAR and execute it via command line:
java -jar YourApp.jar.
- You can configure IntelliJ to open an external terminal, but that’s less common.
This setup is intended for user convenience during development, but the actual program behaves the same — it writes to stdout and stderr streams, which IntelliJ captures and displays internally.
Useful links: