Problem with Eclipse IMP Plugin - eclipse

I have just installed the IMP plugin for Eclipse but the IMP menus don't show up -for example, I can't see the IMP Perspective in the related area- I have followed the instructions at IMP website sharply -also used Eclipse SDK 3.3.2 as suggested in the EclipseCon 2009 tutorial presentation- and restarted Eclipse after installing the related IMP files but to no avail. The OS is Windows Vista, Any suggestions on how I can solve this ? Thanks.

Did you use the IMP update-site?
http://download.eclipse.org/technology/imp/updates
No messages in the log-file?
You could try to start the bundles by hand to see if there are any dependency problems.
Go to the "Console"-View and change it to "OSGi Host".
then enter something like "ss imp".
Then you will see the relevant plugins and there state.
You can analyze the plugins with diag like diag 57
Maybe this will throw messages about unresolved dependencies...

Related

MagicDraw 18.3 developing plugins using Eclipse 4.5.2.M

I am having trouble configurating Eclipse for MD 18.3 plugin development.
I have thoroughly followed the "MagicDraw 18.3 Developer Guide / Development in Eclipse" tutorial you can find inside MagicDraw\openapi section to set up Eclipse.
When launching MagicDraw with all plugins run configuration, it throws the following error and terminates:
!ENTRY org.eclipse.core.variables 4 120 2016-07-20 10:39:12.159
!MESSAGE Reference to undefined variable file_uri
caused by this line of the run configuration
-Dosgi.framework.extensions=reference:${file_uri:${workspace_loc:/MagicDraw/MAGIC_DRAW_INSTALL_DIRECTORY/lib/bundles}}/com.nomagic.magicdraw.osgi.fragment
However, \lib\bundles\com.nomagic.magicdraw.osgi.fragment_1.0.0.201601271815.jar
is existing
I'm running the demo license, but that shouldn't influence the configuration. Any suggestions?
UPDATE
Solved this issue, by replacing reference:${file_uri:${workspace_loc:/MagicDraw/MAGIC_DRAW_INSTALL_DIRECTORY/lib/bundles}}/com.nomagic.magicdraw.osgi.fragment with the actual path and enabling com.nomagic.magicdraw.platform.feature in the bundles tab of the run configuration.
Next Problem: The provided example plugins won't load, throwing
java.lang.NullPointerException at com.nomagic.magicdraw.plugins.XMLPluginDescriptorLoader.loadPluginDescriptorData(XMLPluginDescriptorLoader.java:172)
and therefore
ERROR PLUGINS - Failed to create plugin: My Plug-in 2
java.lang.ClassNotFoundException: myplugin2.MyPlugin2
Same message for both, the example plugins and my own plugin. I have checked the plugin.xml files and also experimentally enabled the run configurations > bundles > workspace checkbox.
Try to edit this line:
- Dosgi.framework.extensions=com.nomagic.magicdraw.osgi.fragment
Setting up a new clean Eclipse installation solved everything.

How do I find the correct Maven archetype project for developing with Scala in Eclipse?

I'm having problems trying to just create a Maven project using Scala (v2.11.6) within Eclipse (Luna). The instructions here says to install both plugins below.
Maven Integration in Eclipse
m2eclipse-scala connector
Both plugins can be installed by using the m2eclipse-scala update site. So here's what I did in my first attempt.
Download Eclipse Luna (for JavaEE developers)
Install "both" plugins above by using the m2eclipse-scala update site.
When Eclipse loads up, I attempt to create a Maven project, and the archetype I want to use is Group Id=net.alchim31.maven, Artifact Id=scala-archetype-simple, Version=1.5. However, this archetype never shows up when I enter in "scala-arch" in the filter text field.
The only project I see is the one with Group Id=org.scala-tools.archetypes, Artifact Id=scala-archetype-simple, Version=1.2. When I select this archetype to use, I get a bunch of error messages in Eclipse.
error while loading ConsoleRunner, Scala signature ConsoleRunner has wrong version expected: 5.0 found: 4.1 in ConsoleRunner.class
error while loading JUnit4, Scala signature JUnit4 has wrong version expected: 5.0 found: 4.1 in JUnit4.class
error while loading Specification, Scala signature Specification has wrong version expected: 5.0 found: 4.1 in Specification.class
In my second attempt, I try to download the pre-packaged bundle (Scala IDE for Eclipse). Again, when I attempt to create a Scala Maven project, I don't see the Maven archetype for Group Id=net.alchim31.maven (only for Group Id=org.scala-tools.archetypes).
Any ideas on what I'm doing wrong here? Or where I can find a vanilla Scala Maven project to import/modify and use for my own purpose?
Here's how I got it to work. It seems all the archetypes aren't available, so based on this answer, I created a remote catalog
Before
So do this
Go to [Windows] → [Preferences] → [Maven] → [Archetypes] → Add Remote Catalog and create the catalog, then Apply
For copy-pasting:
Catalog File: http://repo1.maven.org/maven2/archetype-catalog.xml
Description: Remote Archetypes
Go back to creating a new Maven project. Select the Remote Catalog from the dropdown. It will take a few moments to gather all the archetypes. You can see the progress at the very bottom right of the IDE. When it's done, you should be able to see the archetypes
After
Create your project with groupId and artifactId and such.
Right click the project, then from the context menu [Run As] &rarr [Maven Build]. In the dialog, type clean package into the goals. The run. The project should build and run the tests.
For me at first I got an error on the build. It was because my default environment is using Java 8. I'm pretty new to Scala, so I'm not sure is there is a problem with Scala and Java 8 or not (I think it's the Scala version in the pom (2.10.0)). But what I did to get it to work was just change the Java version used in the IDE to Java 7.
Basically just go to [Windows] → [Preferenes] → [Java] → [Installed JREs] → Add → [System VM] → Next → Directory → Find the directory of the Java home (version 7) → Finish → Then in the list tick Java 7.
Then build again. It should work. Good Luck!
One point I want to add, If you are getting following error while installing the archetype showed in image 1
Can't resolve Archetype
org.glassfish.jersey.archetypes:jersey-quickstart-webapp:2.21
org.eclipse.core.runtime.CoreException: Could not resolve artifact
org.glassfish.jersey.archetypes:jersey-quickstart-webapp:pom:2.21
Image 1:
Then before procedding with the solution specified above, try to complete these steps in eclipse.
I faced the same problem and chanced upon this SO question, as well as the answer, given by #peeskillet (many thanks). I am using:
Maven 3.3.3
Eclipse Luna Scala IDE 4.0.0.-vfinal-20150305-1644-Typesafe
Scala 2.11.6
JDK 1.8
After following the steps exactly as given here, I hit a wall. When I chose the right archetype (net.alchim31.maven), I was greeted with this error:
Could not resolve artifact net.alchim31.maven:scala-archetype-simple:pom:1.5
Suspecting that the maven embedded in eclipse was acting funny, I visited [Windows] -> [Maven] -> [Installations] and added local installation of maven (whatever is set to M2_HOME in my shell). But, no luck!
Exasperated, I visited this site: Scala Doc and switched back to command-line as this page instructs. Surprisingly (to me, at least), it worked. A maven-Scala project was created in the present directory, which I could import into Eclipse.
Just so that I am not misunderstood, I am not suggesting that #peeskillet's answer is wrong. Just wanted to share another way of creating a maven-scala project on Eclipse, in case it helps someone. I have not yet understood, why Eclipse-Scala-IDE is yet to give that 'Aha' feeling.
After you have successfully created the scala-maven project as described above, you will probably see an error "Type not found: type JUnitRunner specs.scala". In that case, manually add the following XML snippet to your pom.
<dependency>
<groupId>org.specs2</groupId>
<artifactId>specs2-junit_${scala.compat.version}</artifactId>
<version>2.4.16</version>
<scope>test</scope>
</dependency>
Moreover, to avoid errors when running mvn test,
[ERROR] scalac error: bad option: '-make:transitive'
You also need to delete the following line from the pom.xml file:
<arg>-make:transitive</arg>

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

Eclipse, dropins, console mode, Axis2 and dropins not installed

i'm new to the eclipse dev platform, i have a strange behaviour here while trying to install the following plugins :
org.apache.axis2.eclipse.codegen.plugin_1.6.2.jar
org.apache.axis2.eclipse.service.plugin_1.6.2.jar
i have downloaded them from Apache, extracted in a folder plugins inside dropins one so that i have :
D:\eclipse\dropins\plugins
org.apache.axis2.eclipse.codegen.plugin_1.6.2.jar
org.apache.axis2.eclipse.service.plugin_1.6.2.jar
and i can not still use/see them from the File / New / Other / Select a wizard
BTW after reading some posts about the kind of difficulties, i found that starting eclipse from command line with "eclipse -console" allow me to see them in the File / New / Other / select a wizard => Axis2 Code generator and Axis2 Service Archiver
so please, how is the right way to do ? and why adding -console do the trick while "normal" start do not ?
EDIT: forgot to write infos about Eclipse :
Eclipse Java EE IDE for Web Developers.
Version: Indigo Service Release 2
Build id: 20120216-1857
EDIT : actually i have tested both dropping these jars inside a plugins subfolder of dropins or directly inside dropins, and none had worked. The only way to have the Axis2 service Archiver is to start with eclipse -console and having them in a plugins... i surely have missed something or have a dependency fail but i do not know how to check/correct that. This is why i have asked here.
EDIT : if this could help :
inside my bundles.info
org.apache.axis2.eclipse.codegen.plugin,1.6.2,dropins/plugins/org.apache.axis2.eclipse.codegen.plugin_1.6.2.jar,4,false
org.apache.axis2.eclipse.service.plugin,1.6.2,dropins/plugins/org.apache.axis2.eclipse.service.plugin_1.6.2.jar,4,false
inside console :
osgi> ss axis2
Framework is launched.
id State Bundle
24 <<LAZY>> org.apache.axis2.eclipse.codegen.plugin_1.6.2
25 ACTIVE org.apache.axis2.eclipse.service.plugin_1.6.2
461 <<LAZY>> org.eclipse.jst.ws.axis2.consumption.core_1.0.105.v201004211
805
462 <<LAZY>> org.eclipse.jst.ws.axis2.consumption.ui_1.0.103.v20100421180
5
463 <<LAZY>> org.eclipse.jst.ws.axis2.core_1.0.204.v201004211805
464 <<LAZY>> org.eclipse.jst.ws.axis2.creation.core_1.0.106.v201004211805
465 <<LAZY>> org.eclipse.jst.ws.axis2.creation.ui_1.0.104.v201004211805
466 <<LAZY>> org.eclipse.jst.ws.axis2.ui_1.0.303.v201003110431
467 RESOLVED org.eclipse.jst.ws.axis2.ui.doc.user_1.0.100.v201005192217
osgi> diag 25
reference:file:dropins/plugins/org.apache.axis2.eclipse.service.plugin_1.6.2.jar
[25]
No unresolved constraints.
osgi> diag 24
reference:file:dropins/plugins/org.apache.axis2.eclipse.codegen.plugin_1.6.2.jar
[24]
No unresolved constraints.
and i do not find a file .metadata\.plugins\org.eclipse.pde.core\org.eclipse.equinox.simpleconfigurator in my Eclipse Workspace
best regards
I've found the dropins catalog to not be that dependable to be honest. Sometimes it works perfectly, othertimes nothing you do will make it work. I've written a question regarding it, but no answer yet: Plugins in dropins-catalog are not found
What you can do is to check if the plugin is found at all, or if there are dependencies issue that will prevent it from starting. I usually recommend Dude, where's my bundle as a good starting point to understanding how the bundles work with their different states.
The osgi console can be a useful tool to see if your plugins are loaded at all. I wrote a more elaborate answer to a question where I described how it works: https://stackoverflow.com/a/9885646/207764
As explained in the Axis2 documentation, you need to "extract the content of the plugins folder in the ZIP archive into the dropins folder (i.e. do not create a plugins folder under dropins)".

Overlapping instances error for Yesod and EclipseFP application

I created an application with EclipseFP, the yesod application. With the out of the box settings, I get an error when I try to run a 'main.hs' file. It looks like it compiles but when I try to run I get the error. I attempted to run by 'right clicking' and then 'run'. The console opens:
What might be the issue?
Here is the error:
<command line>:
Could not find module `OverlappingInstances':
Use -v to see a list of the files searched for.
Failed, modules loaded: none.
Prelude> main
Version: Indigo Service Release 2
Eclipse FP Haskell Plugin - 2.2.4
GHC version 7.0.3
Possible solutions:
I tried to add '{-# LANGUAGE OverlappingInstances #-}' at the top of all of the haskell files
This is a bug, I've fixed it in the github version of EclipseFP/BuildWrapper. Will be part of the 2.3.0 release of EclipseFP. We're getting the wrong options from the cabal file and pass OverlappingInstances to GHCi without the -X. Sorry!