Eclipse插件没有加载

时间:2013-06-25 11:54:49

标签: java eclipse plugins eclipse-plugin

我正在研究Eclipse 4.2.1并编写Java项目。我需要使用由第三方开发的插件。我的团队中的其他开发人员可以通过将插件放在plugins文件夹中来使用插件,插件生效。但是,对我来说插件没有生效,我无法在InstallationDetails -Plugin菜单中看到该插件。我试图通过运行以下命令调试该问题:

eclipse.exe -clean -debug -consoleLog

但是,我没有看到日志中的任何错误,这些错误可能会暗示为什么插件没有启动。任何线索都将受到高度赞赏。以下是输出 -

  Start VM: -Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-Djava.class.path=C:\softwaredownloads\eclipse\eclipse\\plugins/org.eclipse.equi
nox.launcher_1.3.0.v20120522-1813.jar
-os win32
-ws win32
-arch x86_64
-showsplash C:\softwaredownloads\eclipse\eclipse\\plugins\org.eclipse.platform_4
.2.1.v201209141800\splash.bmp
-launcher C:\softwaredownloads\eclipse\eclipse\eclipse.exe
-name Eclipse
--launcher.library C:\softwaredownloads\eclipse\eclipse\\plugins/org.eclipse.equ
inox.launcher.win32.win32.x86_64_1.1.200.v20120522-1813\eclipse_1503.dll
-startup C:\softwaredownloads\eclipse\eclipse\\plugins/org.eclipse.equinox.launc
her_1.3.0.v20120522-1813.jar
--launcher.overrideVmargs
-clean
-clean
-console
-consoleLog
-debug
-vm C:\ToolChain\win64\jdk-1.6.0_35\jre\bin\server\jvm.dll
-vmargs
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-Djava.class.path=C:\softwaredownloads\eclipse\eclipse\\plugins/org.eclipse.equi
nox.launcher_1.3.0.v20120522-1813.jar
Install location:
    file:/c:/softwaredownloads/eclipse/eclipse/
Configuration file:
    file:/c:/softwaredownloads/eclipse/eclipse/configuration/config.ini loaded
Configuration location:
    file:/c:/softwaredownloads/eclipse/eclipse/configuration/
Framework located:
    file:/c:/softwaredownloads/eclipse/eclipse/plugins/org.eclipse.osgi_3.8.1.v2
0120830-144521.jar
Framework classpath:
    file:/c:/softwaredownloads/eclipse/eclipse/plugins/org.eclipse.osgi_3.8.1.v2
0120830-144521.jar
Splash location:
    C:\softwaredownloads\eclipse\eclipse\\plugins\org.eclipse.platform_4.2.1.v20
1209141800\splash.bmp
Debug options:
    file:/C:/softwaredownloads/eclipse/eclipse/.options not found
Time to load bundles: 37
Starting application: 6273
osgi> Application Started: 18986

2 个答案:

答案 0 :(得分:3)

p2现在是安装Eclipse扩展的唯一机制。有多种方法可以调用它。类似于将插件放入plugins文件夹的旧机制的方法是将扩展名放入dropins文件夹。

如果插件只是一个jar文件,只需将其放入dropins即可。否则为它创建一个子目录并将所有文件放在那里。

然后,运行eclipsec -initialize。完成后,像往常一样启动Eclipse。

答案 1 :(得分:0)

如果您的自定义插件是由第三方提供的,那么他们是否有p2更新站点?

安装新插件的首选方法现在是通过p2,如果您的第三方通过更新站点提供插件,只需转到帮助 - >安装新软件。