equinox

Adding extra system properties to an Eclipse programmatic restart

吃可爱长大的小学妹 提交于 2021-02-10 13:17:10
问题 I have a plugin that forces a restart of Eclipse by using: Workbench.getInstance().restart(); However, I need this restart to include a new environment variable: eclipse.refreshBundles=true Is there any way to add such an environment variable for this next restart of Eclipse only? 回答1: Eclipse has 2 modes for restarting: "restart" using the previous command line, or "relaunch" using a new command line. The launcher itself will remember the previous command line, so in order to add a new

ClassNotFoundException for org.osgi.framework.BundleActivator despite of Import-Package

我与影子孤独终老i 提交于 2021-01-27 06:32:35
问题 I tried running a really simple OSGi "Hello World"-style example with an activator after a longer while again and got a ClassNotFoundException for org.osgi.framework.BundleActivator (see stack trace below). The environment is basic Equinox (org.eclipse.osgi_3.7.2...). All bundles (besides mine) are ACTIVE. I have "org.osgi.framework" in my "Import-Package" declaration in the manifest, and I can see the class in the package dependencies in Eclipse. Can someone give me a hint on what to try to

ClassNotFoundException for org.osgi.framework.BundleActivator despite of Import-Package

僤鯓⒐⒋嵵緔 提交于 2021-01-27 06:32:25
问题 I tried running a really simple OSGi "Hello World"-style example with an activator after a longer while again and got a ClassNotFoundException for org.osgi.framework.BundleActivator (see stack trace below). The environment is basic Equinox (org.eclipse.osgi_3.7.2...). All bundles (besides mine) are ACTIVE. I have "org.osgi.framework" in my "Import-Package" declaration in the manifest, and I can see the class in the package dependencies in Eclipse. Can someone give me a hint on what to try to

无法启动Eclipse-Java已启动,但返回了退出代码= 13

白昼怎懂夜的黑 提交于 2020-08-05 05:52:10
问题: I am trying to get my first taste of Android development using Eclipse. 我正在尝试使用Eclipse进行Android开发。 I ran into this problem when trying to run Eclipse, having installed version 4.2 only minutes ago. 在几分钟前尝试安装Eclipse时,我尝试运行Eclipse时遇到了这个问题。 After first trying to start Eclipse without any parameters to specify the Java VM, I got an error message saying it couldn't find a Java VM called javaw.exe inside the Eclipse folder , so I found where Java was installed and specified that location as the parameter in the shortcut's target. 第一次尝试在没有任何参数的情况下启动 Eclipse 以指定Java VM之后,我收到一条错误消息,提示它 couldn't

eclipse 指定jre位置

二次信任 提交于 2020-07-25 03:15:28
eclipse 指定jre位置 -startup plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.551.v20171108-1834 -product org.eclipse.epp.package.committers.product -showsplash org.eclipse.epp.package.common --launcher.defaultAction openFile --launcher.defaultAction openFile --launcher.appendVmargs -vm C:\Program Files (x86)\Java\jre1.8.0_251\bin\javaw.exe -vmargs -Dosgi.requiredJavaVersion=1.8 -Dosgi.instance.area.default=@user.home/eclipse-workspace -XX:+UseG1GC -XX:+UseStringDeduplication --add-modules=ALL-SYSTEM -Dosgi

How to troubleshoot dependency problem with OSGi libraries when doing a PDE build?

心不动则不痛 提交于 2020-04-30 09:25:11
问题 I'm trying to build a feature product using the latest Eclipse 2020-03 (4.15.0) version and hitting the error Unresolved requirement below. I have this same exact issue with Eclipse 2019-12 (4.14.0). This issue does not occur if using Eclipse Mars (4.5.2). eclipse.buildId=4.15.0.I20200305-0155 java.version=1.8.0_252 java.vendor=Amazon.com Inc. BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US Framework arguments: -application org.eclipse.ant.core.antRunner -verbose -buildfile c:

Service and Component in OSGI

女生的网名这么多〃 提交于 2020-01-17 14:02:10
问题 I have some little silly doubts in an OSGI concepts but they need to be clarified to have better understanding of concepts. Can anybody tell me what is the difference between OSGI Service and Component. What i know is that Service is like an interface file in java that can be used either by a different service or by a component. While component is like a particular implementation of the service. Please let me know if i am wrong or suggest some link from where i can get the things nicely. 回答1:

Service and Component in OSGI

六眼飞鱼酱① 提交于 2020-01-17 14:02:09
问题 I have some little silly doubts in an OSGI concepts but they need to be clarified to have better understanding of concepts. Can anybody tell me what is the difference between OSGI Service and Component. What i know is that Service is like an interface file in java that can be used either by a different service or by a component. While component is like a particular implementation of the service. Please let me know if i am wrong or suggest some link from where i can get the things nicely. 回答1:

How to get a bundle-object returned by a service out of the Equinox framework - java.lang.LinkageError

巧了我就是萌 提交于 2020-01-16 16:47:09
问题 I have a class which runs an Equinox framework. Now I would like to get an Object (defined in one of the bundles) that is returned by a service out of the framework. Unfortunately, I get a LinkageError and have no idea how to get rid of it. Is it even possible to let a service return a proper object to non-bundle code? Here is the full story: ParserDTOBundle is a bundle that defines the class ParserDTO and exports the corresponding package. In another bundle, ParserServiceBundle, I define a

EclipseLink : No Persistence provider for EntityManager named

不问归期 提交于 2020-01-02 03:53:09
问题 I'd like to create one Bundle that is able to use Java Persistence. To achieve this, I've created a plugin project within Eclipse. In my project, I've created a persistence.xml file into META-INF. I've aslo added in my MANIFEST.mf (into the depencies) those 3 packages : javax.persistence.jar org.eclipse.persistence.jar org.eclipse.persistence.jar Then, in my Activator I use this lines to create an EntityManager : factory = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME);