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.

3

2 Answers 2

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

Sign up to request clarification or add additional context in comments.

Comments

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.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.