Calling exe files from 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..!
Re: Calling exe files from Java
Re: Calling exe files from Java
You'll have to describe your problem better for us to understand what's wrong.
1. Post the code in context
2. What kind of system are you running on (OS mainly)
Re: Calling exe files from Java
We do not mind about cross posting, our aim is to help solve your problem here :)
This code should give you an idea about how to execute an exe:
http://www.javaprogrammingforums.com...time-exec.html
If you need help with the Button then look here:
http://www.javaprogrammingforums.com...ava-swing.html