带有 Groovy 的 Eclipse RCP:无法创建 Groovy 类

发布于 2024-10-09 00:34:40 字数 692 浏览 0 评论 0原文

我尝试在安装 groovy 插件后创建一个 groovy 类。但是 Eclipse RCP 系统给了我以下消息:

创建元素失败

Reason: TestGroovy2[in TestGroovy2.groovy[in <default in
<src in <in  org.eclipsercp.hypoberla ]]]] does not exist

顺便说一句,org.eclipsercp.hypoberla 是我正在创建的 RCP ....

任何人都可以告诉我为什么吗?

另外,如果我在 Eclipse 上创建一个 groovy 项目,我在那里创建一个 groovy 类没有问题......但我需要在我的 RCP 项目中一些 groovy 脚本......

任何帮助将不胜感激!

谢谢。

顺便说一句:我正在使用 Eclipse V 3.6。

我找到了以下帖子,并完全按照博客的建议进行操作...但是,我无法创建新的 groovy 类...

如何在 Eclipse RCP 项目中使用 groovy?

I tried to create a groovy class after installing a groovy plugin. But Eclipse RCP system gives me the following message:

Creation of Element Failed

Reason: TestGroovy2[in TestGroovy2.groovy[in <default in
<src in <in  org.eclipsercp.hypoberla ]]]] does not exist

by the way, the org.eclipsercp.hypoberla is the RCP I'm creating ....

any body could tell me why?

also, if I create a groovy project on Eclipse, I have no problem creating a groovy class there....but I need some groovy script in my RCP project...

any help would be greatly appreciated!

thanks.

BTW: I'm using Eclipse V 3.6.

i found the following post and followed exactly as the blog suggested...still, I cannot create a new groovy class....

How to use groovy inside a Eclipse RCP project?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我的痛♀有谁懂 2024-10-16 00:34:40

它可能是一个 Java 项目。您确实需要首先为其添加常规性质:

  • 右键单击项目

  • 配置 ->转换为groovy项目

It might be a Java project. You indeed need to add a groovy nature to it first:

  • right click on the project

  • configure -> convert to groovy project

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文