---
title: "Eclipse配置Resin"
author: "rainShare"
date: "2010-03-10T18:06:50Z"
tags: []
categories: ["企业架构"]
slug: "eclipse-resin"
draft: false
lastmod: "2010-03-10T18:06:50Z"
id: 612304
url: "https://binlei.iteye.com/blog/612304"
---

1、配置Resin的conf 
拷贝一份resin安装目录conf目录下的resin.conf，命名为test.conf 
编辑其中的内容，默认也可，在其后面的</host>上面添加一行： 
<web-app id='/projectName' document-directory="d:\projectName\webapp"/> 
这是最简配置，详细参数自己可以定制。 
2、配置Eclipse的运行 
然后配置其中的相关属性,run configure: 
(1)Main 
项目：我们选择刚刚新建的projectName项目。 
Main类：填写com.caucho.server.resin.Resin 
(2)自变量 
程序自变量：-conf "d:\resin-3.0.22\conf\test.conf" 
VM自变量： 
-Dresin.home="d:\resin-3.0.22" 
-Djava.util.logging.manager=com.caucho.log.LogManagerImpl 
(4)类路径：添加Resin home的lib下的jar。 
添加jdk下的tools.jar。