eclipse下resin的配制

来源:互联网 发布:天风证券 行业数据库 编辑:程序博客网 时间:2024/05/17 04:40
1、配置Resin的conf
拷贝一份resin安装目录conf目录下的resin.conf,命名为test.conf
编辑其中的内容,默认也可,在其后面的</host>上面添加一行:
<web-app id='/myprojectName' document-directory="d:/myprojectName/webapp"/>
这是最简配置,详细参数自己可以定制。
2、配置Eclipse的运行
打开Eclipse的“运行”菜单,选择“运行”,如果你的是英文,应该都是RUN。:)
选择JAVA应用程序,点击下面的新建按钮,新建一个运行项目。
名称自己填写,我们暂时以RunTest来命名这个例子。然后配置其中的相关属性。
(1)Main
项目:我们选择刚刚新建的myprojectName项目。
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。
添加jsdk下的tools.jar。
 或者:
To add this update site to your eclipse configuration:
  1. Within Eclipse, access the menu: Help -> Software Updates...
  2. Click the "Available Software" tab
  3. Click the "Add Site"
  4. Enter http://caucho.com/eclipse
  5. Click "OK"
  6. Click "Refresh" and install the Resin Eclipse plugin!

原创粉丝点击