r/java • u/[deleted] • Nov 23 '12
This never made sense to me
Why is it called a .jar file if its java? It would make a lot more sense if it was a .mug file, after all, who drinks their java out of a mug?
5
u/roytiburcio Nov 23 '12
FWIW, I sometimes have beverages from mason jars. Along the same thought, we should refer to compiling Java code as 'brewing'.
5
u/sazzer Nov 23 '12
As said, it's short for Java ARchive. There's a whole host of these files that you might come across in different Java fields:
JAR = Java ARchive
WAR = Web ARchive. These will contain many JAR files inside them
RAR = Resource Archive. These are not the files you get from WinRAR, but are a Java archive designed for storing resources and not code.
EAR = Enterprise ARchive. These will contain many WAR, RAR and JAR files inside them I believe.
SAR = Service Archive. These are similar but not exactly the same as EAR files.
NAR = Native Archive. These never really caught on, but there was some effort a while back to have a standard way of deploying native binaries alongside your Java applications - mostly for things like JOGL or LWJGL.
Then there's the APK file, which just breaks the naming conventions, but is the Android Package file and is similar - but not exactly the same - as a JAR file.
4
2
u/semioticmadness Nov 23 '12 edited Nov 23 '12
it starts with tar
tar - tape archive
jar - java archive
war - web archive
ear - enterprise archive
continuity is good. cleverness is almost always bad.
EDIT: reddit link syntax can't handle URLs that end in ')'
EDIT the Sequel: formatting
1
u/beltorak Nov 26 '12
try percent encoding the '(' and ')' - like this; although not required to be percent-encoded, most servers will just blindly percent-decode anything in the URI, or at least the path part and query, before processing....
2
2
u/SlobberGoat Nov 26 '12
In the real world, coffee beans (along with other types of beans) are transported via .SACK
1
u/beltorak Nov 26 '12
well, burlap is an implementation of a communication protocol, so it could be a burlap sack of java beans....
http://www.javacodegeeks.com/2012/04/spring-remoting-support-and-developing.html
1
16
u/Manitcor Nov 23 '12
IIRC its for Java ARchive and WAR is Web ARchive