标签: eclipse-plugin

Eclipse RCP AspectJ配置

我正在尝试在Eclipse RCP/RAP应用程序中添加AspectJ.

我一步一步地做了这些人说:链接到这里(除了创建一个新平台,我在我的平台上添加了我自己的库).

但问题是它仍然无法正常工作...我收到此错误:

osgi> !SESSION 2012-03-18 02:16:54.354 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_02
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments:  -dev file:/home/alexandru/workspaces/Java-RCP-RAP/project/.metadata/.plugins/org.eclipse.pde.core/RAP Application/dev.properties -os linux -ws gtk -arch x86_64 -consoleLog -console -data /home/alexandru/workspaces/Java-RCP-RAP/project/.metadata/.plugins/org.eclipse.rap.ui.launch/RAPApplication

!ENTRY org.eclipse.osgi 4 0 2012-03-18 02:16:54.960
!MESSAGE Bundle org.eclipse.equinox.weaving.hook not found.

java.lang.ClassNotFoundException: org.aspectj.weaver.loadtime.definition.Definition
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    at org.eclipse.equinox.weaving.aspectj.AspectJWeavingActivator.start(Unknown Source)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
    at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1130)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
    at …
Run Code Online (Sandbox Code Playgroud)

java osgi aspectj eclipse-plugin eclipse-rcp

5
推荐指数
1
解决办法
1680
查看次数

Eclipse android sdk bundle无法打开Android SDK Manager

我在我的新笔记本(Window 7 64位)中下载了新的Android和Eclipse软件包,然后打开我以前在PC上工作的旧文件.当我打开时,它显示了一些关于版本API的错误,我应该在SDK中修复它经理,但是当我尝试打开SDK Manager时,它将无法运行并在控制台中显示此错误.

[2555-11-20 10:27:27 - Dex Loader] SecurityException: Unable to find field for dex.jar
[2555-11-20 10:36:02 - SDK Manager] [SDK Manager] Failed to convert path to a short DOS path: C:\Windows\system32\java.exe
Run Code Online (Sandbox Code Playgroud)

我该如何解决?

java eclipse android eclipse-plugin

5
推荐指数
2
解决办法
1万
查看次数

使用thread.join确保所有线程都已连接时出现Pydev PyUnit问题

使用pydev进行测试时,我遇到了问题.我已经挖掘了这个问题并知道根本原因是什么.我提供了以下代码的示例,可用于重现该问题.

我主要测试Centos 6.3,python 2.7,eclipse juno,pydev 2.7.1,但问题也出现在具有类似设置的Windows 7上.

我有一个python脚本,作为服务器不同线程的进程启动器(所有内部第三方库,所以我不能辞去系统的那一面).

为了确保所有线程都在我的process.py结束时完成,我有一段代码试图在退出之前加入所有线程.

 for t in threading.enumerate():               
     if t.getName() != 'MainThread':
         t.join()   
Run Code Online (Sandbox Code Playgroud)

这在正常的生产代码中工作正常.

使用pydev在eclipse中运行PyUnit中的测试时会出现问题.额外的线程被添加到python导致我的测试挂起.

如果我使用Run As - > Python Run启动我的程序,我的代码按预期运行并退出正常.如果我使用Run As - > Python unit-test启动我的程序,测试总是挂起.

如果我看一下线程是否可用,问题就会变得清晰.使用提供的测试代码示例,我可以看到当运行测试作为python运行时,显示以下线程(如预期的那样)

Thread:  <bound method _MainThread.getName of <_MainThread(MainThread, started 140268135126784)>> 
Thread:  <bound method ThreadClass.getName of <ThreadClass(Thread A, started 140268006471424)>>
Thread:  <bound method ThreadClass.getName of <ThreadClass(Thread B, started 140267927631616)>>
Run Code Online (Sandbox Code Playgroud)

当我将测试作为单元测试运行时

Thread:  <bound method _MainThread.getName of <_MainThread(MainThread, started 139904571213568)>>
Thread:  <bound method WriterThread.getName of <WriterThread(pydevd.Writer, started daemon 139904379361024)>>
Thread:  <bound method ThreadClass.getName …
Run Code Online (Sandbox Code Playgroud)

python eclipse-plugin pydev python-2.7 python-unittest

5
推荐指数
1
解决办法
579
查看次数

收集要安装的项目时发生错误:osgi.bundle,org.eclipse.sdk,4.2.0.v201206081400

我正在尝试将Xtext项目导出为Eclipse产品.如果从Eclipse内部启动,启动配置可以完美运行,但我无法将其导出以生成自包含产品.我明白了:

收集要安装的项目会话上下文时发生错误:(profile = profile,phase = org.eclipse.equinox.internal.p2.engine.phases.Collect,operand =,action =).下载工件的问题:osgi.bundle,org.eclipse.sdk,4.2.0.v201206081400.

org.eclipse.sdk-4.2.0.v201206081400已作为工作区中的项目导入.我正在尝试使用"所有工作区和启用的目标插件"导出,而不是逐个选择插件.

我在Linux 64bit(Sabayon).

eclipse eclipse-plugin xtext eclipse-juno

5
推荐指数
1
解决办法
755
查看次数

我正在尝试安装eclipse egit但是有这个错误说

无法完成安装,因为找不到一个或多个必需的项目.正在安装的软件:Eclipse EGit 2.2.0.201212191850-r(org.eclipse.egit.feature.group 2.2.0.201212191850-r)缺少要求:Eclipse EGit 2.2.0.201212191850-r(org.eclipse.egit.feature.group 2.2.0.201212191850 -r)需要'org.eclipse.core.runtime [3.7.0,4.0.0)'但无法找到它

我的eclipse版本是Helios.还有这个我没有得到的清单.

Eclipse EGit

Eclipse EGit - 来源

Eclipse JGit

Eclipse JGit - 来源

Eclipse JGit命令行界面

Eclipse JGit命令行界面 - 来源

Eclipse Mylyn

Eclipse插件导入支持

我该如何解决这个问题?谢谢.

eclipse eclipse-plugin

5
推荐指数
2
解决办法
8721
查看次数

Eclipse缺少项目属性中的C/C++构建和常规

我运行了eclipse,并尝试使用opencv4android(http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/O4A_SDK.html)

说明说要转到项目 - >属性,它们将是一个C/C++构建来改变ndk-build的位置.但是,我没有看到C/C++构建或一般.

当我开始日食并去约:

Android开发者工具

版本:v22.0.1-685705

该产品包括Eclipse Platform,JDT,CDT,EMF,GEF和WTP,所有这些都是Copyright(c)Eclipse贡献者和其他人.访问http://eclipse.org/

Android开发者工具版权所有(c)Android开源项目.访问http://developer.android.com

eclipse android eclipse-plugin adt

5
推荐指数
2
解决办法
6720
查看次数

Eclipse冲突处理程序

在开发eclipse插件时,我在带有id crtc_v4.session的Manifest扩展中使用默认处理程序crtc_v4.handlers.StartSession创建了一个命令,我在清单中为此命令添加了一个处理程序,此处理程序根据变量crtc_v4.sessionvar启用命令.

控制台上出现的问题是:

!MESSAGE Conflicting handlers for crtc_v4.session:  {crtc_v4.handlers.StartSession@98bc5c} vs {crtc_v4.handlers.StartSession@1265d09}
Run Code Online (Sandbox Code Playgroud)

但它不会阻止运行插件.我问的是这个问题的解决方案,以及它是否会影响我的插件的性能?

编辑:

定义命令的代码段:

 <extension
     point="org.eclipse.ui.menus">
  <menuContribution
        allPopups="false"
        locationURI="toolbar:org.eclipse.ui.main.toolbar">
     <toolbar
           id="crtc_v5.crtctoolbar">
        <command
              commandId="crtc_v5.session"
              icon="icons/neutral.png"
              label="Start Session"
              style="push">
        </command>
     </toolbar>
  </menuContribution>
Run Code Online (Sandbox Code Playgroud)

定义处理程序的代码段:

 </extension>
      <command
        defaultHandler="crtc_v5.handlers.StartSession"
        id="crtc_v5.session"
        name="session">
  </command>
 </extension>
Run Code Online (Sandbox Code Playgroud)

这是对sessionvar的启用:

  <extension
     point="org.eclipse.ui.handlers">
  <handler
        class="crtc_v5.handlers.StartSession"
        commandId="crtc_v5.session">
     <enabledWhen>
        <with
              variable="crtc_v5.sessionvar">
           <equals
                 value="LOGGEDIN">
           </equals>
        </with>
     </enabledWhen>
  </handler>
Run Code Online (Sandbox Code Playgroud)

eclipse-plugin manifest eclipse-rcp handler

5
推荐指数
1
解决办法
4655
查看次数

Eclipse插件:java.lang.NoClassDefFoundError

如你看到的:

在此输入图像描述

我添加jni4net.j-0.8.6.0.jar到我的引用库但我stell收到一个java.lang.NoClassDefFoundError例外:

java.lang.NoClassDefFoundError: net/sf/jni4net/Bridge
    at sibeclipseplugin.debug.DebuggerInterface.initialize(DebuggerInterface.java:15)
    at sibeclipseplugin.debug.SibDebugTarget.<init>(SibDebugTarget.java:65)
    at sibeclipseplugin.ui.launch.LaunchConfigurationDelegate.launch(LaunchConfigurationDelegate.java:30)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:858)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:707)
    at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1018)
    at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1222)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Caused by: java.lang.ClassNotFoundException: net.sf.jni4net.Bridge cannot be found by SIBEclipsePlugin_0.0.0.1
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 8 more
Run Code Online (Sandbox Code Playgroud)

我不知道问题是什么.当我以Eclipse-Application启动项目时,它无法找到该类.在普通的Java-Project中运行相同的代码.

有人知道如何解决这个问题吗?

java eclipse eclipse-plugin exception

5
推荐指数
2
解决办法
1万
查看次数

如何为Eclipse PDE安装GEF/Draw2d source/javadoc?

从Eclipse下载站点安装Eclipse PDE之后,GEF和Draw2d似乎没有开箱即用的javadoc和源代码附件(JFace源附件工作正常).

在"Plugin Dependencies"树下的PDE项目中,我看到所有PDE JAR都将源集附加到相同的JAR.然而,JAR不包含任何源 - 仅包含类文件.我试着指向我下载的GEF源代码JAR的源附件,但是在重新启动工作区后,我的更改自动恢复为损坏的源附件.

eclipse eclipse-plugin eclipse-rcp eclipse-gef

5
推荐指数
1
解决办法
1856
查看次数

如何在Eclipse中支持AAR?

在新的Gradle构建系统中,我们可以以非常方便的.AAR格式打包Android项目.

不幸的是,ADT Eclipse插件v22不支持这种文件格式.请它可以这样做.

java eclipse android eclipse-plugin gradle-eclipse

5
推荐指数
1
解决办法
2826
查看次数