Java: jar and. exe?

0 like 0 dislike
2 views
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.
by | 2 views

4 Answers

0 like 0 dislike
For cross-platform support.
by
0 like 0 dislike
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.
by
0 like 0 dislike
Probably crossplatforming
\r
java-jar some.jar and native solaris on ultraSPARC will work not only in windows x86
by
0 like 0 dislike
>Same CLR runs the EXE Nicki quietly.
\r
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.
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
28,781 users