ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 让eclipse支持Tapestry5的Annotation

让eclipse支持Tapestry5的Annotation

原创 Linux操作系统 作者:china50 时间:2010-05-14 16:02:38 0 删除 编辑
    在用eclipse3.3开发Tapestry程序时,缺省情况下的eclipse是不支持Tapestry的annotation的,所以需要进行下面的设定,从而能够使包含Tapestry annotation的java程序正确地进行编译。

使用eclipse带APT工具进行Tapestry Annotation支持的设定。
1、打开你建立的Web application项目的属性对话框,然后打开“Java Compiler / Annotation Processing”面板。
2、选中 "Enable Project Specific Settings" 和 "Enable Annotation Processing"。
3、打开“Java Compiler / Annotation Processing / Factory Path”面板,点击“Add JARs”按钮,添加tapestry5-annotations-5.1.0.5.jar文件。

经过上面的设置后,在Java文件中就可以正确使用Tapestry的annotation的,编译也能够正常进行了。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/1365/viewspace-662725/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2009-06-24

  • 博文量
    25
  • 访问量
    47868