• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

What is JAR?

 
Greenhorn
Posts: 17
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
This might be a stupid question, but what is a JAR-file and what does it do?
 
lowercase baba
Posts: 13069
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it's a Java ARchive. Basically, you can think of it as a zip file of your compiled .class files (and other resources like .jpg or whatever). They are used for distributing your application.
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i use IZArc to unzip them so i can see what class are in them. really helps......
 
Sheriff
Posts: 67663
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any application that can handle zip files can handle jar files -- they're just zip files with a .jar file type.

If you've got a Java JDK installed, the jar command line command can be used.
 
Greenhorn
Posts: 21
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it also used to easily execute the program that you compiled. "Executable JAR"
 
Ranch Hand
Posts: 441
Scala IntelliJ IDE Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should search first. You can type "jar file" into Wikipedia (or Google, which gives the Wikipedia page as its top answer) and get a comprehensive answer without asking other people to type out an answer for you.

I think Wikipedia is one of the default search engines on Firefox, so it's literally about 3 clicks away.
 
Frederick Winsnes
Greenhorn
Posts: 17
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Luigi Plinge wrote:You should search first. You can type "jar file" into Wikipedia (or Google, which gives the Wikipedia page as its top answer) and get a comprehensive answer without asking other people to type out an answer for you.

I think Wikipedia is one of the default search engines on Firefox, so it's literally about 3 clicks away.



Your'e right. I was to quick to post, but a bit late to do anything about that. Will search in the future tho.


Thanks for the answers everyone!
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

bill steve wrote:i use IZArc to unzip them so i can see what class are in them. really helps......


You can open JAR files with tools that handle ZIP files. But the standard program that's included with the JDK to work with JAR files is the jar tool. It doesn't have a GUI, it works on the command line only.

And here you can find the official documentation about JAR files: JAR File Overview.
 
Marshal
Posts: 76401
364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Luigi Plinge wrote:You should search first. . . .

And try searching here under the "deployment" heading.
 
You ought to ventilate your mind and let the cobwebs out of it. Use this cup to catch the tiny ads:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic