<?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>sundh.com &#187; java</title>
	<atom:link href="http://www.sundh.com/blog/tag/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sundh.com/blog</link>
	<description>Technology / Wood / Electronics</description>
	<lastBuildDate>Thu, 19 Jan 2012 11:54:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Making jar files on Mac</title>
		<link>http://www.sundh.com/blog/2010/01/making-jar-files-on-mac/</link>
		<comments>http://www.sundh.com/blog/2010/01/making-jar-files-on-mac/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 14:34:44 +0000</pubDate>
		<dc:creator>Ellen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[jar]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://www.sundh.com/blog/?p=50</guid>
		<description><![CDATA[To make a jar file on Mac just first need to open up the Terminal window.
1. Go to the directory of where your java file is by entering
cd myDirectory
2. Compile your java file(myJava.java) into a class
javac myJava.java
List the content of the directory to make your the class file has been made
ls -l
3. To indicate which [...]]]></description>
			<content:encoded><![CDATA[<img class="size-full wp-image-53" title="jar" src="http://www.sundh.com/blog/wp-content/uploads/2010/01/jar.jpg" alt="jar" width="229" height="108" />
<p>To make a jar file on Mac just first need to open up the Terminal window.<br />
1. Go to the directory of where your java file is by entering</p>
<div class="codesnip-container" >cd myDirectory</div>
<p>2. Compile your java file(myJava.java) into a class</p>
<div class="codesnip-container" >javac myJava.java</div>
<p>List the content of the directory to make your the class file has been made</p>
<div class="codesnip-container" >ls -l</div>
<p>3. To indicate which function to run first in the jar file we will need to create a text file (MainClass.txt) with the content in the same directory as the java file:</p>
<div class="codesnip-container" >Main-Class: myJava</div>
<p>4. The last command to create the actual jar file looks like this:</p>
<div class="codesnip-container" >jar cmf MainClass.txt myJava.jar *.class</div>
<p>5. Run your jar file! You can run it by clicking on it or by entering the follwoing command in the Terminal window</p>
<div class="codesnip-container" >java -jar myJava.jar</div>]]></content:encoded>
			<wfw:commentRss>http://www.sundh.com/blog/2010/01/making-jar-files-on-mac/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

