I have a shared host server, I have no root privileges on it, I can't write in system files, so I can't configure Java_Home. I am searching for a solution to deploy my java application on the server. I have a runnable jar. can't I transform it to a machine language that doesn't require java?
Asked
Active
Viewed 197 times
1 Answers
0
As far as I am aware, there is no simple way to compile an entire an entire Java executable JAR into native binaries. If the machine does not have a JVM, this is quite a difficult problem.
If the machine is windows based, you might have success with Launch4j, a free executable wrapping tool.
If not, I would recommend trying packr, a similar tool supporting packaging for any system.

Qwertycrackers
- 626
- 4
- 12
-
thanks, this is helpful. this might work with simple Java applications. but for now I am using packr, and the generated executable shows errors related to spring boot. I have tried to generate different types of fat jars to pass it to packr. (via spring package, maven assembly , maven package...) it's like it can't find spring classes... – Maher Ben Taleb Ali Dec 25 '17 at 02:35