Getting NetBeans 6.0 Ready for Seam Development

原文出处:
http://edemmorny.wordpress.com/2007/12/12/getting-netbeans-60-ready-for-seam-development/

I’m starting a series of tutorials on web application development using the JBoss Seam framework. However, before I go on to that i’ll like to get started with setting up my favourite IDE – NetBeans for Seam development (sorry Eclipse folks, but I’m an addict. Just wishing that JBoss will see sense in working on a NetBeans version of the excellent JBoss Tools).

The following will be needed to follow this setup process
JDK 5 (6 is way faster to use) – http://java.sun.com
NetBeans 6.0 – http://www.netbeans.org
JBoss Seam 2.0 – http://labs.jboss.com/projects/download
JBoss Application Server (JBoss AS) 4.2.x – http://labs.jboss.com/projects/download
Seam plugin for NetBeans & Facelets Support – http://nbfaceletssupport.dev.java.net

I’ll assume that both the JDK and NetBeans are already installed. I’ll also assume that JBoss AS has been extracted into a suitable location, the JBOSS_HOME environment variable set and it has been added to your PATH variable.

(注意:安装路径不要包含空格)

In NetBeans, click the “Services” tab and right-click the “Servers” tree for the “Add Server” option.
NetBeans 6.0 Services Tab
Clicking that causes a “Add Server Instance” dialogue box to open up. This same result can be gained by selecting the “Tools” menu and selecting the “Servers” menu option, followed by the “Add Server” button. Select “JBoss Application Server” and in the Name field add the full name of the version of JBoss AS installed. This helps differentiate different instances of JBoss AS you might install. Currently mine reads “JBoss Application Server 4.2.1.GA”, reflecting the currently installed instance.
Supported servers in NetBeans
Clicking “Next” takes you to the next step to specify the location of the server. Mine is as shown below.
Location of Installed Server in NetBeans 6.0
The next step is to specify server configuration. The “default” domain is good enough for us and we’ll click “Finish” to conclude JBoss AS setup.
Configuring your instance of the server
Next is to add the Seam plugin for NetBeans. This is done by selecting the “Plugins” option from the “Tools” menu. NetBeans will scan all your installed plugins as well as establish an internet connection to find out available plugins. On the downloaded tab, click the “Add plugins” button. Navigate to the location of the Seam plugin for netbeans and click “Open” to add it. Click the “Install” button to install the Seam plugin.
Installing Seam plugin for NetBeans
Now specify where the Seam package you downloaded from have been extracted to. This saves you the trouble of having to specify it every time you use the Seam Generator to create a project. This can be done by selecting “Options” from the “Tools” menu and selecting the “Miscellaneous” icon. The “Seam Gen Framework” tab will allow to specify the location of Seam.

Seam Gen Configuration

The last thing to do is to install the NetBeans Facelets Support. Extract the nbfacelets-support. Following the previously described process, select all the nbm files included in nbfacelets-support zip archive.
Installing Facelets plugin for NetBeans
This ends the preparatory setup of NetBeans for Seam applications development. We’ll tackle some simple applications next on this series after this short commercial break.

 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值