<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>JAVA NEPAL</title>
	<atom:link href="http://javanepal.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://javanepal.wordpress.com</link>
	<description>a perfect java blog</description>
	<lastBuildDate>Sun, 18 Oct 2009 02:54:25 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='javanepal.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/a455289ef5344bdeefbcdf7392b289b7?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>JAVA NEPAL</title>
		<link>http://javanepal.wordpress.com</link>
	</image>
			<item>
		<title>JNLP on Desktop and Start Menu with Icon</title>
		<link>http://javanepal.wordpress.com/2009/10/15/jnlp-on-desktop-and-start-menu-with-icon/</link>
		<comments>http://javanepal.wordpress.com/2009/10/15/jnlp-on-desktop-and-start-menu-with-icon/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 11:53:07 +0000</pubDate>
		<dc:creator>Narayan</dc:creator>
				<category><![CDATA[Jar File]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[from]]></category>
		<category><![CDATA[how]]></category>
		<category><![CDATA[jnlp]]></category>
		<category><![CDATA[launcher]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[start]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://javanepal.wordpress.com/?p=425</guid>
		<description><![CDATA[As you have already heard about the extension (*.jnlp) which had made the java developer more easier to present their programs with a single file..
Actually the jnlp extension is a ext. of Sun Java. We can simply present the jnlp in both web(browser) and desktop .
The Web Start mechanism has made this jnlp to run [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javanepal.wordpress.com&blog=4540287&post=425&subd=javanepal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>As you have already heard about the extension (*.jnlp) which had made the java developer more easier to present their programs with a single file..</p>
<p>Actually the jnlp extension is a ext. of Sun Java. We can simply present the jnlp in both web(browser) and desktop .</p>
<p>The Web Start mechanism has made this jnlp to run at the top of Java 2 platform.</p>
<p>In this blog I&#8217;m going to show how can we make our program to display as a icon at Desktop and Start Menu.</p>
<p>As i&#8217;m just going through a sample jnlp file which is being resulted by NetBeans..see <a href="http://www.javacoder.co.cc/?p=550">(how  to create jnlp from NetBeans)</a>.</p>
<p>Ok here is our JNLP code:<span id="more-425"></span></p>
<pre class="brush: xml;">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;
&lt;jnlp codebase=&quot;file:/C:/Users/JavaNep/Desktop/Sample/dist&quot; href=&quot;launch.jnlp&quot; spec=&quot;1.0+&quot;&gt;
&lt;information&gt;
&lt;title&gt;Sample&lt;/title&gt;
&lt;vendor&gt;javacoder&lt;/vendor&gt;
&lt;homepage href=&quot;http://javacoder.co.cc&quot;/&gt;
&lt;description&gt;Sample&lt;/description&gt;
&lt;description kind=&quot;short&quot;&gt;Sample&lt;/description&gt;

&lt;offline-allowed/&gt;
&lt;/information&gt;
&lt;security&gt;
&lt;all-permissions/&gt;
&lt;/security&gt;
&lt;resources&gt;
&lt;j2se version=&quot;1.5+&quot;/&gt;
&lt;jar eager=&quot;true&quot; href=&quot;Sample.jar&quot; main=&quot;true&quot;/&gt;

&lt;/resources&gt;
&lt;application-desc main-class=&quot;sample.Main&quot;&gt;

&lt;/application-desc&gt;
&lt;/jnlp&gt;
</pre>
<p><a href="http://www.javacoder.co.cc/?p=550">(more details about jnlp&#8230;.)</a><br />
You can see it&#8217;s very simple one jnlp file, where there is only one jar file named <strong>Sample.jar </strong>and the main class file is <strong>Main.class</strong> which is represented at sample package (<strong>sample.Main</strong>).</p>
<p>For the icon at Desktop and Start Menu:-<br />
Now our modified code goes here :</p>
<p>For Icon:</p>
<pre class="brush: xml;">
&lt;icon href=&quot;logo.png&quot; kind=&quot;default&quot;/&gt;
</pre>
<p>You can place your own icon image by specifying exact path of the icon in replace of logo.png  and if  your icon is in the dist folder then you can simply place the name of the file and extension like as in above example.</p>
<p>For Shortcut at Desktop and StartMenu:</p>
<pre class="brush: xml;">
&lt;shortcut online=&quot;false&quot;&gt;
	&lt;desktop/&gt;
	&lt;menu submenu=&quot;Sample&quot;&gt;
	&lt;menu submenu=&quot;Sample Sub menu&quot;/&gt;
	&lt;/menu&gt;
&lt;/shortcut&gt;
</pre>
<p>Also If you want to keep splash screen then use this:</p>
<pre class="brush: xml;">
&lt;icon href=&quot;load.png&quot; kind=&quot;splash&quot;/&gt;
</pre>
<p>After all our complete modified jnlp file will be like as below code:</p>
<pre class="brush: xml;">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;
&lt;jnlp codebase=&quot;file:/C:/Users/Razer/Desktop/Sample/dist&quot; href=&quot;launch.jnlp&quot; spec=&quot;1.0+&quot;&gt;
    &lt;information&gt;
        &lt;title&gt;Sample&lt;/title&gt;
        &lt;vendor&gt;Razer&lt;/vendor&gt;
        &lt;homepage href=&quot;&quot;/&gt;
        &lt;description&gt;Sample&lt;/description&gt;
        &lt;description kind=&quot;short&quot;&gt;Sample&lt;/description&gt;

	&lt;icon href=&quot;load.png&quot; kind=&quot;splash&quot;/&gt;

	&lt;icon href=&quot;logo.png&quot; kind=&quot;default&quot;/&gt;

	&lt;shortcut online=&quot;false&quot;&gt;
		&lt;desktop/&gt;
			&lt;menu submenu=&quot;Prabinas&quot;&gt;
			&lt;menu submenu=&quot;Product Managing System&quot;/&gt;
			&lt;/menu&gt;
	&lt;/shortcut&gt;
&lt;offline-allowed/&gt;
&lt;/information&gt;
&lt;security&gt;
&lt;all-permissions/&gt;
&lt;/security&gt;
    &lt;resources&gt;
&lt;j2se version=&quot;1.5+&quot;/&gt;
&lt;jar eager=&quot;true&quot; href=&quot;Sample.jar&quot; main=&quot;true&quot;/&gt;

    &lt;/resources&gt;
    &lt;application-desc main-class=&quot;sample.Main&quot;&gt;

    &lt;/application-desc&gt;
&lt;/jnlp&gt;
</pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/javanepal.wordpress.com/425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/javanepal.wordpress.com/425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/javanepal.wordpress.com/425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/javanepal.wordpress.com/425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/javanepal.wordpress.com/425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/javanepal.wordpress.com/425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/javanepal.wordpress.com/425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/javanepal.wordpress.com/425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/javanepal.wordpress.com/425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/javanepal.wordpress.com/425/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javanepal.wordpress.com&blog=4540287&post=425&subd=javanepal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://javanepal.wordpress.com/2009/10/15/jnlp-on-desktop-and-start-menu-with-icon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bc299130c3980fbf3cbfdb754b518f46?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Narayan</media:title>
		</media:content>
	</item>
		<item>
		<title>How to make Jar files and executable</title>
		<link>http://javanepal.wordpress.com/2009/09/15/how-to-make-jar-files-and-executable/</link>
		<comments>http://javanepal.wordpress.com/2009/09/15/how-to-make-jar-files-and-executable/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 19:08:18 +0000</pubDate>
		<dc:creator>Narayan</dc:creator>
				<category><![CDATA[Jar File]]></category>
		<category><![CDATA[executable]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[how]]></category>
		<category><![CDATA[jar]]></category>
		<category><![CDATA[make]]></category>

		<guid isPermaLink="false">http://javanepal.wordpress.com/?p=412</guid>
		<description><![CDATA[Actually the jar files are the bundled file of all the classes, images and other resources which are need for running java application. Most of the JAR files are used for J2ME(Mirco Edition) purpose, i mean at Mobile Devices where java is compatible.
The JAR files can be easily made from numerous of processes but among [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javanepal.wordpress.com&blog=4540287&post=412&subd=javanepal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Actually the jar files are the bundled file of all the classes, images and other resources which are need for running java application. Most of the JAR files are used for J2ME(Mirco Edition) purpose, i mean at Mobile Devices where java is compatible.<br />
The JAR files can be easily made from numerous of processes but among them i&#8217;m going to demonstrate here through IDE NetBeans for creating JAR file and executable.</p>
<p>For making JAR files you must have following requirements:</p>
<ol>
<li>Java preinstalled  (1.5 or greater)</li>
<li>Windows Platform</li>
<li>One Manual Project which contains Swing Component or Applet</li>
</ol>
<p>Ok now let&#8217;s begin to Bundle our Files in JAR format.</p>
<p>Firstly run NetBeans and make one Project which displays GUI or just download a Sample Project for NetBeans</p>
<ol>
<li><a title="LoginPanel" href="http://javacoder.co.cc/download/LoginPanel.zip" target="_blank">LoginPanel</a></li>
</ol>
<p>Now Open the project which u downloaded or just use your own Project.</p>
<p>Press Ctrl+1 for enabling Project Tab and you can see your project there:<span id="more-412"></span></p>
<p>As shown in figure.</p>
<p><img class="aligncenter size-full wp-image-415" title="screen" src="http://javanepal.files.wordpress.com/2009/09/screen.jpg?w=468&#038;h=292" alt="screen" width="468" height="292" /></p>
<p>Now you can right click on the your Project Root and click Properties.</p>
<p>A new Dialog Box will appear.</p>
<div id="attachment_418" class="wp-caption aligncenter" style="width: 478px">
<div class="mceTemp mceIEcenter">
<dl class="wp-caption aligncenter">
<dt class="wp-caption-dt"><img class="size-full wp-image-419" title="project Properties - LoginPanel" src="http://javanepal.files.wordpress.com/2009/09/project-properties-loginpanel.jpg?w=468&#038;h=331" alt="Project Properties" width="468" height="331" /><p class="wp-caption-text">Project Properties</p></div></p>
</dt>
<dd class="wp-caption-dd">Project Properties</dd>
</dl>
</div>
<p><strong>STEP 1: </strong> Now expand<strong> Build</strong> tree and click on <strong>Packaging</strong> on Packaging you can see where the jar is to be saved.</p>
<p>On Default it keeps jar files at dist folder of our Project Directory.</p>
<p><strong>STEP 2: </strong>Now Click on  to the<strong> Application</strong> tree and click <strong>Web Start</strong> now on right side you can see the check box</p>
<p>&#8216;<strong>Enable Web Start&#8217; </strong>check the box.</p>
<p><strong>STEP 3:</strong> Move towards<strong> Run</strong> tree now you can specify which class you want to execute for jar file.</p>
<p>Change <strong>Main-Class:</strong> <em>Class File(packageName.classFileYouWantToExecute)</em></p>
<p><em> foreg: loginpanel.Main</em></p>
<p><em> </em>Specify the Class File you want to run or execute..</p>
<p>(For the LoginPanel project please type change<em> loginpanel.Main</em> to loginpanel.LoginPanel<em> </em> )</p>
<p>After specifying the class file you want to load then, make sure the option &#8216;Run with Java Web Start&#8217; is checked.</p>
<p>After that Click on OK now you can Build your JAR file by pressing <strong>Shift+F11</strong>.</p>
<p>Now you can see a jar file in your directory <strong>(on default /dist) </strong> and open the JAR file (as sample LoginPanel.jar) .</p>
<p>You must see a new Window displayed at your screen .Your JAR file is now Sucessfully Executed !</p>
<p>Congratulation!</p>
<p>Thank you for taking participation on  this blog .</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/javanepal.wordpress.com/412/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/javanepal.wordpress.com/412/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/javanepal.wordpress.com/412/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/javanepal.wordpress.com/412/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/javanepal.wordpress.com/412/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/javanepal.wordpress.com/412/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/javanepal.wordpress.com/412/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/javanepal.wordpress.com/412/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/javanepal.wordpress.com/412/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/javanepal.wordpress.com/412/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javanepal.wordpress.com&blog=4540287&post=412&subd=javanepal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://javanepal.wordpress.com/2009/09/15/how-to-make-jar-files-and-executable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bc299130c3980fbf3cbfdb754b518f46?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Narayan</media:title>
		</media:content>

		<media:content url="http://javanepal.files.wordpress.com/2009/09/screen.jpg" medium="image">
			<media:title type="html">screen</media:title>
		</media:content>

		<media:content url="http://javanepal.files.wordpress.com/2009/09/project-properties-loginpanel.jpg" medium="image">
			<media:title type="html">project Properties - LoginPanel</media:title>
		</media:content>
	</item>
		<item>
		<title>Merging JAR files to single JAR via IDE NetBeans 6.7</title>
		<link>http://javanepal.wordpress.com/2009/09/15/merging-jar-files-to-single-jar-via-ide-netbeans-6-7/</link>
		<comments>http://javanepal.wordpress.com/2009/09/15/merging-jar-files-to-single-jar-via-ide-netbeans-6-7/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 18:04:38 +0000</pubDate>
		<dc:creator>Narayan</dc:creator>
				<category><![CDATA[Jar File]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[jar]]></category>
		<category><![CDATA[merge]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[single]]></category>
		<category><![CDATA[to]]></category>

		<guid isPermaLink="false">http://javanepal.wordpress.com/?p=409</guid>
		<description><![CDATA[Actually I am going to  show the simple way to merge many jar files to a single jar file .
Requirements:

 Firstly We need the NetBeans6.x.x
JDK 1.6

Here we&#8217;ll create a sample Project which is included in NetBeans.
I &#8216;m using NetBeans 6.7.1 and now i am starting my demonstration.
Let&#8217;s make a project File&#62;New Project&#62; &#8230;. and as [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javanepal.wordpress.com&blog=4540287&post=409&subd=javanepal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Actually I am going to  show the simple way to merge many jar files to a single jar file .</p>
<p>Requirements:</p>
<ul>
<li> Firstly We need the NetBeans6.x.x</li>
<li>JDK 1.6</li>
</ul>
<p>Here we&#8217;ll create a sample Project which is included in NetBeans.</p>
<p>I &#8216;m using NetBeans 6.7.1 and now i am starting my demonstration.</p>
<p>Let&#8217;s make a project File&gt;New Project&gt; &#8230;. and as your requirement you can make a project but there</p>
<p>is need of some extra jar files . If you are not familiar with adding jar files to Projects then ,<span id="more-409"></span></p>
<p>Please refer <a href="http://javanepal.wordpress.com/2009/09/15/how-to-make-jar-files-and-executable/">this</a>:</p>
<p>Now you are able to attach jar files in Project.</p>
<p>It&#8217;s time time to have some trick now, just choose  Files Tab in Project Window or just press Ctrl+2 as shown in figure</p>
<div id="attachment_463" class="wp-caption aligncenter" style="width: 618px"><img class="size-full wp-image-463" title="code" src="http://www.javacoder.co.cc/wp-content/uploads/2009/08/code.jpg" alt="File Tab" width="608" height="343" /><p class="wp-caption-text">File Tab</p></div>
<p>Now there you will see a<strong> build.xml </strong>which can be double click to edit it&#8217;s source. Now here we can combine our jar files</p>
<p>into single jar file  via XML .  Now copy and paste the following text to the end, just before the final line, which is the <strong> </strong> closing tag<strong><code>&lt;/project&gt;</code></strong></p>
<pre class="brush: xml;">
&lt;target name=&quot;package-for-store&quot; depends=&quot;jar&quot;&gt;

      &lt;!-- Change the value of this property to be the name of your JAR,
           minus the .jar extension. It should not have spaces.
           &lt;property name=&quot;store.jar.name&quot; value=&quot;MyJarName&quot;/&gt;
      --&gt;
      &lt;property name=&quot;store.jar.name&quot; value=&quot;MarsRoverViewer&quot;/&gt;

      &lt;!-- don't edit below this line --&gt;

      &lt;property name=&quot;store.dir&quot; value=&quot;store&quot;/&gt;
      &lt;property name=&quot;store.jar&quot; value=&quot;${store.dir}/${store.jar.name}.jar&quot;/&gt;

      &lt;echo message=&quot;Packaging ${application.title} into a single JAR at ${store.jar}&quot;/&gt;

      &lt;delete dir=&quot;${store.dir}&quot;/&gt;
      &lt;mkdir dir=&quot;${store.dir}&quot;/&gt;

      &lt;jar destfile=&quot;${store.dir}/temp_final.jar&quot; filesetmanifest=&quot;skip&quot;&gt;
          &lt;zipgroupfileset dir=&quot;dist&quot; includes=&quot;*.jar&quot;/&gt;
          &lt;zipgroupfileset dir=&quot;dist/lib&quot; includes=&quot;*.jar&quot;/&gt;

          &lt;manifest&gt;
              &lt;attribute name=&quot;Main-Class&quot; value=&quot;${main.class}&quot;/&gt;
          &lt;/manifest&gt;
      &lt;/jar&gt;

      &lt;zip destfile=&quot;${store.jar}&quot;&gt;
          &lt;zipfileset src=&quot;${store.dir}/temp_final.jar&quot;
          excludes=&quot;META-INF/*.SF, META-INF/*.DSA, META-INF/*.RSA&quot;/&gt;
      &lt;/zip&gt;

      &lt;delete file=&quot;${store.dir}/temp_final.jar&quot;/&gt;

  &lt;/target&gt;
</pre>
<p>You must see the code like this:</p>
<pre class="brush: xml;">
&lt;property name=&quot;store.jar.name&quot; value=&quot;MarsRoverViewer&quot;/&gt;
</pre>
<div class="wp-caption aligncenter" style="width: 608px"><img title="Code of XML" src="http://javacoder.co.cc/wp-image/code.png" alt="XML Format" width="598" height="426" /><p class="wp-caption-text">XML Format</p></div>
<p>Ok i&#8217;ll explain in brief:  On the above code there you will find the line like this:</p>
<p>Here you can edit the code according to your requirements</p>
<pre>&lt;property name="store.jar.<strong>name</strong>" value="<strong>MarsRoverViewer</strong>"/&gt;</pre>
<ul>
<li><strong>value=&#8221;MarsRoverViewer&#8221;</strong> defines the filename of the jar which  is the combination of all jars.</li>
<li><strong>property name=&#8221;stor.jar.name&#8221;</strong> define the property &#8217;s name which is stored in a directory <strong>/store</strong> and the with name of <strong>MarsRoverViewer</strong> which is defined in attribute <strong>value</strong> .</li>
</ul>
<p>After all you have finished your coding phase.</p>
<p>Now, When you&#8217;re ready to package all of your classes and libraries into a single JAR file, switch back to the Files view in the upper left, then right-click the <strong><code>build.xml</code></strong> file. Then choose Run Target&gt;Other Targets&gt;package-for-store. Now the compiler will start to combine your class files and other libraries to a single JAR file named MarsRoverViewer.</p>
<p>Executing this Ant target will create a directory called <strong><code>store</code> </strong>inside your project directory. NetBeans and Ant will then copy all of the classes and libraries into a temporary JAR file and strip out any unwanted files, placing the final result under the JAR name that you specified earlier. NetBeans will then delete the temporary file.</p>
<p>-Source (<a href="http://javacoder.co.cc">http://javacoder.co.cc</a>)</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/javanepal.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/javanepal.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/javanepal.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/javanepal.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/javanepal.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/javanepal.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/javanepal.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/javanepal.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/javanepal.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/javanepal.wordpress.com/409/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javanepal.wordpress.com&blog=4540287&post=409&subd=javanepal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://javanepal.wordpress.com/2009/09/15/merging-jar-files-to-single-jar-via-ide-netbeans-6-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bc299130c3980fbf3cbfdb754b518f46?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Narayan</media:title>
		</media:content>

		<media:content url="http://www.javacoder.co.cc/wp-content/uploads/2009/08/code.jpg" medium="image">
			<media:title type="html">code</media:title>
		</media:content>

		<media:content url="http://javacoder.co.cc/wp-image/code.png" medium="image">
			<media:title type="html">Code of XML</media:title>
		</media:content>
	</item>
		<item>
		<title>Operator Precedence in Java</title>
		<link>http://javanepal.wordpress.com/2009/09/14/operator-precedence-in-java/</link>
		<comments>http://javanepal.wordpress.com/2009/09/14/operator-precedence-in-java/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 17:17:54 +0000</pubDate>
		<dc:creator>Narayan</dc:creator>
				<category><![CDATA[Object Core]]></category>

		<guid isPermaLink="false">http://javanepal.wordpress.com/?p=405</guid>
		<description><![CDATA[The Java Programming language has it&#8217;s operator which is similar to other programming language like C,C++ as well.
All the operator has it&#8217;s own rule . So while using these operator we must know how the operators are being compiled by the java
Operator Precedence of Java are given  below:
       [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javanepal.wordpress.com&blog=4540287&post=405&subd=javanepal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The Java Programming language has it&#8217;s operator which is similar to other programming language like C,C++ as well.<br />
All the operator has it&#8217;s own rule . So while using these operator we must know how the operators are being compiled by the java<br />
Operator Precedence of Java are given  below:</p>
<div id="attachment_406" class="wp-caption aligncenter" style="width: 416px"><img src="http://javanepal.files.wordpress.com/2009/09/precedence.jpg?w=406&#038;h=414" alt="Operator Precedence" title="precedence" width="406" height="414" class="size-full wp-image-406" /><p class="wp-caption-text">Operator Precedence</p></div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/javanepal.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/javanepal.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/javanepal.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/javanepal.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/javanepal.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/javanepal.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/javanepal.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/javanepal.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/javanepal.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/javanepal.wordpress.com/405/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javanepal.wordpress.com&blog=4540287&post=405&subd=javanepal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://javanepal.wordpress.com/2009/09/14/operator-precedence-in-java/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bc299130c3980fbf3cbfdb754b518f46?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Narayan</media:title>
		</media:content>

		<media:content url="http://javanepal.files.wordpress.com/2009/09/precedence.jpg" medium="image">
			<media:title type="html">precedence</media:title>
		</media:content>
	</item>
		<item>
		<title>Trick of Positioning the Containers of JFrame</title>
		<link>http://javanepal.wordpress.com/2009/06/18/trick-of-positioning-the-containers-of-jframe/</link>
		<comments>http://javanepal.wordpress.com/2009/06/18/trick-of-positioning-the-containers-of-jframe/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 14:40:20 +0000</pubDate>
		<dc:creator>Narayan</dc:creator>
				<category><![CDATA[Applet]]></category>
		<category><![CDATA[containers]]></category>
		<category><![CDATA[height]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[JFrame]]></category>
		<category><![CDATA[positon]]></category>
		<category><![CDATA[programmer]]></category>
		<category><![CDATA[setBounds]]></category>
		<category><![CDATA[trick]]></category>
		<category><![CDATA[width]]></category>
		<category><![CDATA[x]]></category>
		<category><![CDATA[y]]></category>

		<guid isPermaLink="false">http://javanepal.wordpress.com/?p=385</guid>
		<description><![CDATA[Many developers want their own Layout Manager with user-defined so JAVA has provided a separate method for the every container of JFrame Component and that method is setBounds(). This method helps the developers to position the container as per their need .
About SetBounds() method:
This method consists four parameter
  Syntax:
     xxx.setBounds(int [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javanepal.wordpress.com&blog=4540287&post=385&subd=javanepal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Many developers want their own Layout Manager with user-defined so JAVA has provided a separate method for the every container of JFrame Component and that method is<strong> setBounds()</strong>. This method helps the developers to position the container as per their need .</p>
<p>About<strong> SetBounds()</strong> method:</p>
<p>This method consists four parameter</p>
<pre>  Syntax:
    <strong> </strong><em><strong>xxx.setBounds(int x_axis, int y_axis, int width, int height);</strong>
<span id="more-385"></span></em></pre>
<p>We can arrange the containers with the help of this method easily.</p>
<p>A example of this method is shown below:</p>
<pre class="brush: java;">
import javax.swing.*;

public class LoginPanel {

public LoginPanel() {

}

public static void main (String[] args) {
JFrame frame = new JFrame();

frame.setLayout(null);

//For Positioning the Containers

//Labeling
JLabel label = new JLabel(&quot;WELCOME TO&quot;+
&quot;LOGIN PANEL&quot;, JLabel.CENTER);
JLabel user = new JLabel(&quot;UserName:\t&quot;);
JLabel pass = new JLabel(&quot;Password:\t&quot;);

//Some features of SETBOUNDS() Methods
//setBounds(x-axis, y-axis, width, height);
label.setBounds(150,10,220,20);
user.setBounds(150,50,100,50);
pass.setBounds(150,90,100,50);

//TextField
JTextField userField = new JTextField();
JPasswordField passField = new JPasswordField();

//Some of the features of SETBOUNDS() Methods
//setBounds(x-axis, y-axis, width, height);
userField.setBounds(250,65,80,20);
passField.setBounds(250,105,80,20);

//Button
JButton but1 = new JButton(&quot;Submit&quot;);

//setBounds(x-axis, y-axis, width, height);
but1.setBounds(200,150,100,20);

//adding containers to JFRAME
frame.getContentPane().add(label);
frame.getContentPane().add(user);
frame.getContentPane().add(userField);
frame.getContentPane().add(pass);
frame.getContentPane().add(passField);
frame.getContentPane().add(but1);

//features of JFrame
//Although these can be defined
//before the containers.
//We defined at last
frame.setVisible(true);
frame.setSize(500,300);

}

}
</pre>
<p>And the output must be like this:</p>
<div id="attachment_393" class="wp-caption aligncenter" style="width: 478px"><img class="size-full wp-image-393" title="output" src="http://javanepal.files.wordpress.com/2009/06/output.png?w=468&#038;h=280" alt="Login Panel Output" width="468" height="280" /><p class="wp-caption-text">Login Panel Output</p></div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/javanepal.wordpress.com/385/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/javanepal.wordpress.com/385/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/javanepal.wordpress.com/385/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/javanepal.wordpress.com/385/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/javanepal.wordpress.com/385/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/javanepal.wordpress.com/385/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/javanepal.wordpress.com/385/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/javanepal.wordpress.com/385/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/javanepal.wordpress.com/385/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/javanepal.wordpress.com/385/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javanepal.wordpress.com&blog=4540287&post=385&subd=javanepal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://javanepal.wordpress.com/2009/06/18/trick-of-positioning-the-containers-of-jframe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bc299130c3980fbf3cbfdb754b518f46?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Narayan</media:title>
		</media:content>

		<media:content url="http://javanepal.files.wordpress.com/2009/06/output.png" medium="image">
			<media:title type="html">output</media:title>
		</media:content>
	</item>
		<item>
		<title>JNode (Open Source Project)</title>
		<link>http://javanepal.wordpress.com/2009/06/10/jnode-open-source-project/</link>
		<comments>http://javanepal.wordpress.com/2009/06/10/jnode-open-source-project/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 03:51:28 +0000</pubDate>
		<dc:creator>Narayan</dc:creator>
				<category><![CDATA[Advance]]></category>
		<category><![CDATA[Bootable]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[JBS]]></category>
		<category><![CDATA[JNode]]></category>
		<category><![CDATA[JVM]]></category>
		<category><![CDATA[System]]></category>

		<guid isPermaLink="false">http://javanepal.wordpress.com/?p=363</guid>
		<description><![CDATA[JNode is the open-source project for making a Java Platform OS(Operating System).
This project had take a exclusive track of making all the software in Java in itself.
As Java Virtual Machine(JVM) only accepts bytecode so the Compiler used to develop native binaries out. In this way, nearly the entire system is able of being written in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javanepal.wordpress.com&blog=4540287&post=363&subd=javanepal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;"><strong>JNode</strong> is the open-source project for making a Java Platform<strong> OS</strong>(Operating System).<br />
This project had take a exclusive track of making all the software in Java in itself.<br />
As <strong>Java Virtual Machine</strong>(JVM) only accepts bytecode so the Compiler used to develop native binaries out. In this way, nearly the entire system is able of being written in the JAVA programming Language.</p>
<p style="text-align:justify;">Ewout Prangsma firstly started work of developing the <strong>Java Bootable System</strong>(JBS) during 1995 .He had caught special feature of Java. In his mind he himself imagined<em> a system that was not only a VM, but a complete runtime environment that does not need any other form of operating system.</em> So is had to be a light weight and most important flexible system. The author was not satisfied with the C and assembly language required and head towards on to a new attempt called JBS2.</p>
<p style="text-align:justify;"><strong>Jnode</strong> uses only two languages i.e.<strong> Java</strong> and <strong>Assembly Language</strong>. This system presently understands the FAT,NTFS,ext2 and ISO 9660 file system. It also has a GUI(Graphical User Interface) with USB peripherals and TCP/IP network protocol. It can be boot from CD or run in any popular emulator. It uses <strong>GNU</strong> Classpath Java Library and can run any Java Programs.</p>
<p>The latest version of JNode can be found in :</p>
<p><a class="alignleft" title="JNode Downloads" href="http://www.jnode.org/download_latest" target="_blank">http://www.jnode.org/download_latest</a></p>
<p>For more Detail :<strong> <a title="JNode" href="http://www.jnode.org" target="_blank">http://www.jnode.org</a></strong></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/javanepal.wordpress.com/363/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/javanepal.wordpress.com/363/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/javanepal.wordpress.com/363/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/javanepal.wordpress.com/363/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/javanepal.wordpress.com/363/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/javanepal.wordpress.com/363/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/javanepal.wordpress.com/363/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/javanepal.wordpress.com/363/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/javanepal.wordpress.com/363/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/javanepal.wordpress.com/363/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javanepal.wordpress.com&blog=4540287&post=363&subd=javanepal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://javanepal.wordpress.com/2009/06/10/jnode-open-source-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bc299130c3980fbf3cbfdb754b518f46?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Narayan</media:title>
		</media:content>
	</item>
		<item>
		<title>Some of the System Properties of Java</title>
		<link>http://javanepal.wordpress.com/2009/06/06/some-of-the-system-properties-of-java/</link>
		<comments>http://javanepal.wordpress.com/2009/06/06/some-of-the-system-properties-of-java/#comments</comments>
		<pubDate>Sat, 06 Jun 2009 15:16:21 +0000</pubDate>
		<dc:creator>Narayan</dc:creator>
				<category><![CDATA[Classes]]></category>
		<category><![CDATA[Object Core]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[key]]></category>
		<category><![CDATA[properties]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://javanepal.wordpress.com/?p=308</guid>
		<description><![CDATA[If we want to programmatically determine what version of the Java Runtime Environment
(JRE) is being used to execute a given application then, we can get the version via the following code illustrates:
//IN WINDOWS PLATFORM
String ver = System.getProperty("java.version"));
System.out.println("This program is running under JRE version " + ver);
if (ver.startsWith("1.5")) {
// Pseudocode.
do something appropriate for newer versions of Java [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javanepal.wordpress.com&blog=4540287&post=308&subd=javanepal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If we want to programmatically determine what version of the Java Runtime Environment</p>
<p>(JRE) is being used to execute a given application then, we can get the version via the following code illustrates:</p>
<p><code>//IN WINDOWS PLATFORM</code></p>
<p><code>String ver = System.getProperty("java.version"));<br />
System.out.println("This program is running under JRE version " + ver);</code></p>
<p><code>if (ver.startsWith("1.5")) {</code><br />
<code>// Pseudocode.</code><code><br />
do something appropriate for newer versions of Java ...<br />
}</code></p>
<p><code>else {<br />
// Pseudocode.</code><br />
<code>do something the pre-5.0 way ...<br />
}<span id="more-308"></span></code></p>
<p>Some of the java System Properties <strong>based on JDK 1.5 </strong> are given as follows:</p>
<hr />
<table border="0">
<tbody>
<tr>
<td width="180"><strong>Key</strong></td>
<td><strong>Description of Associated Value</strong></td>
</tr>
</tbody>
</table>
<hr />
<table style="height:582px;" border="0" width="480">
<tbody>
<tr>
<td width="180"><code>java.version</code></td>
<td>Java Runtime Environment version</td>
</tr>
<tr>
<td><code>java.vendor</code></td>
<td>Java Runtime Environment vendor</td>
</tr>
<tr>
<td><code>java.vendor.url</code></td>
<td>Java vendor URL</td>
</tr>
<tr>
<td><code>java.home</code></td>
<td>Java installation directory</td>
</tr>
<tr>
<td><code>java.vm.specification.version</code></td>
<td>Java Virtual Machine specification version</td>
</tr>
<tr>
<td><code>java.vm.specification.vendor</code></td>
<td>Java Virtual Machine specification vendor</td>
</tr>
<tr>
<td><code>java.vm.specification.name</code></td>
<td>Java Virtual Machine specification name</td>
</tr>
<tr>
<td><code>java.vm.version</code></td>
<td>Java Virtual Machine implementation version</td>
</tr>
<tr>
<td><code>java.vm.vendor</code></td>
<td>Java Virtual Machine implementation vendor</td>
</tr>
<tr>
<td><code>java.vm.name</code></td>
<td>Java Virtual Machine implementation name</td>
</tr>
<tr>
<td><code>java.specification.version</code></td>
<td><code>Java Runtime Environment specification version</code></td>
</tr>
<tr>
<td><code>java.specification.vendor</code></td>
<td>Java Runtime Environment specification vendor</td>
</tr>
<tr>
<td><code>java.specification.name</code></td>
<td>Java Runtime Environment specification name</td>
</tr>
<tr>
<td><code>java.class.version</code></td>
<td>Java class format version number</td>
</tr>
<tr>
<td><code>java.class.path</code></td>
<td>Java class path</td>
</tr>
<tr>
<td><code>java.library.path</code></td>
<td>List of paths to search when loading libraries</td>
</tr>
<tr>
<td><code>java.io.tmpdir</code></td>
<td>Default temporary file path</td>
</tr>
<tr>
<td><code>java.compiler</code></td>
<td>Name of JIT compiler to use</td>
</tr>
<tr>
<td><code>java.ext.dirs</code></td>
<td>Path of extension directory or directories</td>
</tr>
<tr>
<td><code>os.name</code></td>
<td>Operating system name</td>
</tr>
<tr>
<td><code>os.arch</code></td>
<td>Operating system architecture</td>
</tr>
<tr>
<td><code>os.version</code></td>
<td>Operating system version</td>
</tr>
<tr>
<td><code>file.separator</code></td>
<td>File separator (/ on Unix)</td>
</tr>
<tr>
<td><code>path.separator</code></td>
<td>Path separator (: on Unix)</td>
</tr>
<tr>
<td><code>line.separator</code></td>
<td>Line separator (\n on Unix)</td>
</tr>
<tr>
<td><code>user.name</code></td>
<td>User’s account name</td>
</tr>
<tr>
<td><code>user.home</code></td>
<td>User’s home directory</td>
</tr>
<tr>
<td><code>user.dir</code></td>
<td>User’s current working directory</td>
</tr>
</tbody>
</table>
<p>The following table describes some of the most important system properties <strong>BASED on JDK 1.6</strong></p>
<hr />
<table border="0">
<tbody>
<tr>
<td style="text-align:center;" width="251"><strong>Key</strong></td>
<td style="text-align:center;" width="811"><strong>Description of Associated Value</strong></td>
</tr>
</tbody>
</table>
<hr />
<table border="0" cellpadding="2" width="80%" align="center">
<tbody>
<tr>
<td width="251"><code>"file.separator"</code></td>
<td width="811">Character that separates components of a file path. This is<br />
&#8220;<code>/</code>&#8221; on UNIX and &#8220;<code>\</code>&#8221; on<br />
Windows.</td>
</tr>
<tr>
<td><code>"java.class.path"</code></td>
<td>Path used to find directories and JAR archives containing class files.<br />
Elements of the class path are separated by a platform-specific character specified in the <code>path.separator</code> property.</td>
</tr>
<tr>
<td><code>"java.home"</code></td>
<td>Installation directory for Java Runtime Environment (JRE)</td>
</tr>
<tr>
<td><code>"java.vendor"</code></td>
<td>JRE vendor name</td>
</tr>
<tr>
<td><code>"java.vendor.url"</code></td>
<td>JRE vender URL</td>
</tr>
<tr>
<td><code>"java.version"</code></td>
<td>JRE version number</td>
</tr>
<tr>
<td><code>"line.separator"</code></td>
<td>Sequence used by operating system to separate lines in<br />
text files</td>
</tr>
<tr>
<td><code>"os.arch"</code></td>
<td>Operating system architecture</td>
</tr>
<tr>
<td><code>"os.name"</code></td>
<td>Operating system name</td>
</tr>
<tr>
<td><code>"os.version"</code></td>
<td>Operating system version</td>
</tr>
<tr>
<td><code>"path.separator"</code></td>
<td>Path separator character used in <code>java.class.path</code></td>
</tr>
<tr>
<td><code>"user.dir"</code></td>
<td>User working directory</td>
</tr>
<tr>
<td><code>"user.home"</code></td>
<td>User home directory</td>
</tr>
<tr>
<td><code>"user.name"</code></td>
<td>User account name</td>
</tr>
</tbody>
</table>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/javanepal.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/javanepal.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/javanepal.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/javanepal.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/javanepal.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/javanepal.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/javanepal.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/javanepal.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/javanepal.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/javanepal.wordpress.com/308/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javanepal.wordpress.com&blog=4540287&post=308&subd=javanepal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://javanepal.wordpress.com/2009/06/06/some-of-the-system-properties-of-java/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bc299130c3980fbf3cbfdb754b518f46?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Narayan</media:title>
		</media:content>
	</item>
		<item>
		<title>Java Software Development Kit Installation</title>
		<link>http://javanepal.wordpress.com/2009/05/28/java-software-development-kit-installation/</link>
		<comments>http://javanepal.wordpress.com/2009/05/28/java-software-development-kit-installation/#comments</comments>
		<pubDate>Thu, 28 May 2009 04:28:57 +0000</pubDate>
		<dc:creator>Narayan</dc:creator>
				<category><![CDATA[ABC of Object]]></category>
		<category><![CDATA[classpath]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[value]]></category>
		<category><![CDATA[variable]]></category>

		<guid isPermaLink="false">http://javanepal.wordpress.com/?p=293</guid>
		<description><![CDATA[First of all if you have already java then uninstall that java and download Java Sdk from Sun Microsystem :
For download:   jdk 1.6
Then choose your appropriate Operation System and download and Install the *.EXE program
This is one of the tough point for  beginner to install java Beginner.
Some of the steps to maintain Path [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javanepal.wordpress.com&blog=4540287&post=293&subd=javanepal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>First of all if you have already java then uninstall that java and download Java Sdk from Sun Microsystem :<br />
For download:   <a href="http://download.java.net/jdk6/">jdk 1.6</a><br />
Then choose your appropriate Operation System and download and Install the *.EXE program</p>
<p>This is one of the tough point for  beginner to install java Beginner.</p>
<p><strong>Some of the steps to maintain Path of Java compiler are given as follows:</strong></p>
<p>STEP 1: <em>Right click on My Computer and Go<strong> properties</strong>.<span id="more-293"></span></em></p>
<p>STEP 2: <em>Dialogue  Box Appears (<strong>given in fig 1.1</strong>) Go to <strong>Advance Tab</strong> &gt; <strong>Environment Variables</strong>..</em></p>
<div id="attachment_295" class="wp-caption aligncenter" style="width: 436px"><img class="size-full wp-image-295" title="Fig 1" src="http://javanepal.files.wordpress.com/2009/05/fig-11.png?w=426&#038;h=474" alt="Fig 1.1" width="426" height="474" /><p class="wp-caption-text">Fig 1.1 A Dialogue Box of Advance Tab</p></div>
<p>STEP 3:<em> Now in New Dialogue box (<strong>given in fig.1.2</strong> )  You can click on New Tab for creating new variable<!--more--></em></p>
<div id="attachment_296" class="wp-caption aligncenter" style="width: 404px"><img class="size-full wp-image-296" title="Fig 2" src="http://javanepal.files.wordpress.com/2009/05/fig-2.png?w=394&#038;h=436" alt="Fig 1.2 Environment Variables Dialogue Box" width="394" height="436" /><p class="wp-caption-text">Fig 1.2 Environment Variables Dialogue Box</p></div>
<p>STEP 4: <em>New Small Dialogue Box appears and there you need to type the variable name as <strong>PATH</strong> and for </em><em>Value you      need to paste the <strong>\bin</strong> directory of Java development kit (jdk 1.x.xx). shown in fig<strong> 1.3.</strong></em></p>
<div id="attachment_298" class="wp-caption aligncenter" style="width: 367px"><img class="size-full wp-image-298" title="New User Variable" src="http://javanepal.files.wordpress.com/2009/05/new-user-variable1.png?w=357&#038;h=153" alt="fig 1.3 New User Variable" width="357" height="153" /><p class="wp-caption-text">fig 1.3 New User Variable</p></div>
<p>STEP 5: <em>Now click on Ok and run <strong>Command</strong> .</em></p>
<p>STEP 6: <em>In command you need to type<strong> <code>javac</code></strong> which output like in <strong>fig 1.4</strong></em></p>
<div id="attachment_302" class="wp-caption aligncenter" style="width: 477px"><img class="size-full wp-image-302" title="javac in command" src="http://javanepal.files.wordpress.com/2009/05/javac-in-command3.png?w=467&#038;h=344" alt="1.4 javac in command " width="467" height="344" /><p class="wp-caption-text">fig. 1.4 javac in command </p></div>
<p>STEP 7: If your output gives like fig.1.4 then you are able to compile your java source code by following ways</p>
<p><strong><br />
</strong></p>
<p><strong>Also I need to tell dat the  we can set CLASSPATH at ENVIRONMENT VARIABLES  via DOS for  compiling java file;<br />
</strong></p>
<p>Here are some steps for windows:</p>
<p><em><strong>&gt; Go to Command Prompt </strong></em></p>
<p>&gt; type : <strong>set JAVA_HOME=<em>directory(path)_of_your_jdk (</em></strong><em>as on fig 1.5</em><strong><em>)</em></strong></p>
<p><strong><em> </em></strong></p>
<div id="attachment_348" class="wp-caption aligncenter" style="width: 478px"><strong><em><strong><em><img class="size-full wp-image-348" title="FIG_1.5" src="http://javanepal.files.wordpress.com/2009/05/fig_1-5.jpg?w=468&#038;h=228" alt="fig 1.5" width="468" height="228" /></em></strong></em></strong><p class="wp-caption-text">fig 1.5</p></div>
<p><strong><em> </em></strong></p>
<p><strong><em>&gt;</em></strong>now type : <strong>set CLASSPATH=%JAVA_HOME%\bin</strong>.(<em>as on fig 1.6)</em></p>
<p><em> </em></p>
<div id="attachment_351" class="wp-caption aligncenter" style="width: 478px"><em><em><img class="size-full wp-image-351" title="FIG_1.6" src="http://javanepal.files.wordpress.com/2009/05/fig_1-61.jpg?w=468&#038;h=231" alt="fig 1.6" width="468" height="231" /></em></em><p class="wp-caption-text">fig 1.6</p></div>
<p><em>&gt;</em>Also you need to set CLASSPATH of your JAVA LIB(library).</p>
<p>&gt;Type : <strong>set CLASSPATH=%JAVA_HOME%\lib</strong> (for library of java)</p>
<p><strong>Testing either the compiler path , library is correct or not.</strong></p>
<p>&gt;Type : <strong>echo %JAVA_HOME%</strong> (<em>displays the path of Java installed</em>)</p>
<p>&gt;Type : <strong>echo %CLASSPATH% </strong>(<em>displays the path of your java lib, java compiler as well</em>)</p>
<p>If every thing goes alright then compile java file through following ways via Command at DOS:</p>
<p>For eg: To compile <em><a href="www.javacoder.co.cc/download/HelloWorld.java">HelloWorld.java</a></em><br />
Type  <code>: <strong>javac HelloWorld.java</strong></code><br />
Type<code> <strong>: java HelloWorld</strong></code></p>
<p>Outputs:<br />
________________<br />
HelloWorld!!!<br />
________________</p>
<p>That almost Finished in Windows Java Compile !</p>
<p>If any problem occurs then comment me or just mail me!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/javanepal.wordpress.com/293/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/javanepal.wordpress.com/293/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/javanepal.wordpress.com/293/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/javanepal.wordpress.com/293/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/javanepal.wordpress.com/293/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/javanepal.wordpress.com/293/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/javanepal.wordpress.com/293/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/javanepal.wordpress.com/293/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/javanepal.wordpress.com/293/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/javanepal.wordpress.com/293/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=javanepal.wordpress.com&blog=4540287&post=293&subd=javanepal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://javanepal.wordpress.com/2009/05/28/java-software-development-kit-installation/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bc299130c3980fbf3cbfdb754b518f46?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Narayan</media:title>
		</media:content>

		<media:content url="http://javanepal.files.wordpress.com/2009/05/fig-11.png" medium="image">
			<media:title type="html">Fig 1</media:title>
		</media:content>

		<media:content url="http://javanepal.files.wordpress.com/2009/05/fig-2.png" medium="image">
			<media:title type="html">Fig 2</media:title>
		</media:content>

		<media:content url="http://javanepal.files.wordpress.com/2009/05/new-user-variable1.png" medium="image">
			<media:title type="html">New User Variable</media:title>
		</media:content>

		<media:content url="http://javanepal.files.wordpress.com/2009/05/javac-in-command3.png" medium="image">
			<media:title type="html">javac in command</media:title>
		</media:content>

		<media:content url="http://javanepal.files.wordpress.com/2009/05/fig_1-5.jpg" medium="image">
			<media:title type="html">FIG_1.5</media:title>
		</media:content>

		<media:content url="http://javanepal.files.wordpress.com/2009/05/fig_1-61.jpg" medium="image">
			<media:title type="html">FIG_1.6</media:title>
		</media:content>
	</item>
	</channel>
</rss>