Java: jar and. exe?

Why janowskie apps have their own file format (jar/ear/war) and not exe? Because Sun so when we wanted or that there were objective (technical?) reason? CLR runs the same EXE Nicki quietly.
October 14th 19 at 11:00
4 answers
October 14th 19 at 11:02
Solution
For cross-platform support.
Damn, sure ). - will_Lang commented on October 14th 19 at 11:05
October 14th 19 at 11:04
jar/war is not just the application executable file, it is a "package" of the application. By analogy with apk, msi, deb, etc.
In addition to executable code, jar, as a normal zip archive can contain resources, libraries, descriptors, manifests, and any other files that will need application or system that uses it.
And, as already noted, the application in this format should work on different platforms.
October 14th 19 at 11:06
Probably crossplatforming
java-jar some.jar 
and native solaris on ultraSPARC will work not only in windows x86
java-jar some.exe
odnofigstvenno, if the interpreter is to learn to disembowel .exe - will_Lang commented on October 14th 19 at 11:09
October 14th 19 at 11:08
>Same CLR runs the EXE Nicki quietly.

As far as I know, just Vice versa. Exe invokes the clr, which reads the bytecode within the Assembly. However, the same can be done with the jar file, for example, using jar2exe.

Find more questions by tags Java