<?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>TechJug &#187; java</title>
	<atom:link href="http://www.techjug.com/index.php/category/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techjug.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sat, 02 Jan 2010 09:26:10 +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>Eclipse and MyEclipse Proxy Settings</title>
		<link>http://www.techjug.com/index.php/2009/12/eclipse-and-myeclipse-proxy-settings/</link>
		<comments>http://www.techjug.com/index.php/2009/12/eclipse-and-myeclipse-proxy-settings/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 13:04:00 +0000</pubDate>
		<dc:creator>ali</dc:creator>
				<category><![CDATA[J2EE]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[Java IDE]]></category>
		<category><![CDATA[myeclipse]]></category>

		<guid isPermaLink="false">http://www.techjug.com/index.php/2009/12/eclipse-and-myeclipse-proxy-settings/</guid>
		<description><![CDATA[&#160;
If you want to update your Eclipse platform and your machine is behind a proxy, then you need to set your network proxy in order for you Eclipse to download the updates.
You can set the proxy as follows
1- Go to window &#62; preferences
 
 
&#160;
2- Select General &#62; Network Connections. Provide HTTP proxy and port [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>If you want to update your Eclipse platform and your machine is behind a proxy, then you need to set your network proxy in order for you Eclipse to download the updates.</p>
<p>You can set the proxy as follows</p>
<p>1- Go to <strong>window &gt; preferences</strong></p>
<p> <span id="more-182"></span>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/image7.png"><img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="344" alt="image" src="http://www.techjug.com/wp-content/uploads/2009/12/image_thumb7.png" width="508" border="0" /></a> </p>
<p>&#160;</p>
<p>2- Select <strong>General &gt; Network Connections</strong>. Provide HTTP proxy and port and press OK. Your proxy is set and you can update your Eclipse platform now</p>
<p><strong></strong></p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/image9.png"><img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="484" alt="image" src="http://www.techjug.com/wp-content/uploads/2009/12/image_thumb9.png" width="552" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techjug.com/index.php/2009/12/eclipse-and-myeclipse-proxy-settings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial: Creating Java Web Application</title>
		<link>http://www.techjug.com/index.php/2009/12/tutorial-creating-java-web-application/</link>
		<comments>http://www.techjug.com/index.php/2009/12/tutorial-creating-java-web-application/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 18:41:36 +0000</pubDate>
		<dc:creator>ali</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[J2EE]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://www.techjug.com/index.php/2009/12/tutorial-creating-java-web-application/</guid>
		<description><![CDATA[In this tutorial you will learn how to create a simple Hello World Java web application. The application will not use any IDE and will solely depend on what JDK provides. 
So, let start with our first java hello world web application.

Pre-Requisites
1- Download JDK from here. Latest JDK version at the time of writing this [...]]]></description>
			<content:encoded><![CDATA[<p>In this tutorial you will learn how to create a simple Hello World Java web application. The application will not use any IDE and will solely depend on what JDK provides. </p>
<p>So, let start with our first java hello world web application.</p>
<p><strong></strong></p>
<p><strong>Pre-Requisites</strong></p>
<p>1- Download JDK from <a href="http://java.sun.com/javase/downloads/index.jsp"><strong>here</strong></a>. Latest JDK version at the time of writing this tutorial is 6.</p>
<p>2- Download and install/unzip Apache Tomcat web server (zip or tar for Linux or installer) from <a href="http://tomcat.apache.org/download-60.cgi"><strong>here</strong></a></p>
<p>  <span id="more-171"></span>
<p>&#160;</p>
<p><strong>Set up Java environment on your machine</strong></p>
<p>Please refer to <a href="http://www.techjug.com/index.php/2009/12/install-and-configure-jdk-in-windows/#more-157">Install And Configure JDK On Windows</a></p>
<p>&#160;</p>
<p><strong>Set up Apache Tomcat environment on your machine</strong></p>
<p>Please refer to <a href="http://www.techjug.com/index.php/2009/12/set-up-apache-tomcat-on-windows/">Set Up Apache Tomcat On Windows</a></p>
<p>&#160;</p>
<p>Now your JDK and Tomcat is setup. We will start developing our web application. This will be a very simple web application in which only one JSP will be created and it will print some text in browser.</p>
<p>Lets get started.</p>
<p>&#160;</p>
<p>1- Create a folder <strong>Helloworld</strong> anywhere on your machine</p>
<p>2- Create a JSP file <strong>helloworld.jsp</strong> under this folder.</p>
<p>3- Put the following code in helloworld.jsp</p>
<p> <br/>
<pre class="html4strict">&nbsp;
&nbsp;
<span style="color: #009900;"><a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">&lt;html&gt;</span></a></span>
  <span style="color: #009900;"><a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">&lt;head&gt;</span></a></span>
    <span style="color: #009900;"><a href="http://december.com/html/4/element/title.html"><span style="color: #000000; font-weight: bold;">&lt;title&gt;</span></a></span>Hello world<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/head&gt;</span></span>
&nbsp;
  <span style="color: #009900;"><a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">&lt;body&gt;</span></a></span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/h1.html"><span style="color: #000000; font-weight: bold;">&lt;h1&gt;</span></a></span>Hello World!!!<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/h1&gt;</span></span>
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/body&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/html&gt;</span></span>
&nbsp;</pre>
<p><br/></p>
<p>4- Create folder <strong>Helloworld/WEB-INF </strong></p>
<p>5- Create a file <strong>web.xml </strong>in <strong>WEB-INF </strong>and put the following code in this file</p>
<pre class="xml">&nbsp;
&nbsp;
<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;web-app</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;2.5&quot;</span> <span style="color: #000066;">xsi:schemaLocation</span>=<span style="color: #ff0000;">&quot;
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span>
&nbsp;
<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;welcome-file-list<span style="font-weight: bold; color: black;">&gt;</span></span></span>
<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;welcome-file<span style="font-weight: bold; color: black;">&gt;</span></span></span>helloworld.jsp<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/welcome-file<span style="font-weight: bold; color: black;">&gt;</span></span></span>
<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/welcome-file-list<span style="font-weight: bold; color: black;">&gt;</span></span></span>
<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/web-app<span style="font-weight: bold; color: black;">&gt;</span></span></span>
&nbsp;</pre>
<p>6- That’s it. We are done with the coding part. Now copy the entire Helloworld folder and put it in <strong>&lt;tomcat-home&gt;/webapps</strong></p>
<p>7- Start tomcat server, &lt;tomcat-home&gt;/bin/startup.bat</p>
<p>8- Open your browser, and access the following URL <a href="http://localhost:8080/Helloworld">http://localhost:8080/Helloworld</a></p>
<p>&#160;</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techjug.com/index.php/2009/12/tutorial-creating-java-web-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install And Configure JDK On Windows</title>
		<link>http://www.techjug.com/index.php/2009/12/install-and-configure-jdk-in-windows/</link>
		<comments>http://www.techjug.com/index.php/2009/12/install-and-configure-jdk-in-windows/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 19:48:10 +0000</pubDate>
		<dc:creator>ali</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[Jdk]]></category>

		<guid isPermaLink="false">http://www.techjug.com/index.php/2009/12/install-and-configure-jdk-in-windows/</guid>
		<description><![CDATA[&#160;
First download JDK from here. I am using JDK 6 for this tutorial
1- Run the JDK setup and install Java on your machine
2- On windows right click My Computer and click Properties
 
3- Choose Advance tab and click on Environment Variables button
&#160;
 
&#160;
4- Under System variable press New button
&#160;
 
5- Provide JAVA_HOME variable in Variable [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>First download JDK from <a href="http://java.sun.com/javase/downloads/index.jsp"><strong>here</strong></a>. I am using JDK 6 for this tutorial</p>
<p>1- Run the JDK setup and install Java on your machine</p>
<p>2- On windows right click <strong>My Computer</strong> and click <strong>Properties</strong></p>
<p> <span id="more-157"></span>
<p>3- Choose <strong>Advance</strong> tab and click on <strong>Environment Variables </strong>button</p>
<p>&#160;</p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/image.png"><img title="image" style="border-top-width: 0px; display: block; border-left-width: 0px; float: none; border-bottom-width: 0px; margin-left: auto; margin-right: auto; border-right-width: 0px" height="490" alt="image" src="http://www.techjug.com/wp-content/uploads/2009/12/image_thumb.png" width="423" border="0" /></a> </p>
<p>&#160;</p>
<p>4- Under <strong>System variable</strong> press <strong>New </strong>button</p>
<p>&#160;</p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/image1.png"><img title="image" style="border-top-width: 0px; display: block; border-left-width: 0px; float: none; border-bottom-width: 0px; margin-left: auto; margin-right: auto; border-right-width: 0px" height="434" alt="image" src="http://www.techjug.com/wp-content/uploads/2009/12/image_thumb1.png" width="388" border="0" /></a> </p>
<p>5- Provide <strong>JAVA_HOME </strong>variable in Variable name field and your <strong>JDK Home path</strong> in Variable value</p>
<p>&#160;</p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/image2.png"><img title="image" style="border-top-width: 0px; display: block; border-left-width: 0px; float: none; border-bottom-width: 0px; margin-left: auto; margin-right: auto; border-right-width: 0px" height="151" alt="image" src="http://www.techjug.com/wp-content/uploads/2009/12/image_thumb2.png" width="351" border="0" /></a> </p>
<p>&#160;</p>
<p>6- Find <strong>Path </strong>variable under System variables and press <strong>Edit</strong>&#160; button.&#160; Append path up to JDK bin directory and press OK.</p>
<p>To check whether you JDK is setup properly open command prompt and write following command on console </p>
<p>&gt; <strong>java –version</strong></p>
<p>You will get output similar to the following image.</p>
<p>&#160;</p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/NewPicture.png"><img title="New Picture" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="136" alt="New Picture" src="http://www.techjug.com/wp-content/uploads/2009/12/NewPicture_thumb.png" width="673" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techjug.com/index.php/2009/12/install-and-configure-jdk-in-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
