<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>rcanblog &#187; jar</title>
	<atom:link href="http://rcanblog.com/tag/jar/feed/" rel="self" type="application/rss+xml" />
	<link>http://rcanblog.com</link>
	<description>blogging is on the way</description>
	<lastBuildDate>Fri, 27 Aug 2010 14:37:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to create JAR file in Windows</title>
		<link>http://rcanblog.com/jar-java-archive-format-140/</link>
		<comments>http://rcanblog.com/jar-java-archive-format-140/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 15:41:33 +0000</pubDate>
		<dc:creator>coeditor</dc:creator>
				<category><![CDATA[TipsnTutes]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[jar]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jdk]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://rcanblog.com/?p=140</guid>
		<description><![CDATA[JAR (Java Archive format) is file format to compress files or bundle multiple files into one archive file. Zip is simple archiving and compressing tool but JAR includes a special file called Manifest  which adds versatility to JAR file, and hence provides enhanced functions like versioning, packaging and digital signature.  The following explains a simple procedure to create a JAR file in window]]></description>
			<content:encoded><![CDATA[<p>JAR (Java Archive format) is file format to compress files or bundle multiple files into one archive file. Zip is simple archiving and compressing tool but JAR includes a special file called Manifest  which adds versatility to JAR file, and hence provides enhanced functions like versioning, packaging and digital signature.  The following explains a simple procedure to create a JAR file in Mirosoft Windows.<br />

<!-- Begin Google Adsense code -->
<script type="text/javascript"><!--
google_ad_client = "pub-2784351527141020";
/* 468x60, created 6/22/09 */
google_ad_slot = "9962667361";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
<br />
JAR file are created using Java Archive tool which is part of Java SDK. Hence to create a JAR file, SDK needs to be installed on the system.  We will see jar.exe and other binary file in bin folder in Java SDK, as shown below.<br />
(We can see Jarsigner.exe is also part of the Java SDK. It help us create the digitally signed files. )</p>
<p><img class="alignnone" src="http://farm3.static.flickr.com/2634/3840221510_b2173d8132_o.png" alt="3840221510 b2173d8132 o How to create JAR file in Windows" width="350" height="53" title="How to create JAR file in Windows" /></p>
<p>To create the JAR file in Microsoft Windows we will need to go to the command prompt.</p>
<p>Put all the files that are to be archived in some directory , say c:\test ( say files are b.txt and a)</p>
<p><img class="alignnone" src="http://farm3.static.flickr.com/2625/3840221576_7d49a98b74_o.png" alt="3840221576 7d49a98b74 o How to create JAR file in Windows" width="378" height="75" title="How to create JAR file in Windows" /></p>
<p>Go to start menu and select run program. Go to the path where the files are there, here to c:\test</p>
<p><img class="alignnone" src="http://farm3.static.flickr.com/2644/3840221620_a8ee269ec2_o.png" alt="3840221620 a8ee269ec2 o How to create JAR file in Windows" width="313" height="48" title="How to create JAR file in Windows" /></p>
<p>Check where SDK is located in machine.  Check for the jar.exe in bin folder into SDK folder package name. It can be like C:\j2sdk1.4.1_05\bin. Type the path of jar as shown below. Then type the jar command as</p>
<p><strong>jar options xxx.jar file_names</strong></p>
<p><img class="alignnone" src="http://farm3.static.flickr.com/2577/3840221656_63d5e72de1_o.png" alt="3840221656 63d5e72de1 o How to create JAR file in Windows" width="441" height="30" title="How to create JAR file in Windows" /></p>
<p>Here,  options here shown are<br />
c -&gt; to create an new archive<br />
v -&gt; It gives the verbose output on standard output. It will give whole details of all the file being added and how much they are deflated.<br />
f -&gt; it specifies the file name of the created JAR</p>
<p>xxx.jar means the name of jar file you want to give for e.g. test.jar</p>
<p>file_names are the input files that are to be archived. Since we want all the files to be archived we have given below the parameter as asterisk (*).</p>
<p>When you run the command you see the following output ( because of –v option)</p>
<p><img class="alignnone" src="http://farm3.static.flickr.com/2571/3840221706_1f86a14c57_o.png" alt="3840221706 1f86a14c57 o How to create JAR file in Windows" width="442" height="62" title="How to create JAR file in Windows" /></p>
<p>The jar file test.jar in created in test directory itself.</p>
<p><img class="alignnone" src="http://farm3.static.flickr.com/2476/3839432389_578ce38a43_o.png" alt="3839432389 578ce38a43 o How to create JAR file in Windows" width="394" height="101" title="How to create JAR file in Windows" /></p>
<p>To unjar  the jar file back to original files you just need to give the following command in the jar file directory, in this example c:\test</p>
<p><strong>C:\java\j2re1.4.1_02\bin\jar -xvf test.jar</strong><br />
<img class="alignnone" src="http://farm4.static.flickr.com/3477/3839432421_a2e5363894_o.png" alt="3839432421 a2e5363894 o How to create JAR file in Windows" width="423" height="74" title="How to create JAR file in Windows" /></p>
<p>Where x is the option to extract files from archive and C:\java\j2re1.4.1_02\bin\ is the JDK installation path.</p>
<div id="crp_related"><h3>You would like to also read</h3><ul><li><a href="http://rcanblog.com/good-performing-search-queries-rcanblog-296/" rel="bookmark">Good performing search queries - rcanblog</a></li><li><a href="http://rcanblog.com/wordpress-front-page-banner-plugin-part-4-configuration-363/" rel="bookmark">How to use WordPress Front Page Banner Plugin - [ Part 4 - Configuration]</a></li><li><a href="http://rcanblog.com/create-public-google-wave-part-2-265/" rel="bookmark">How to create a public Google wave - Part 2</a></li><li><a href="http://rcanblog.com/google-copy-bing-275/" rel="bookmark">Google Copy Bing in new look</a></li><li><a href="http://rcanblog.com/wordpress-front-page-banner-plugin-part-2-configuration-350/" rel="bookmark">How to use WordPress Front Page Banner Plugin - [ Part 2 - Configuration]</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://rcanblog.com/jar-java-archive-format-140/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
