Difference between running jar and exe file?

If you have a small program, you can run the jar file and it will work fine. But if you convert a jar file to exe, you still need java to run your exe file, so what's the difference between them and why do some people convert jar to exe?

+4
source share
5 answers

EXE is supposedly an executable program that runs local java to execute package classes.

As you know, on your computer you can associate certain file extensions with local programs. For example, .docfiles with your word processor.

, .jar Java, Java . jar "", , , , .

, .jar Java, Java jar.

EXE . java .

, JRE EXE, , Java . .

+5

Java- jar - java- , Java. ".exe" - Windows , , . , "" .

0

Java : 1. JVM 2. , Java, , JAR. .

0

Exe - , Microsoft OS.  Jar - Java, , . Jar Java. JavaTM Archive (JAR) .

.class, java , . exe, Windows. java- - . , , jar exe.

exe. , , IDE JVM.

0
source

All exe does is run jvm with your application, something like this: "java -jar app.jar".

0
source

Source: https://habr.com/ru/post/1569916/


All Articles