The file extension .jar identifies Java Script archives that have been packed with ZIP compression. In addition to graphics, videos and audio files, these archives can of course also contain executable Javascript files.
These jar files can be opened on both Mac and PC with a simple double-click. The Java Runtime (JRE) required to run the Javascript applications is already preinstalled on most computers, but can also be used here for all platforms such as macOS, Windows and Linux java.com can be downloaded for free. Incidentally, the Java.com domain belongs to the company Oracle.
Chapter in this post:
A warning: viruses hide in jar attachments
The advantage that Java Script offers - namely that it runs relatively platform-independently - is also appreciated by hackers and malware programmers. For this reason, viruses are not infrequently received in emails with an attachment that has a .jar file name. These attachments should not be clicked on under any circumstances, as they start with a double click and may attack the system in this way.
You should also exercise caution if you have downloaded the jar file from the Internet or received it from unknown persons. It is not uncommon for malware to hide behind these files, which then lodges itself in various parts of the computer and spies on the user, takes over the computer as part of a botnet or damages the system.
Unzip and view jar files
If you are familiar with Java Script, you can decompress any .jar file with an unpacker for Windows or macOS and then look at the source code or the content of the archive.
In many cases, however, the code will be made illegible by a Javascript obfuscator. These programs rename variables into cryptic names and, by removing line paragraphs, comments and similar aids, ensure that a person has great problems reading and understanding the source code.
Would you like to find out more about other file extensions? Then have a look at my articles .aae, .doc, .rar, .thm, .lrv or .nib Files over.
Related Articles
Jens has been running the blog since 2012. He acts as Sir Apfelot for his readers and helps them with technical problems. In his spare time he rides electric unicycles, takes photos (preferably with the iPhone, of course), climbs around in the Hessian mountains or hikes with the family. His articles deal with Apple products, news from the world of drones or solutions to current bugs.