<?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>SCJP Certification &#187; jar</title>
	<atom:link href="http://www.scjp-certification.com/tag/jar/feed" rel="self" type="application/rss+xml" />
	<link>http://www.scjp-certification.com</link>
	<description>Sun Certified Java Programmer Certification exam essentials</description>
	<lastBuildDate>Fri, 30 Sep 2011 05:54:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How the classpath is searched for a JAR file syntax?</title>
		<link>http://www.scjp-certification.com/how-the-classpath-is-searched-for-a-jar-file-syntax.html</link>
		<comments>http://www.scjp-certification.com/how-the-classpath-is-searched-for-a-jar-file-syntax.html#comments</comments>
		<pubDate>Thu, 19 Nov 2009 12:00:54 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Facts]]></category>
		<category><![CDATA[classpath]]></category>
		<category><![CDATA[exam guide]]></category>
		<category><![CDATA[jar]]></category>
		<category><![CDATA[jarfile]]></category>
		<category><![CDATA[study guide]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=424</guid>
		<description><![CDATA[While using a JAR file when a directory is specified in the classpath, the files are searched in the directory...]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scjp-certification.com%2Fhow-the-classpath-is-searched-for-a-jar-file-syntax.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fhow-the-classpath-is-searched-for-a-jar-file-syntax.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>While using a <a href="http://www.scjp-certification.com/what-is-a-jar-file.html">JAR</a> file when a directory is specified in the classpath, the files are searched in the directory specified and not in the directories up in the hierarchy. Also, the dot (.) operator means that the files are to be searched in the current directory also. The list of the files in the Windows environment are separated using a semicolon (;). </p>
<p>In the case of the Unix environment, the names of the files are separated using the colon (:) operator. In the command-line, the directory structure is represented using the forward slash (/) in place of the backward slash (\). The semicolon (;) separated list of directories specify the locations to search the files in the specified directories. The files are searched in the directories specified, and not in the directories up in the hierarchy. For example: </p>
<p><strong>-classpath uc\ProgramCodeFiles\MyFiles;uc\JAVAFiles;.;</strong></p>
<p>Here, files will be searched in the current directory, the MyFiles directory, and the JAVAFiles directory. </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2Fhow-the-classpath-is-searched-for-a-jar-file-syntax.html&amp;title=How%20the%20classpath%20is%20searched%20for%20a%20JAR%20file%20syntax%3F"><img src="http://www.scjp-certification.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.scjp-certification.com/how-the-classpath-is-searched-for-a-jar-file-syntax.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is a JAR file?</title>
		<link>http://www.scjp-certification.com/what-is-a-jar-file.html</link>
		<comments>http://www.scjp-certification.com/what-is-a-jar-file.html#comments</comments>
		<pubDate>Tue, 13 Oct 2009 11:23:59 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Facts]]></category>
		<category><![CDATA[archive]]></category>
		<category><![CDATA[jar]]></category>
		<category><![CDATA[jar file]]></category>
		<category><![CDATA[manifest]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=293</guid>
		<description><![CDATA[A JAR file is a bundling and deploying utility that executes upon Java programs. The JAR tool is used to...]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-is-a-jar-file.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-is-a-jar-file.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>A JAR file is a bundling and deploying utility that executes upon Java programs. The JAR tool is used to create a JAR file. The file contains class files, image files, and audio/video files. It also contains a manifest file, which contains information such as whether the class file is a javabean, or which class contains the main method, etc. The basic syntax of the command for creating a JAR file is as follows: </p>
<p><strong>jar -cf jar-file input-file(s)</strong></p>
<p>where,</p>
<p>c indicates a JAR file is going to be created.<br />
f indicates the output of the command execution will go to a file rather than to stdout.<br />
jar-file is the name of the resulting JAR file.<br />
input-file(s) specify a space-separated list of one or more files that are going to be included in the JAR file. It can use the wildcard * symbol. </p>
<p>After using this command, it will generate a compressed JAR file and place it in the current directory. It also generates a default manifest file for the JAR archive. </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-is-a-jar-file.html&amp;title=What%20is%20a%20JAR%20file%3F"><img src="http://www.scjp-certification.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.scjp-certification.com/what-is-a-jar-file.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

