Under Windows OS, how to call *.EXE produced in Linux OS?
Hey,
My colleague likes Linux very much and he produced one EXE file under Linux. I tried to call it from Windowns OS, which is my favorite OS, but it did not work!
I used some methods like Runtime.getRuntime().exec:
Execute an external program - Real's Java How-to
Does anyone have some experience how to make it work? I will appreciate it a lot!
Best wishes.
Tony
Re: Under Windows OS, how to call *.EXE produced in Linux OS?
The simple answer is you can't. The kernel and available libraries simply aren't there to allow you to call an executable program between different OS's.
The simplest method for you to run the program under a different OS is to get the source code and "port" the program to run under your OS and recompiling. Note that this method will probably involve re-writing sections of code. You might be able to get around having to re-writing sections of code that involve certain libraries if you can find a port of those libraries for your OS (no guarantees, though).
and fyi, .exe files are specific to the Windows OS ;) Linux doesn't give them any extensions and simply marks the program as executable.
Re: Under Windows OS, how to call *.EXE produced in Linux OS?