About 21,900,000 results
Open links in new tab
  1. Open a new prompt/terminal window from Java - Stack Overflow

    Apr 21, 2011 · Opening an actual terminal window will definitely require different code for each OS. For Mac, you want something like: Runtime.getRuntime().exec("/usr/bin/open -a Terminal …

  2. Java Program to Open the Command Prompt and Insert Commands

    Apr 22, 2025 · In this article, we will discuss how the exec () method can be used to open the command prompt and run commands. The syntax of exec () method is: Parameter: This …

  3. How Can I Open a Console or Terminal Window from My Java

    Learn how to programmatically launch a console or terminal window in your Java application with this expert guide and code examples.

  4. Run terminal commands from Java - Medium

    Sep 5, 2021 · In this article, we will discuss how to run terminal commands from Java code. We can execute specific commands from the terminal to execute processes in an operating …

  5. Open a new prompt/terminal window from Java

    How do I open a new terminal in Java? Opening a Terminal Window We can open the terminal window with ⌥F12 on macOS, or Alt+F12 on Windows and Linux. The terminal supports all …

  6. How do I make my java application open a console/terminal window?

    Usage: place this class in the same package as your main class and set it as the main class, it will open a command prompt window if one is not open, or if one is open launch the main class. …

  7. How to open the command prompt and insert commands using Java?

    Jan 14, 2011 · Is it possible to open the command prompt (and I guess any other terminal for other systems), and execute commands in the newly opened window? Currently what I have is …

  8. Run an application in a new Terminal window from a Java program

    Jul 29, 2012 · Open a new prompt/terminal window from Java. Is it possible to open a terminal window and execute certain command from a java window? I tried. …

  9. macos - Open a Terminal window with Java - Stack Overflow

    May 30, 2014 · This code works to open an empty Terminal window (on mac): p = Runtime.getRuntime().exec("/usr/bin/open -a Terminal"); And I have seen someone say on a …

  10. How to Execute and Run Java Code from the Terminal

    Mar 10, 2022 · In this article, I will show you how you can execute Java directly from your favorite terminal window. Fear not! The procedure is quite easy, and after reading the entire article you …

  11. Some results have been removed