Search code examples
jarrunnablejava-home

How to Run a Runnable Jar without Java_Home


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?


Solution

  • 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.