|
在eclipse上面配置好tomcat,就会有一个小猫出现,点小猫就可以运行了.JBuilder2006怎么配置tomcat?我在我的<nobr oncontextmenu="return false;" onmousemove="kwM(0);" id="key0" style="COLOR: #6600ff; BORDER-BOTTOM: 2px dotted; BACKGROUND-COLOR: transparent; TEXT-DECORATION: underline" onmouseout="kwL(event, this);" target="_blank">工程</nobr>的properties->server那个已经选择了tomcat5,路径也设好了.当在点那个run project/debug project都不行.那个runtime configurations要怎么设置?
在jbuilder中创建web应用,并与tomcat5集成
1.新建工程,file--><nobr oncontextmenu="return false;" onmousemove="kwM(4);" id="key3" style="COLOR: #6600ff; BORDER-BOTTOM: #6600ff 1px dotted; BACKGROUND-COLOR: transparent; TEXT-DECORATION: underline" onmouseout="kwL(event, this);" target="_blank">new</nobr> project,进入创建工程向导
在name中:输入工程名字如hello
在directory选择工程存放的目录,如d:/tmp,
之后,按缺省设置,最后按finish
2.配置<nobr oncontextmenu="return false;" onmousemove="kwM(6);" id="key4" style="COLOR: #6600ff; BORDER-BOTTOM: #6600ff 1px dotted; BACKGROUND-COLOR: transparent; TEXT-DECORATION: underline" onmouseout="kwL(event, this);" target="_blank">服务</nobr>器:enterprise-->Configure Servers进入配置服务器对话框
在左边的列表中,选中tomcat5.0,选中右边的Enable Server的复选框
3.为工程设置服务器
右键工程名称,选弹出菜单中选properties...(工程属性),进入工程属性对话框
在左边的列表中,选中server,在右边的Single Server for all project下的下拉列表中
选tomcat5.0,按OK按钮
4.配置运行环境,run-configurations,进入Runtime Configurations对话框,按new按钮,进入
New Runtime Configuration
在Name中输入tomcat5
在Build target中选:<none>
在type中选:server
按OK完成配置
5.创建web<nobr oncontextmenu="return false;" onmousemove="kwM(7);" id="key5" style="COLOR: #6600ff; BORDER-BOTTOM: #6600ff 1px dotted; BACKGROUND-COLOR: transparent; TEXT-DECORATION: underline" onmouseout="kwL(event, this);" target="_blank">应用</nobr>
file-->new 进入Object Gallery对话框,在左边的列表中,选web,在右边的选项中选
Web Module(WAR),按OK,进入web module创建向导
选create empty Web module,按next进入下一对话框
在name中输入:helloWeb
在Build Web archive中选when building module only,按next进入下一对话框
按finish完成web应用创建
6.创建jsp页面
选中helloWeb下的Module directory,右键new-->jsp进入jsp创建<nobr oncontextmenu="return false;" onmousemove="kwM(8);" id="key6" style="COLOR: #6600ff; BORDER-BOTTOM: 2px dotted; BACKGROUND-COLOR: transparent; TEXT-DECORATION: underline" onmouseout="kwL(event, this);" target="_blank">向导</nobr>页面,在name中输入
hello,按finish完成jsp页面
7.<nobr oncontextmenu="return false;" onmousemove="kwM(2);" id="key2" style="COLOR: #6600ff; BORDER-BOTTOM: #6600ff 1px dotted; BACKGROUND-COLOR: transparent; TEXT-DECORATION: underline" onmouseout="kwL(event, this);" target="_blank">测试</nobr>,运行
启动tomcat5, |
|
|