java - Eclipse 插件未加载

标签 java eclipse plugins eclipse-plugin

我正在使用 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

最佳答案

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

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

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

关于java - Eclipse 插件未加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17296651/

相关文章:

java - 带数组的字符串输入

javascript - 带有 setTimeout 或 setInterval 的 jQuery 插件

javascript - 回调函数不适用于 HTML5 视频播放器

java - Eclipse在项目中集成插件

java - 运行 OfBiz 时获取 ScreenRenderException

java - PL/SQL 源代码解析器(在 Java 中)

java - 非法参数异常 : Unknown URL content://CONTENT

java - 从 3 个表定义 hibernate 实体

java - 哪个 Eclipse 版本与 Tomcat 10 兼容,或者我应该返回 Tomcat 9?

java - 如何将Windows上Eclipse编写的JSP转换为Linux?