Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run Java executable without installing JRE? [duplicate]

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.

  • Is there any way to run my executable jar file without installing JRE locally?
  • Alternately: What minimum files are required from the JRE folder so I can pack them with my installation package?

Suggestions are always welcome.

like image 641
mirfan00 Avatar asked Jun 12 '12 09:06

mirfan00


People also ask

Can Java EXE run without JRE?

You cannot do without JRE.

Can we run Java program without installing Java?

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.

Can I run jar file without installing JDK or JRE?

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.

Do you need JRE to run jar files?

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.


1 Answers

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

like image 129
Julien Breuil Avatar answered Oct 14 '22 06:10

Julien Breuil