Is possible put exe
file into the java package and run this exe
file by java program?
Asked
Active
Viewed 29 times
0

PanTau
- 73
- 1
- 7
-
Yes, include it in your jar file and extract it at runtime (keywords: `getResourceAsStream`, `FileOutputStream`). – Tobias Feb 15 '15 at 09:46
-
I have to unzip the file? Or it can be run directly from the package? – PanTau Feb 15 '15 at 09:52
-
As I said, you need to extract ("unzip") the exe in order to run it. – Tobias Feb 15 '15 at 09:54
-
possible duplicate of [run exe which is packaged inside jar](http://stackoverflow.com/questions/600146/run-exe-which-is-packaged-inside-jar) – Joe Feb 15 '15 at 12:29