【问题标题】:How to use Eclipse plugin tarlog.eclipse.plugins_1.4.2.jar如何使用Eclipse插件tarlog.eclipse.plugins_1.4.2.jar
【发布时间】:2016-11-14 17:20:55
【问题描述】:

我想知道如何运行/使用我下载的以下 Eclipse 插件:

有一个名为“tarlog”的人在这个 google 代码站点上为 eclipse 制作了一个插件的项目:http://code.google.com/p/tarlog-plugins/downloads/detail?name=tarlog.eclipse.plugins_1.4.2.jar&can=2&q=

它还有一些其他的eclipse功能,其中包括Ctrl++和Ctrl+-来改变字体大小。

我试过运行>外部工具>外部工具配置。我将 C:\Users\User\workspace\tarlog.eclipse.plugins_1.4.2.jar 作为位置,将 C:\Users\User\workspace(包含文件的文件夹)作为工作目录。这会导致以下错误:

执行命令行时发生异常。 无法运行程序“C:\Users\User\workspace\tarlog.eclipse.plugins_1.4.2.jar”(在目录“C:\Users\User\workspace”中):CreateProcess 错误=193,%1 不是有效的 Win32应用

这很令人费解,因为我运行的是 64 位 Windows。只是想知道如何运行/使用插件。

【问题讨论】:

    标签: eclipse jar


    【解决方案1】:

    这看起来像一个普通的 Eclipse 插件。

    你应该足够了:

    1)复制你安装eclipse的文件夹下dropins\plugins文件夹下的.jar;如果文件夹不存在,则创建它们。

    注意:这是 eclipse 安装路径 ([Eclipse path]\dropins\plugins),而不是您正在工作的工作区。

    2) 重启 Eclipse。

    就是这样,你的插件很好用。

    【讨论】:

    • Eclipse 文件夹似乎没有 \dropins
    • Eclipse 将从 Eclipse UI 中安装的插件放置在其 \plugins 文件夹中。您应该将手动复制的插件 .jars 放在\dropins\plugins 中。这只是一个约定,使更新它们更容易。
    • 您不应该尝试运行 .jar,只需打开 Eclipse.exe;它会自动加载插件。
    • 那可能是因为您发布的路径是plugins\plugins,而不是dropins\plugins。把它放在那里然后再试一次。
    • 您确定您完全按照这些步骤操作吗?我还在 64 位 Windows 7 机器上运行 KeplerSR1,并且(只是尝试将插件拉入)它在我的机器上运行良好。确保您已重新启动 Eclipse,并且这就是您使用的路径的确切名称,因为 Eclipse 只会在 \dropins\plugins\plugins 中查找插件。
    【解决方案2】:

    Tarlog 插件需要安装 Java 开发工具 (JDT)。如果您更喜欢使用专为非 Java 开发而设计的 Eclipse 版本,这很重要,例如PHP开发。

    在我的例子中,tarlog 在 Eclipse 启动时没有被识别。

    所以我已经通过 Eclipse Marketplace 安装了 JDT。

    如果没有JDT,插件无法识别,见logfile:

      !MESSAGE Unable to satisfy dependency from tarlog.eclipse.plugins 1.4.2 to bundle org.eclipse.jdt.ui 3.4.0.
    
     /home/knb/.p2/pool/plugins/org.eclipse.platform_4.6.1.v20160907-1200/splash.bmp
    Debug options:
        file:/opt/eclipse/php-neon/eclipse/.options loaded
    Time to load bundles: 51
    ..
    [p2] Mon Nov 14 10:05:24 CET 2016 - [Start Level: Equinox Container: 50199877-49aa-0016-1ecb-d3e3ab767be8] [reconciler] No extra requirements.
    !SESSION 2016-11-14 10:05:19.506 -----------------------------------------------
    eclipse.buildId=4.6.1.M20160907-1200
    java.version=1.8.0_111
    java.vendor=Oracle Corporation
    BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
    Framework arguments:  -product org.eclipse.epp.package.php.product -Dhelp.lucene.tokenizer=standard -Dosgi.requiredJavaVersion=1.7 -XX:MaxPermSize=256m -Xms256m -Xmx3072m eclipse
    Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.php.product -Dhelp.lucene.tokenizer=standard -Dosgi.requiredJavaVersion=1.7 -XX:MaxPermSize=256m -Xms256m -Xmx3072m eclipse -clean -console -consoleLog -debug /opt/eclipse/php-neon/eclipse/.options
    
    [p2] Mon Nov 14 10:05:24 CET 2016 - [Start Level: Equinox Container: 50199877-49aa-0016-1ecb-d3e3ab767be8] [reconciler] [plan] 
    Some units will not be installed, because they are already installed or there are dependency issues:
    tarlog.eclipse.plugins 1.4.2
    !MESSAGE Problems resolving provisioning plan.
    !MESSAGE Unable to satisfy dependency from tarlog.eclipse.plugins 1.4.2 to 
    bundle org.eclipse.jdt.core 0.0.0.
    !MESSAGE Unable to satisfy dependency from tarlog.eclipse.plugins 1.4.2 to 
    bundle org.eclipse.jdt.ui 3.4.0.
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-06-22
      • 1970-01-01
      • 2016-10-05
      • 1970-01-01
      • 1970-01-01
      • 2017-08-15
      • 2013-08-01
      相关资源
      最近更新 更多