Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. How can I run an .exe file in a program in java?

How can I run an .exe file in a program in java?

Scheduled Pinned Locked Moved Java
questionjava
4 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member 8459783
    wrote on last edited by
    #1

    I want to run an exe file in my project. I mean when I run my codes,a specific executable file run. How can I do that?

    L 1 Reply Last reply
    0
    • M Member 8459783

      I want to run an exe file in my project. I mean when I run my codes,a specific executable file run. How can I do that?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      I expect you want to use the Runtime[^] class.

      Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

      D 1 Reply Last reply
      0
      • L Lost User

        I expect you want to use the Runtime[^] class.

        Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

        D Offline
        D Offline
        David Skelly
        wrote on last edited by
        #3

        Since 1.5 ProcessBuilder has been recommended over Runtime. Having said that, I still use Runtime because it's what I'm used to and old habits die hard.

        L 1 Reply Last reply
        0
        • D David Skelly

          Since 1.5 ProcessBuilder has been recommended over Runtime. Having said that, I still use Runtime because it's what I'm used to and old habits die hard.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          I used Google to check; it's a while since I sat and read the latest documentation and guidance notes.

          Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups