What exactly is a .jar file and how do i create one?
- 4google.com/search?q=what+is+a+jar+fileIgnacio Vazquez-Abrams– Ignacio Vazquez-Abrams2010-04-08 23:47:00 +00:00Commented Apr 8, 2010 at 23:47
- Googlelable questions are perfectly valid if you look at the FAQ.Egor Pavlikhin– Egor Pavlikhin2010-04-08 23:50:51 +00:00Commented Apr 8, 2010 at 23:50
- @HeavyWave: No one is saying that this question isn't valid.Ignacio Vazquez-Abrams– Ignacio Vazquez-Abrams2010-04-08 23:52:35 +00:00Commented Apr 8, 2010 at 23:52
- 2If you don't know what one is, how do you know that you want to create one?jeffora– jeffora2010-04-09 00:04:39 +00:00Commented Apr 9, 2010 at 0:04
Add a comment |
1 Answer
According to wikipedia, JAR is an archive format used by Java to combine classes into one application or library.
It is essentially a zip archive with some additional information, such as a manifest.
To create one just use jar command inside the folder where you store your classes.
jar -cf my.jar *.class 2 Comments
David
i don't understand what you mean when you say to use those commands inside that folder. do i do this from the command line or do i make a program in the folder that does this or soemthing else? what do i do?
Egor Pavlikhin
jar is a command line tool, part of the Java, the same as java and javac commands. There is a tutorial at sun's website java.sun.com/docs/books/tutorial/deployment/jar/build.html