Possible Duplicate:
Running java without installing jre?
I am working on a Java application. I created an executable .jar file of my application. It works fine on my machine. Now, I want to deploy it over the client machines which don't have JRE locally.
Suggestions are always welcome.
You cannot do without JRE.
You can do it with NetBeans and a couple of tools. The result is a standalone installer that packages everything you need, so your software can run without installing JRE. It is also completely portable, because it install your software on AppData, that is, it does not need privileges to be installed.
Other than 1) asking them to install Java, or 2) writing your own JVM, the answer is generally no. You have to have a JVM/JRE for your jar file, unless you have a development environment that can create a native executable from your code.
To run a jar file you only need java.exe(windows). JDK is the development kit for Java and JRE is the runtime. JDK contains JRE.
What minimum files are required from the jre or jdk folder so I can pack them with my installation package??
You can pack a jre with your runnable .jar with software like Launch4J
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With