I want to run c++ exe files using the runtime environment. Its giving an error : c:\windows\system32\ntvdm.exe Error in setting up runtime environment Plz help me if you can any 1.
Can you post some code around the way you launch your programs? I guess System.runtime.exec( something )?
Do you know where that message comes from? Is it something in your C++ program?
See if ProcessBuilder gives you an easier way to configure and start your other programs.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Hi all See i have a c++ prog. exe that i want to run in java . The error message which i am getting has nothing to do with my c++ program. the java prog i have written is: try{ Runtime r = Runtime.getRuntime(); Process p = r.exec("Myprog.exe"); /*Myprog is exe of my c++ prog */ }catch(Exception e1) { System.out.println(e1); }
when i run this java prog im getting this error : "Error in setting up environment for the application " Please Help me !!!
Is the code that i have written above is corect or not? Plz help me its urgent !! i have tried using : String temp = "cmd /k java -cp \"A:\MyDirectory\"MyApplication"; Process proc = rt.exec(temp); But it doesnt work !!! Is it possible to do it using a BAT file
Usually when I Google an error message I get right to some explanation. I get no hits at all on this: "Error in setting up environment for the application" It's not often I get no hits on Google. Is that it word for word??
Try the full path to your program. Your program will not inherit any environment variables, but you can use ProcessBuilder to set some up if you need. [ June 15, 2006: Message edited by: Stan James ]
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
I carry this gun in case a vending machine doesn't give me my fritos. This gun and this tiny ad:
Gift giving made easy with the permaculture playing cards