﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-两亩三分地-文章分类-English Area</title><link>http://www.blogjava.net/chucky/category/34182.html</link><description /><language>zh-cn</language><lastBuildDate>Thu, 28 Aug 2008 15:23:29 GMT</lastBuildDate><pubDate>Thu, 28 Aug 2008 15:23:29 GMT</pubDate><ttl>60</ttl><item><title>Configuring MySQL and Tomcat 6.x in Netbeans 6.1</title><link>http://www.blogjava.net/chucky/articles/225255.html</link><dc:creator>Chucky</dc:creator><author>Chucky</author><pubDate>Thu, 28 Aug 2008 11:40:00 GMT</pubDate><guid>http://www.blogjava.net/chucky/articles/225255.html</guid><wfw:comment>http://www.blogjava.net/chucky/comments/225255.html</wfw:comment><comments>http://www.blogjava.net/chucky/articles/225255.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/chucky/comments/commentRss/225255.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chucky/services/trackbacks/225255.html</trackback:ping><description><![CDATA[I have been using Netbeans to write code, draw UML for one and half years. During the period, I can see the functions it provides are getting more and more powerful&nbsp;and the servers and frameworks it supports also become more and more.Rightnow I started to learn framework, since&nbsp;there are much tutorials about&nbsp;using frameworks to develop&nbsp;Web &amp; J2EE applications. I decided to use Netbeans as IDE to learn frameworks. So the first thing I should face to is to install database and server.<br />
<br />
I don't&nbsp;need&nbsp;to spend time on&nbsp;introducing <a href="http://www.netbeans.org" herf="www.netbeans.org">Netbeans</a>. Of course, comparing to Eclipse, Netbeans still has lots spaces need to improve. But to me, Netbeans is no doubted a good and powerful tool for me. The latest version is 6.5 beta, but I think <a href="http://download.netbeans.org/netbeans/6.1/final/">6.1 Final</a>&nbsp;is enough for studying purpose.<br />
<br />
<br />
To MySQL, there is a <a href="http://download.netbeans.org/netbeans/6.1/mysql_bundle/">MySQL GlassFish Bundle Netbeans</a>&nbsp; on the web. Certainly, we can manually install <a href="http://dev.mysql.com/downloads/mysql/5.0.html#downloads">MySQL community edition</a>.&nbsp; There is a windows installation pack and zip pack, and we can google many articles about how to install MySQL, normally about how to add MySQL to windows Services.&nbsp; <a href="http://dev.mysql.com/downloads/gui-tools/5.0.html">MySQL GUI Tools</a>&nbsp;is also necessary. About <a href="http://dev.mysql.com/downloads/connector/">MySQL Java Connector</a>, it is essential as well. But I think Netbeans provides MySQL JDBC Driver - mysql-connector-java-5.1.5-bin.jar already.<br />
<br />
If choose to install <a href="http://download.netbeans.org/netbeans/6.1/mysql_bundle/">MySQL GlassFish Bundle edition</a>,, we don't need to configure any more but to setup MySQL GUI Tools, as following figure. If manually install MySQL, we need to setup the path of start command and stop command which also can reference to following figure.<br />
<br />
<img alt="mysql configuration" src="http://www.blogjava.net/images/blogjava_net/chucky/mysql.JPG" border="0" /><br />
<br />
Comparing to install MySQL, I think Tomcat is much easier to install.&nbsp; The&nbsp; full pack or Web&nbsp;&amp;&nbsp;Java&nbsp;EE&nbsp;Pack <a href="http://download.netbeans.org/netbeans/6.1/final/">Netbeans 6.1 Final edition</a>&nbsp;already had bundled Tomcat 6.0.16。Manual installation is not hard either, and the latest version is <a href="http://tomcat.apache.org/download-60.cgi">Tomcat 6.x </a>. The thing we should notice is that we have better not to install <a href="http://apache.wildit.net.au/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.exe">windows installation pack</a>,&nbsp;since the <a href="http://apache.wildit.net.au/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.exe">pack</a>&nbsp;missed some batch files. During the configuring server&nbsp;in Netbeans, there would be some warning display.&nbsp;I suggest downloading the zip&nbsp;pack&nbsp;to install.&nbsp;<br />
<br />
<strong><span style="font-size: 18pt; color: #000080">Step by step for configuring server.</span><br />
<br />
</strong>Select<strong> Services - Servers - Add Server..&nbsp; </strong>In<strong> Add Server Instance&nbsp;window</strong>, choose <strong>Tomcat 6.0</strong>, and&nbsp; give the name for server then press<strong> Next </strong>button<br />
<strong><img height="591" alt="" src="http://www.blogjava.net/images/blogjava_net/chucky/tomcat_01.JPG" width="934" border="0" /><br />
<br />
</strong>Installation and Login Details dialog window, in<strong> Catalina Home</strong> field, specify <strong>the path of Tomcat</strong> and setup <strong>user </strong>and<strong> password</strong>. After that, press&nbsp;<strong>Finish</strong> button to finish the configuration.<br />
<strong><img height="594" alt="" src="http://www.blogjava.net/images/blogjava_net/chucky/tomcat_02.JPG" width="932" border="0" /><br />
<br />
</strong>select<strong> Tomcat Server,</strong> right-click <strong>Start,</strong> the information displayed in output window shows the server start successfully.<br />
<strong><img height="731" alt="" src="http://www.blogjava.net/images/blogjava_net/chucky/tomcat_03.JPG" width="867" border="0" /><br />
<br />
</strong>Alright, everything is done! How easy it is! Then let's start coding!<br />
<img src ="http://www.blogjava.net/chucky/aggbug/225255.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chucky/" target="_blank">Chucky</a> 2008-08-28 19:40 <a href="http://www.blogjava.net/chucky/articles/225255.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>