Results 1 to 2 of 2
  1. #1
    bajra is offline Member
    Join Date
    Jul 2014
    Rep Power

    Unhappy Runnin a C compiled executable file in java

    Hello i'm trying to run a command line executable file using java but there is no output. On the task manager a conhost process opens when the application is run. i've tried
    1)try {


    } catch (Exception e) {


    2)String[] cmd = { "D:\\test.exe"};
    Process p = Runtime.getRuntime().exec(cmd);

    3)//Runtime.getRuntime().exec("D:\\test.exe", null, new File("D:\\"));

    same thing happens i.e. nothing happens. Please help me

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Northern Virginia, United States
    Rep Power

    Default Re: Runnin a C compiled executable file in java

    Pulled from a recent discussion in this forum.

    When Runtime.exec() won't | JavaWorld

    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

Similar Threads

  1. How do I make a Java file executable
    By jacatone in forum Java Applets
    Replies: 13
    Last Post: 01-30-2014, 06:27 PM
  2. java file is not compiled
    By Tartaglia in forum New To Java
    Replies: 4
    Last Post: 06-13-2013, 02:36 AM
  3. Ubuntu, run executable file in java
    By felipin85 in forum New To Java
    Replies: 0
    Last Post: 05-11-2011, 12:31 PM
  4. create windows executable using executable jar file
    By sarwar1234 in forum New To Java
    Replies: 2
    Last Post: 02-07-2011, 08:29 PM
  5. How to create java executable file through CMD
    By Riaz Ali in forum New To Java
    Replies: 4
    Last Post: 08-03-2010, 08:20 AM

Posting Permissions

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