我正在开发Eclipse 4.2.1,并编写了一个Java项目。我需要使用由第三方开发的插件。我的团队中的其他开发人员可以通过将插件放在插件文件夹中来使用它,插件将生效。但是,对我来说,插件不会生效,并且我在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发布于 2013-06-26 02:44:46
p2现在是安装Eclipse扩展的唯一机制。有多种方法可以调用它。类似于将插件放入插件文件夹的旧机制是将扩展放入dropins文件夹。
如果插件只是一个jar文件,只需将其放入dropins即可。否则,为它创建一个子目录,并将所有文件放入其中。
然后,运行eclipsec -initialize。完成后,像往常一样启动Eclipse。
发布于 2013-06-25 22:49:34
如果您的自定义插件是由第三方提供的,他们是否有p2更新站点?
现在安装新插件的首选方式是通过p2,如果您的第三方确实通过更新站点提供了插件,只需转到Help -> install new Software。
https://stackoverflow.com/questions/17296651
复制相似问题