P
P
Programmist2018-09-05 22:58:25
Java
Programmist, 2018-09-05 22:58:25

Is it possible to somehow pack a java program into an exe to run it on a system without a JRE?

Is it possible to somehow pack a java program into an exe to run it on a system without a JRE?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
alfss, 2018-09-05
@JavaBeginner58

launch4j.sourceforge.net

O
Orkhan, 2018-09-05
Hasanly @azerphoenix

Hello!
To pack in exe - launch4j
if your application uses JavaFX, then there is the possibility of creating an exe artifact.
As for launching the application without jre (I don’t know if jre is needed if I run it from exe - I’m still learning java), but I met this article - https://eax.me/java-without-jvm/
i.e. you can pack jvm too... I would like to hear the opinion of experts

F
FRF, 2018-09-07
@frf_nn

There was a C example in the SDK in source.zip, a long time ago I used this code to make an exe. Plus there were third-party solutions that compile java bytecode to native (JET just enough time) excelsior-usa.com/products.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question