本文介绍了Eclipse增量生成器插件不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我开始在Eclipse RCP(4.2.1 Juno)上使用Eclipse的插件开发环境。我用Incremental Builder Template创建了一个项目。我的目标是在Java Build结束后对用户代码执行构建过程。
问题是,我不知道如何使用Builder。我尝试将项目导出为可部署的插件和片段jar文件,然后将jar文件放在几个地方,如Development Workspace,Runtime Workspace以及Development Eclipse的plugins文件夹中。
我将插件项目作为Eclipse应用程序运行,运行Eclipse出现,我创建一个项目,并为该项目定义一个构建器,并将导出的jar作为构建器文件,并将其作为工作dir然后建立项目,希望魔法发生!但愚蠢的我...
在所有的情况下,我得到一个权限被拒绝消息的形式:

 错误在建造期间发生。 
在项目A上运行构建器集成外部工具生成器错误。
执行命令行时发生异常。
无法运行程序< $ Address> /Getter_1.0.0.201210200958.jar(在目录< $ Address>)中:error = 13,Permission denied
执行命令行发生异常。
无法运行程序< $ Address> Getter_1.0.0.201210200958.jar(在目录< Address>)中:error = 13,Permission denied
/ pre>

我认为这与我的插件的位置有关,但是除了运行时eclipse的plugins文件夹之外,我已经尝试过,因为我认为它与开发eclipse相同...
任何想法?

解决方案

据我所知,增量构建器示例具有本质。所以如果你只是在下一个完成时再创建一个增量构建器示例,并将其作为eclipse应用程序运行,那么你应该创建一个java项目,右击它,然后选择add .... nature。然后构建器将被启用,您将看到它是否工作。这样才能实现自然。



您可以检查项目中是否启用构建器,并检查项目属性。有一个构建器部分:





有一个关于制作人员的完整教程 here。


I recently started working with Eclipse's Plug-in development environment on Eclipse RCP (4.2.1 Juno). I created a project with the Incremental Builder Template. My goal is to perform a build process on the user code after Java Build is over. The problem is, I don't know how to use the Builder. I tried Exporting the project into a "Deployable Plug-ins and Fragments" jar file, and then placed the jar file in several places, like Development Workspace, Runtime Workspace, and in the plugins folder of the Development Eclipse. I run the plugin project as an "Eclipse Application", a Runtime Eclipse comes up, I create a project, and define a builder for that project and give the exported jar as the builder file, and it's dir as the working dir and then Build the project and hope for the magic to happen!! But foolish me... In all the cases, I get a Permission Denied message of the Form:

Errors occurred during the build.
Errors running builder 'Integrated External Tool Builder' on project 'A'.
Exception occurred executing command line.
Cannot run program "<$Address>/Getter_1.0.0.201210200958.jar" (in directory "<$Address>"):     error=13, Permission denied
Exception occurred executing command line.
Cannot run program "<$Address>Getter_1.0.0.201210200958.jar" (in directory "<Address>"): error=13, Permission denied

I think it has something to do with the location of my plugin, but I've tried everywhere, other than the plugins folder of the runtime eclipse, because I figured it's the same as the development eclipse...Any thoughts??

解决方案

As far as I remember, the incremental builder example comes with a nature. So if you just crete the incremental builder example with next next finish, and you run it as an "eclipse application", then you should create a java project, right click on it, and choose "add .... nature". Then the builder will be enabled, and you will see if its working or not. So enable the nature.

You can check if the builder is enabled on the project with checking project properties. There is a builders section:

There is a complete tutorial for builders here.

这篇关于Eclipse增量生成器插件不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-27 04:23
查看更多