Migrate RCP project from 3.6 to 4.4 - eclipse

I am upgrading an RCP project to Eclipse 4 (4.4.2) from Eclipse Helios (3.6.1).
I had a problem with plug-in configuration. Here is the stack trace: http://pastebin.com/SHEY4iYq.
The stack trace told: Import-Package: javax.annotation; version="1.0.0". But i think i already had this library in plug-in dependency. http://prntscr.com/7taz9m
Any solution about this case? Or any suggestion would be appreciated. Thank you very much.

The Import-Package just says that you need this package. The error is telling you that the javax.annotation import cannot be found when you run the application.
You probably need to update your RCP build to include the javax.annotation plugin (and possibly other plugins). How you do this depends on the type of build you are using.

Related

Grails 2.5.5 in Eclipse with Groovy Compiler 2.4.12 throws Refresh Dependencies error

I have installed Grails 2.5.5 in Eclipse GGTS (3.6.4.RELEASE) and have added Groovy Compiler feature 2.4.12. I am importing existing projects into the workspace.
Before updating the compiler, refresh dependencies (on a new project) worked without problems. Now, when I run Refresh Dependencies (alt+g,r), it throws an error. I am looking for guidance to help resolve the issue. The log shows the following
!ENTRY org.grails.ide.eclipse.core 4 0 2017-07-25 18:43:19.426
!MESSAGE Refresh dependecies failed
!STACK 0
java.lang.NoClassDefFoundError: org/codehaus/groovy/frameworkadapter/util/SpecifiedVersion
at org.grails.ide.eclipse.commands.GroovyCompilerVersionCheck.getRequiredGroovyVersion(GroovyCompilerVersionCheck.java:63)
at org.grails.ide.eclipse.commands.GroovyCompilerVersionCheck.getRequiredGroovyVersion(GroovyCompilerVersionCheck.java:57)
at org.grails.ide.eclipse.commands.GroovyCompilerVersionCheck.check(GroovyCompilerVersionCheck.java:50)
at org.grails.ide.eclipse.commands.GrailsCommandUtils.refreshDependencies(GrailsCommandUtils.java:327)
at org.grails.ide.eclipse.core.internal.classpath.GrailsClasspathContainerUpdateJob.runInWorkspace(GrailsClasspathContainerUpdateJob.java:89)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Background
This is an issue present in a specific version of the groovy-eclipse plugin. As far as I know the issue is present in groovy-eclipse v2.9.2.xx-201707260047-e44 (groovy compiler v2.4.12).
Since then the issue has ben reported and fixed.
Solution
To solve the problem simply update the groovy-eclipse plugin to v2.9.2.xx-201707311844-e44 or newer:
In the Help menu select Install New Software
Select or add the source http://dist.springsource.org/snapshot/GRECLIPSE/e4.4/ in the Work with field
In the Groovy Compilers category select the Groovy Compiler 2.4 item
Clic Next and proceed with the update
Restart GGTS to apply the changes

Error while adding SCALA IDE with eclipse juno

I get the Following Error while installing plugin of SCALA IDE. The same happened for Eclipse Juno and Eclipse Juno(ADT)
Cannot complete the install because one or more required items could not be found.
Software being installed: Scala IDE for Eclipse dev support 4.0.0.v-2_11-201503032103-b2bbad6 (org.scala-ide.sdt.dev.feature.feature.group 4.0.0.v-2_11-201503032103-b2bbad6)
Missing requirement: Scala Plugin 4.0.0.v-2_11-201412171518-2279837 (org.scala-ide.sdt.core 4.0.0.v-2_11-201412171518-2279837) requires 'bundle org.eclipse.jdt.core [3.9.0,3.10.0)' but it could not be found
Missing requirement: Scala Plugin 4.0.0.v-2_11-201501131019-027320c (org.scala-ide.sdt.core 4.0.0.v-2_11-201501131019-027320c) requires 'bundle org.eclipse.jdt.core [3.9.0,3.10.0)' but it could not be found
Missing requirement: Scala Plugin 4.0.0.v-2_11-201503032103-b2bbad6 (org.scala-ide.sdt.core 4.0.0.v-2_11-201503032103-b2bbad6) requires 'bundle org.eclipse.e4.ui.workbench 1.0.2' but it could not be found
Cannot satisfy dependency:
From: Scala IDE for Eclipse dev support 4.0.0.v-2_11-201503032103-b2bbad6 (org.scala-ide.sdt.dev.feature.feature.group 4.0.0.v-2_11-201503032103-b2bbad6)
To: org.scala-ide.sdt.core 0.0.0
Please help regarding this.I have searched several posts regarding the dependency error But was unable to find solution.
The problem was solved when I updated my version of eclipse juno to eclipse luna. Then I added the plugin. And It worked Great.
The update can be done using:-
The Eclipse Project Updates - http://download.eclipse.org/eclipse/updates/4.4

e(fx)clipse 0.9.0 on Kepler with Java 7

is it possible to run the e(fx)clipse sample application on Kepler & Java7 at all ?
I took the steps, descripted in tutorial 4 to integrate the target definition(s)
https://wiki.eclipse.org/Efxclipse/Tutorials/Tutorial4
I tried the all-in-one-eclipse as well as upgrading a common kepler-eclipse with update-site http://download.eclipse.org/efxclipse/updates-released/0.9.0/site
However, the Sample Project JavaFX/Samples/e4 Media Application can not be compiled.
With Target Definition "RCP 3x Platform", all! application dependencies can not be resolved
With Target Definition "Target Platform Feature" a warning comes up, that the target version is newer than my current Eclipse installation. There are no comile errors anymore, but running the app I will get a lot of runtime errors like:
Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.8))"
Did anybody get the sample "e4 Media Application" working ?
My Eclipse: Kepler Service Release 2
My Java: JDK 7u40
============== EDIT ==============
Got it working, thanks to Tom!
Install fresh new Eclipse: http:// www.eclipse.org/downloads/packages/eclipse-rcp-and-rap-developers/keplersr2
Install Xtext 2.5.0, Update-Site: http:// download.eclipse.org/modeling/tmf/xtext/updates/composite/releases
Install e(fx)clipse, Update-Site: http:// download.eclipse.org/efxclipse/updates-released/0.9.0/site
Add new Target Platform, Update-Site: http:// download.eclipse.org/efxclipse/runtime-released/0.9.0/site
Select FX Target -> Target Platform Feature
The nightly runtime site already requires Java8 (see announcement on e(fx)clipse newsrpoup!)
If you want to run it on Java7 you need to use http://download.eclipse.org/efxclipse/runtime-released/0.9.0/Site for the target platform

Missing bundles in osgi framework

I'm trying to run the region digraph bundle of Equinox in Eclipse IDE. When I run the relevant bundle using start command in OSGi command prompt, I'm getting an error saying
The bundle could not be resolved. Reason: Missing Constraint: Import-Package: org.osgi.framework.hooks.bundle; version="1.0.0". To find out the existing version in the framework, I tried the command p org.osgi.framework.hooks.bundle. The result shows all the bundles in the framework. In that list org.osgi.framework.hooks.bundle is not there. This is the same case for few other bundles such as
org.osgi.framework.hooks.resolver. Any helps about how to fix this issue??
What version of Eclipse are you using?
The org.osgi.framework.hooks.bundle package was added in OSGi Release 4.3, and so you would need a version of Eclipse that supports that, which would be at least Eclipse 3.7 (Indigo).

Using AspectJ/AJDT in RAD 7.5.5

I'm using RAD 7.5.5. I installed AJDT plugin from the download site:
http://archive.eclipse.org/tools/ajdt/34/update/
I converted one of the existing Java projects to an AspectJ project, added an aspect to print log statements on method start and end of a methodA(), rebuilt the project and deployed.
I'm getting the below exception when methodA() is called:
Exception thrown : java.lang.NoSuchMethodError: org/aspectj/runtime/reflect/Factory.makeMethodSig(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lorg/aspectj/lang/reflect/MethodSignature;
I googled and found this could be caused because of an older version of aspectjrt.jar. But RAD extends Eclipse 3.4 and hence I added the version of AJDT plugin that is compatible with Eclipse 3.4 (/RAD 7.5.5). Any pointers to what could be the problem?
Make sure that aspectjrt.jar is on your classpath. Also, make sure that it is the aspectjrt.jar that comes with AJDT.