Results 1 to 3 of 3
  1. #1
    linuxrockers is offline Member
    Join Date
    Feb 2010
    Posts
    1
    Rep Power
    0

    Exclamation Running EXE files with Java

    I need to run exe file on clicking my Button in Java GUI. I have used exec() and code is as ,
    exec("c:\\rr\test.exe")


    test.exe is compiled from turbo c++. I am getting error as "Error while setting environment for the application". 16 bit MS-DOS sub system. Please help..!

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    do you get the same error when you run that program from the command line?

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,197
    Rep Power
    19

Similar Threads

  1. Creating and running Java .ini files
    By Camzie in forum NetBeans
    Replies: 4
    Last Post: 11-25-2009, 12:42 PM
  2. running two jar files
    By gayathri_g in forum New To Java
    Replies: 2
    Last Post: 09-02-2009, 08:05 PM
  3. Replies: 6
    Last Post: 02-06-2009, 08:05 PM
  4. Replies: 1
    Last Post: 01-16-2009, 10:14 AM
  5. Running batch files in java
    By pradeesh in forum New To Java
    Replies: 10
    Last Post: 12-04-2008, 09:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •