Standalone Programs developed in Java [duplicate]
Asked Answered
K

2

2

There are stand-alone programs which can be executed e.g. under Windows, of which the developers state that they wrote the program "using the Java programming language". I am not a Software developer or a programmer, but through some basic programming courses in school and at university I was taught that Java Programms can only be run in a Java Runtime Environment (JRE).

So what I am asking is: how can I run these programs written in Java on my computer, without having any JRE?

A follow-up question would be: How is this step technically performed, to create such a program that does not need a JRE for running from Java code?

Please note: I am not questioning the concept of the JRE as a whole. It does make sence to me to use this concept, to have platform independent programs by using a runtime environment. My question solely is about how is this stand-alone solution made possible, not about its convenience, or its meaningfulness. It is obviously done for whatever reasons, and I want to know how.

Krystalkrystalle answered 27/11, 2015 at 11:46 Comment(3)
I guess those programs are being shipped with bundled JRE.Keikokeil
#3372035Tomy
I have created a list of ways to deploy Java applications here. This includes ways to deploy as "JVM-less" executables.Trevar
P
2

You can Ship JRE with your application. Then application will use it for execution. There are also some Compilers for this purpose. Read this question: running a java program as an exe in windows without JRE installed

Pliable answered 27/11, 2015 at 11:50 Comment(0)
L
0

You can use Excelsior JET compiler for that purpose.It will convert your java application to .exe

See Excelsior for more information on this.

Louvain answered 27/11, 2015 at 11:49 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.