﻿<?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>IT博客-测试人生-文章分类-单元测试</title><link>http://www.cnitblog.com/leetutu/category/8334.html</link><description>－－－－软件因为我们，而感觉更美丽！</description><language>zh-cn</language><lastBuildDate>Fri, 30 Sep 2011 18:16:42 GMT</lastBuildDate><pubDate>Fri, 30 Sep 2011 18:16:42 GMT</pubDate><ttl>60</ttl><item><title>【转】搭建Eclipse+MyEclipse开发环境</title><link>http://www.cnitblog.com/leetutu/articles/58954.html</link><dc:creator>测试兔子</dc:creator><author>测试兔子</author><pubDate>Mon, 01 Jun 2009 15:06:00 GMT</pubDate><guid>http://www.cnitblog.com/leetutu/articles/58954.html</guid><wfw:comment>http://www.cnitblog.com/leetutu/comments/58954.html</wfw:comment><comments>http://www.cnitblog.com/leetutu/articles/58954.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/leetutu/comments/commentRss/58954.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/leetutu/services/trackbacks/58954.html</trackback:ping><description><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp; 功能测试已经做了一年多时间，很长时间没有编程，我连开发环境都不会搭建了。突然觉得只做功能测试被替代性太大了，还是要经常写些代码，所以现在有时间想回顾一下JAVA编程，也想试一下Junit单元测试所以就在网上搜了一些搭建Eclipse＋MyEclipse的资料，资料这东西不能没有，也不能只收集不看，更不能只用不积累，所以我的资料如果感觉很实用的就会放在博客上给大家共享。<br><br>原地址：<a href="http://blog.chinaunix.net/u/21675/showart_198086.html">http://blog.chinaunix.net/u/21675/showart_198086.html</a><br><br><br><strong>关键词</strong>： <a href="http://tag.bokee.com/tag/Eclipse%2BMyEclip" target=_blank><font color=#0000ff><u>Eclipse+MyEclip</u></font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
<div>
<p>一、安装JDK<br>首先下载JDK 5.0 Update7<br>然后运行JDK 5.0安装程序jdk-1_5_0_07-windows-i586-p.exe，安装过程中所有选项保持默认；<br>最后配置JDK的环境变量：在&#8220;我的电脑&#8221;上点右键—&gt;&#8220;属性&#8221;—&gt;&#8220;高级&#8221;—&gt; &#8220;环境变量(N)&#8221;。<br><img alt=" " src="http://esoft.bokee.com/inc/J2EE_01.jpg" onload="function anonymous()&#13;&#10;{&#13;&#10;function anonymous()&#13;&#10;{&#13;&#10;function onload(event) {&#13;&#10;&#13;&#10;    function anonymous() {&#13;&#10;&#13;&#10;        function anonymous() {&#13;&#10;&#13;&#10;            function anonymous() {&#13;&#10;&#13;&#10;                function anonymous() {&#13;&#10;&#13;&#10;                    function anonymous() {&#13;&#10;&#13;&#10;                        function anonymous() {&#13;&#10;&#13;&#10;                            function anonymous() {&#13;&#10;&#13;&#10;                                function anonymous() {&#13;&#10;&#13;&#10;                                    function anonymous() {&#13;&#10;&#13;&#10;                                        function anonymous() {&#13;&#10;&#13;&#10;                                            function anonymous() {&#13;&#10;                                                img_auto_size(this, 450, true);&#13;&#10;                                            }&#13;&#10;&#13;&#10;                                        }&#13;&#10;&#13;&#10;                                    }&#13;&#10;&#13;&#10;                                }&#13;&#10;&#13;&#10;                            }&#13;&#10;&#13;&#10;                        }&#13;&#10;&#13;&#10;                    }&#13;&#10;&#13;&#10;                }&#13;&#10;&#13;&#10;            }&#13;&#10;&#13;&#10;        }&#13;&#10;&#13;&#10;    }&#13;&#10;&#13;&#10;}&#13;&#10;}&#13;&#10;}" align=bottom twffan="done">
<p>新建系统变量JAVA_HOME：C:\Program Files\Java\jdk1.5.0_06<br>新建系统变量CLASSPATH：.;%JAVA_HOME%\lib;（注意：点号表示当前目录，不能省略）<br>在系统变量Path的值的<strong>前面</strong>加入以下内容：%JAVA_HOME%\bin;(注意:这里的分号不能省略)<br>到这里，JDK安装完毕。<br>下面我们测试一下JDK是否安装成功：<br>将以下内容复制到记事本中：<br>public class HelloJAVA<br>{<br>public static void main(String srg[])<br>{<br>System.out.println("Hello JAVA!");<br>}<br>}<br>另存为&#8220;HelloJAVA.java&#8221;（不含引号，下同），并保存到D盘根目录下。<br>在命令行依次输入下图中红线所标注的命令：<br><img alt=" " src="http://esoft.bokee.com/inc/J2EE_02.jpg" onload="function anonymous()&#13;&#10;{&#13;&#10;function anonymous()&#13;&#10;{&#13;&#10;function onload(event) {&#13;&#10;&#13;&#10;    function anonymous() {&#13;&#10;&#13;&#10;        function anonymous() {&#13;&#10;&#13;&#10;            function anonymous() {&#13;&#10;&#13;&#10;                function anonymous() {&#13;&#10;&#13;&#10;                    function anonymous() {&#13;&#10;&#13;&#10;                        function anonymous() {&#13;&#10;&#13;&#10;                            function anonymous() {&#13;&#10;&#13;&#10;                                function anonymous() {&#13;&#10;&#13;&#10;                                    function anonymous() {&#13;&#10;&#13;&#10;                                        function anonymous() {&#13;&#10;&#13;&#10;                                            function anonymous() {&#13;&#10;                                                img_auto_size(this, 450, true);&#13;&#10;                                            }&#13;&#10;&#13;&#10;                                        }&#13;&#10;&#13;&#10;                                    }&#13;&#10;&#13;&#10;                                }&#13;&#10;&#13;&#10;                            }&#13;&#10;&#13;&#10;                        }&#13;&#10;&#13;&#10;                    }&#13;&#10;&#13;&#10;                }&#13;&#10;&#13;&#10;            }&#13;&#10;&#13;&#10;        }&#13;&#10;&#13;&#10;    }&#13;&#10;&#13;&#10;}&#13;&#10;}&#13;&#10;}" align=bottom twffan="done"></p>
<p>如果出现上图红框中所标注的内容，则说明JDK安装成功！</p>
<p>注意:如果以后要安装诸如Eclipse、Borland JBuilder、JCreator、IntelliJ IDEA等集成开发环境(IDE,Integrated Development Environment),应该在IDE中编译运行一个简单的HelloWorld程序，以保证IDE可以识别出JDK的位置。</p>
<p>二、安装Tomcat<br>首先下载jakarta-tomcat-5.0.30.zip，之所以下载免安装版的好处是可以使用多个Tomcat<br>然后将jakarta-tomcat-5.0.30.zip直接解压到D盘根目录：</p>
<p><img alt=" " src="http://esoft.bokee.com/inc/J2EE_03.jpg" onload="function anonymous()&#13;&#10;{&#13;&#10;function anonymous()&#13;&#10;{&#13;&#10;function onload(event) {&#13;&#10;&#13;&#10;    function anonymous() {&#13;&#10;&#13;&#10;        function anonymous() {&#13;&#10;&#13;&#10;            function anonymous() {&#13;&#10;&#13;&#10;                function anonymous() {&#13;&#10;&#13;&#10;                    function anonymous() {&#13;&#10;&#13;&#10;                        function anonymous() {&#13;&#10;&#13;&#10;                            function anonymous() {&#13;&#10;&#13;&#10;                                function anonymous() {&#13;&#10;&#13;&#10;                                    function anonymous() {&#13;&#10;&#13;&#10;                                        function anonymous() {&#13;&#10;&#13;&#10;                                            function anonymous() {&#13;&#10;                                                img_auto_size(this, 450, true);&#13;&#10;                                            }&#13;&#10;&#13;&#10;                                        }&#13;&#10;&#13;&#10;                                    }&#13;&#10;&#13;&#10;                                }&#13;&#10;&#13;&#10;                            }&#13;&#10;&#13;&#10;                        }&#13;&#10;&#13;&#10;                    }&#13;&#10;&#13;&#10;                }&#13;&#10;&#13;&#10;            }&#13;&#10;&#13;&#10;        }&#13;&#10;&#13;&#10;    }&#13;&#10;&#13;&#10;}&#13;&#10;}&#13;&#10;}" align=bottom twffan="done"></p>
<p>最后配置Tomcat的环境变量：在&#8220;我的电脑&#8221;上点右键—&gt;&#8220;属性&#8221;—&gt;&#8220;高级&#8221;—&gt; &#8220;环境变量(N)&#8221;。<br>新建系统变量CATALINA_HOME：D:\jakarta-tomcat-5.0.30<br>在系统变量CLASSPATH的值的<strong>后面</strong>加入：%CATALINA_HOME%\common\lib;<br>在系统变量Path的值中"%JAVA_HOME%\bin;"的<strong>后面</strong>加入以下内容：%CATALINA_HOME%\bin;</p>
<p>到这里，Tomcat安装完毕。</p>
<p>相关链接：<br><a href="http://www.coreservlets.com/Apache-Tomcat-Tutorial/Tomcat-5.0-and-4.0.html"><font color=#3300ff><u>Tomcat 4和Tomcat 5安装配置指南<br></u></font></a><a href="http://www.coreservlets.com/Apache-Tomcat-Tutorial/"><font color=#0000ff><u>Tomcat 5.5安装配置指南</u></font></a> </p>
<p>进行完一、二两步的设置以后，各系统变量的值如下：</p>
<p>JAVA_HOME:C:\Program Files\Java\jdk1.5.0_06<br>CATALINA_HOME:D:\jakarta-tomcat-5.0.30<br>CLASSPATH:.;%JAVA_HOME%\lib;%CATALINA_HOME%\common\lib;<br>Path:%JAVA_HOME%\bin;%CATALINA_HOME%\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem</p>
<p>三、安装Eclipse<br>首先下载eclipse-SDK-3.1.2-win32.zip<br>然后将eclipse-SDK-3.1.2-win32.zip直接解压到D盘根目录：<br><img alt=" " src="http://esoft.bokee.com/inc/J2EE_04.jpg" onload="function anonymous()&#13;&#10;{&#13;&#10;function anonymous()&#13;&#10;{&#13;&#10;function onload(event) {&#13;&#10;&#13;&#10;    function anonymous() {&#13;&#10;&#13;&#10;        function anonymous() {&#13;&#10;&#13;&#10;            function anonymous() {&#13;&#10;&#13;&#10;                function anonymous() {&#13;&#10;&#13;&#10;                    function anonymous() {&#13;&#10;&#13;&#10;                        function anonymous() {&#13;&#10;&#13;&#10;                            function anonymous() {&#13;&#10;&#13;&#10;                                function anonymous() {&#13;&#10;&#13;&#10;                                    function anonymous() {&#13;&#10;&#13;&#10;                                        function anonymous() {&#13;&#10;&#13;&#10;                                            function anonymous() {&#13;&#10;                                                img_auto_size(this, 450, true);&#13;&#10;                                            }&#13;&#10;&#13;&#10;                                        }&#13;&#10;&#13;&#10;                                    }&#13;&#10;&#13;&#10;                                }&#13;&#10;&#13;&#10;                            }&#13;&#10;&#13;&#10;                        }&#13;&#10;&#13;&#10;                    }&#13;&#10;&#13;&#10;                }&#13;&#10;&#13;&#10;            }&#13;&#10;&#13;&#10;        }&#13;&#10;&#13;&#10;    }&#13;&#10;&#13;&#10;}&#13;&#10;}&#13;&#10;}" align=bottom twffan="done"> </p>
<p>到这里， Eclipse安装完毕。</p>
<p>四、安装MyEclipse<br>首先下载EnterpriseWorkbenchInstaller_4.1.1GA_E3.1.exe<br>然后安装EnterpriseWorkbenchInstaller_4.1.1GA_E3.1.exe。注意：当安装到下图所示的步骤的时候要选择Eclipse的安装路径（如图），其他选项保持默认。<br><img alt=" " src="http://esoft.bokee.com/inc/J2EE_05.jpg" onload="function anonymous()&#13;&#10;{&#13;&#10;function anonymous()&#13;&#10;{&#13;&#10;function onload(event) {&#13;&#10;&#13;&#10;    function anonymous() {&#13;&#10;&#13;&#10;        function anonymous() {&#13;&#10;&#13;&#10;            function anonymous() {&#13;&#10;&#13;&#10;                function anonymous() {&#13;&#10;&#13;&#10;                    function anonymous() {&#13;&#10;&#13;&#10;                        function anonymous() {&#13;&#10;&#13;&#10;                            function anonymous() {&#13;&#10;&#13;&#10;                                function anonymous() {&#13;&#10;&#13;&#10;                                    function anonymous() {&#13;&#10;&#13;&#10;                                        function anonymous() {&#13;&#10;&#13;&#10;                                            function anonymous() {&#13;&#10;                                                img_auto_size(this, 450, true);&#13;&#10;                                            }&#13;&#10;&#13;&#10;                                        }&#13;&#10;&#13;&#10;                                    }&#13;&#10;&#13;&#10;                                }&#13;&#10;&#13;&#10;                            }&#13;&#10;&#13;&#10;                        }&#13;&#10;&#13;&#10;                    }&#13;&#10;&#13;&#10;                }&#13;&#10;&#13;&#10;            }&#13;&#10;&#13;&#10;        }&#13;&#10;&#13;&#10;    }&#13;&#10;&#13;&#10;}&#13;&#10;}&#13;&#10;}" align=bottom twffan="done"></p>
<p>安装完毕之后，将MyEclipse安装目录下的features和plugins这2个目录覆盖到Eclipse的安装目录下。<br>最后将刚才安装的 MyEclipse 卸载。<br>解释一下上面这样做的原因： 因为MyEclipse是Eclipse的插件，所以只要把features和plugins这2个目录覆盖到Eclipse的安装目录，Eclipse就会自动认出这些插件。 <br>到这里，MyEclipse安装完毕。</p>
<p>五、破解MyEclipse<br>运行MyEclipse4.1.1注册机MyEclipseKeyGen.exe，选择MyEclipse的版本号，输入注册名，生成序列号。<br>运行eclipse.exe（首次运行要求指定Workspace），依次点击Window ----&gt; Preferences ----&gt;MyEclipse----&gt;Subscription ----&gt; Enter Subscription，输入注册名以及注册机生成的注册码。<br>到这里，MyEclipse破解完毕。</p>
<p>六、指定Eclipse+MyEclipse的JRE 和Tomcat 服务器<br>1.设定Eclipse+MyEclipse的JRE<br>一般情况下，Eclipse可以自动找到JRE，我们不用进行过多的设置。<br>2.设定Eclipse+MyEclipse的Tomcat 服务器<br>只需设置图中所标注的两处即可，图中其余部分是自动生成的。<br><img alt=" " src="http://esoft.bokee.com/inc/J2EE_06.jpg" onload="function anonymous()&#13;&#10;{&#13;&#10;function anonymous()&#13;&#10;{&#13;&#10;function onload(event) {&#13;&#10;&#13;&#10;    function anonymous() {&#13;&#10;&#13;&#10;        function anonymous() {&#13;&#10;&#13;&#10;            function anonymous() {&#13;&#10;&#13;&#10;                function anonymous() {&#13;&#10;&#13;&#10;                    function anonymous() {&#13;&#10;&#13;&#10;                        function anonymous() {&#13;&#10;&#13;&#10;                            function anonymous() {&#13;&#10;&#13;&#10;                                function anonymous() {&#13;&#10;&#13;&#10;                                    function anonymous() {&#13;&#10;&#13;&#10;                                        function anonymous() {&#13;&#10;&#13;&#10;                                            function anonymous() {&#13;&#10;                                                img_auto_size(this, 450, true);&#13;&#10;                                            }&#13;&#10;&#13;&#10;                                        }&#13;&#10;&#13;&#10;                                    }&#13;&#10;&#13;&#10;                                }&#13;&#10;&#13;&#10;                            }&#13;&#10;&#13;&#10;                        }&#13;&#10;&#13;&#10;                    }&#13;&#10;&#13;&#10;                }&#13;&#10;&#13;&#10;            }&#13;&#10;&#13;&#10;        }&#13;&#10;&#13;&#10;    }&#13;&#10;&#13;&#10;}&#13;&#10;}&#13;&#10;}" align=bottom twffan="done"></p>
<p>到这里，我们的Eclipse+MyEclipse开发环境就搭建完毕了！</p>
<p>七、新建一个项目来测试一下Eclipse+MyEclipse开发环境是否搭建成功<br>1.在Eclipse中依次点击&#8220; File ----&gt; New ----&gt; Project&#8221; , 在弹出的&#8220;New Project&#8221;对话框中依次点击&#8220;Web Project ----&gt;MyEclipse----&gt;J2EE Projects----&gt;Web Project&#8221;， 再点&#8220;Next&#8221;，在&#8220;Project Name&#8221;中输入项目的名字&#8220;test&#8221;,最后点&#8220;Finish&#8221;。<br>2.在Eclipse左边Package Explorer列表中点击&#8220;test&#8221;，将项目test展开。右键点击 WebRoot ----&gt; New ----&gt; JSP , 新建一个名为hello.jsp的 JSP 页面 。 代码如下图（图中标注部分需要我们手动添加，其余部分是系统自动生成的）：</p>
<p><img alt=" " src="http://esoft.bokee.com/inc/J2EE_07.png" onload="function anonymous()&#13;&#10;{&#13;&#10;function anonymous()&#13;&#10;{&#13;&#10;function onload(event) {&#13;&#10;&#13;&#10;    function anonymous() {&#13;&#10;&#13;&#10;        function anonymous() {&#13;&#10;&#13;&#10;            function anonymous() {&#13;&#10;&#13;&#10;                function anonymous() {&#13;&#10;&#13;&#10;                    function anonymous() {&#13;&#10;&#13;&#10;                        function anonymous() {&#13;&#10;&#13;&#10;                            function anonymous() {&#13;&#10;&#13;&#10;                                function anonymous() {&#13;&#10;&#13;&#10;                                    function anonymous() {&#13;&#10;&#13;&#10;                                        function anonymous() {&#13;&#10;&#13;&#10;                                            function anonymous() {&#13;&#10;                                                img_auto_size(this, 450, true);&#13;&#10;                                            }&#13;&#10;&#13;&#10;                                        }&#13;&#10;&#13;&#10;                                    }&#13;&#10;&#13;&#10;                                }&#13;&#10;&#13;&#10;                            }&#13;&#10;&#13;&#10;                        }&#13;&#10;&#13;&#10;                    }&#13;&#10;&#13;&#10;                }&#13;&#10;&#13;&#10;            }&#13;&#10;&#13;&#10;        }&#13;&#10;&#13;&#10;    }&#13;&#10;&#13;&#10;}&#13;&#10;}&#13;&#10;}" align=bottom twffan="done"><br><br>3. 再用同样的方法， 新建一个叫 hello_result.jsp 的JSP文件， 代码如下图：<br><img alt=" " src="http://esoft.bokee.com/inc/J2EE_08.png" onload="function anonymous()&#13;&#10;{&#13;&#10;function anonymous()&#13;&#10;{&#13;&#10;function onload(event) {&#13;&#10;&#13;&#10;    function anonymous() {&#13;&#10;&#13;&#10;        function anonymous() {&#13;&#10;&#13;&#10;            function anonymous() {&#13;&#10;&#13;&#10;                function anonymous() {&#13;&#10;&#13;&#10;                    function anonymous() {&#13;&#10;&#13;&#10;                        function anonymous() {&#13;&#10;&#13;&#10;                            function anonymous() {&#13;&#10;&#13;&#10;                                function anonymous() {&#13;&#10;&#13;&#10;                                    function anonymous() {&#13;&#10;&#13;&#10;                                        function anonymous() {&#13;&#10;&#13;&#10;                                            function anonymous() {&#13;&#10;                                                img_auto_size(this, 450, true);&#13;&#10;                                            }&#13;&#10;&#13;&#10;                                        }&#13;&#10;&#13;&#10;                                    }&#13;&#10;&#13;&#10;                                }&#13;&#10;&#13;&#10;                            }&#13;&#10;&#13;&#10;                        }&#13;&#10;&#13;&#10;                    }&#13;&#10;&#13;&#10;                }&#13;&#10;&#13;&#10;            }&#13;&#10;&#13;&#10;        }&#13;&#10;&#13;&#10;    }&#13;&#10;&#13;&#10;}&#13;&#10;}&#13;&#10;}" align=bottom twffan="done"></p>
<p>4. deploy（部署）项目。 <br>点击 deploy 按钮（用红线画了的按钮就是 deploy 按钮）， 在弹出的窗口中点击Add， 部署test项目（如图所示）。<br><img alt=" " src="http://esoft.bokee.com/inc/J2EE_09.jpg" onload="function anonymous()&#13;&#10;{&#13;&#10;function anonymous()&#13;&#10;{&#13;&#10;function onload(event) {&#13;&#10;&#13;&#10;    function anonymous() {&#13;&#10;&#13;&#10;        function anonymous() {&#13;&#10;&#13;&#10;            function anonymous() {&#13;&#10;&#13;&#10;                function anonymous() {&#13;&#10;&#13;&#10;                    function anonymous() {&#13;&#10;&#13;&#10;                        function anonymous() {&#13;&#10;&#13;&#10;                            function anonymous() {&#13;&#10;&#13;&#10;                                function anonymous() {&#13;&#10;&#13;&#10;                                    function anonymous() {&#13;&#10;&#13;&#10;                                        function anonymous() {&#13;&#10;&#13;&#10;                                            function anonymous() {&#13;&#10;                                                img_auto_size(this, 450, true);&#13;&#10;                                            }&#13;&#10;&#13;&#10;                                        }&#13;&#10;&#13;&#10;                                    }&#13;&#10;&#13;&#10;                                }&#13;&#10;&#13;&#10;                            }&#13;&#10;&#13;&#10;                        }&#13;&#10;&#13;&#10;                    }&#13;&#10;&#13;&#10;                }&#13;&#10;&#13;&#10;            }&#13;&#10;&#13;&#10;        }&#13;&#10;&#13;&#10;    }&#13;&#10;&#13;&#10;}&#13;&#10;}&#13;&#10;}" align=bottom twffan="done"></p>
<p>5. 启动Tomcat服务器。<br>如下图所示（用红线画了的按钮就是 启动Tomcat 的按钮）：</p>
<p><img alt=" " src="http://esoft.bokee.com/inc/J2EE_10.jpg" onload="function anonymous()&#13;&#10;{&#13;&#10;function anonymous()&#13;&#10;{&#13;&#10;function onload(event) {&#13;&#10;&#13;&#10;    function anonymous() {&#13;&#10;&#13;&#10;        function anonymous() {&#13;&#10;&#13;&#10;            function anonymous() {&#13;&#10;&#13;&#10;                function anonymous() {&#13;&#10;&#13;&#10;                    function anonymous() {&#13;&#10;&#13;&#10;                        function anonymous() {&#13;&#10;&#13;&#10;                            function anonymous() {&#13;&#10;&#13;&#10;                                function anonymous() {&#13;&#10;&#13;&#10;                                    function anonymous() {&#13;&#10;&#13;&#10;                                        function anonymous() {&#13;&#10;&#13;&#10;                                            function anonymous() {&#13;&#10;                                                img_auto_size(this, 450, true);&#13;&#10;                                            }&#13;&#10;&#13;&#10;                                        }&#13;&#10;&#13;&#10;                                    }&#13;&#10;&#13;&#10;                                }&#13;&#10;&#13;&#10;                            }&#13;&#10;&#13;&#10;                        }&#13;&#10;&#13;&#10;                    }&#13;&#10;&#13;&#10;                }&#13;&#10;&#13;&#10;            }&#13;&#10;&#13;&#10;        }&#13;&#10;&#13;&#10;    }&#13;&#10;&#13;&#10;}&#13;&#10;}&#13;&#10;}" align=bottom twffan="done"></p>
<p>Tomcat 启动输出信息如下图：<br><img alt=" " src="http://esoft.bokee.com/inc/J2EE_11.jpg" onload="function anonymous()&#13;&#10;{&#13;&#10;function anonymous()&#13;&#10;{&#13;&#10;function onload(event) {&#13;&#10;&#13;&#10;    function anonymous() {&#13;&#10;&#13;&#10;        function anonymous() {&#13;&#10;&#13;&#10;            function anonymous() {&#13;&#10;&#13;&#10;                function anonymous() {&#13;&#10;&#13;&#10;                    function anonymous() {&#13;&#10;&#13;&#10;                        function anonymous() {&#13;&#10;&#13;&#10;                            function anonymous() {&#13;&#10;&#13;&#10;                                function anonymous() {&#13;&#10;&#13;&#10;                                    function anonymous() {&#13;&#10;&#13;&#10;                                        function anonymous() {&#13;&#10;&#13;&#10;                                            function anonymous() {&#13;&#10;                                                img_auto_size(this, 450, true);&#13;&#10;                                            }&#13;&#10;&#13;&#10;                                        }&#13;&#10;&#13;&#10;                                    }&#13;&#10;&#13;&#10;                                }&#13;&#10;&#13;&#10;                            }&#13;&#10;&#13;&#10;                        }&#13;&#10;&#13;&#10;                    }&#13;&#10;&#13;&#10;                }&#13;&#10;&#13;&#10;            }&#13;&#10;&#13;&#10;        }&#13;&#10;&#13;&#10;    }&#13;&#10;&#13;&#10;}&#13;&#10;}&#13;&#10;}" align=bottom twffan="done"></p>
<p>6.项目test的运行结果：<br><img alt=" " src="http://esoft.bokee.com/inc/J2EE_12.jpg" onload="function anonymous()&#13;&#10;{&#13;&#10;function anonymous()&#13;&#10;{&#13;&#10;function onload(event) {&#13;&#10;&#13;&#10;    function anonymous() {&#13;&#10;&#13;&#10;        function anonymous() {&#13;&#10;&#13;&#10;            function anonymous() {&#13;&#10;&#13;&#10;                function anonymous() {&#13;&#10;&#13;&#10;                    function anonymous() {&#13;&#10;&#13;&#10;                        function anonymous() {&#13;&#10;&#13;&#10;                            function anonymous() {&#13;&#10;&#13;&#10;                                function anonymous() {&#13;&#10;&#13;&#10;                                    function anonymous() {&#13;&#10;&#13;&#10;                                        function anonymous() {&#13;&#10;&#13;&#10;                                            function anonymous() {&#13;&#10;                                                img_auto_size(this, 450, true);&#13;&#10;                                            }&#13;&#10;&#13;&#10;                                        }&#13;&#10;&#13;&#10;                                    }&#13;&#10;&#13;&#10;                                }&#13;&#10;&#13;&#10;                            }&#13;&#10;&#13;&#10;                        }&#13;&#10;&#13;&#10;                    }&#13;&#10;&#13;&#10;                }&#13;&#10;&#13;&#10;            }&#13;&#10;&#13;&#10;        }&#13;&#10;&#13;&#10;    }&#13;&#10;&#13;&#10;}&#13;&#10;}&#13;&#10;}" align=bottom twffan="done"> </p>
<p>我们可以去Eclipse的Workspace目录下看看test项目的代码，也可以去Tomcat的webapps目录下，看看部署之后的 test项目的结构。</p>
</div>
<img src ="http://www.cnitblog.com/leetutu/aggbug/58954.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/leetutu/" target="_blank">测试兔子</a> 2009-06-01 23:06 <a href="http://www.cnitblog.com/leetutu/articles/58954.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>