Eclipse Neon for Eclipse Committers can't resolve org.eclipse - java

I recently upgraded to Eclipse Neon. I had a plugin project that built fine in Eclipse Luna, but now in neon, everywhere that I imported "org.eclipse."something I get an error:
The import org.eclipse cannot be resolved.
The plugin.xml has errors etc.
The Project build path has "Plugin Dependencies" on the build path.
My version of Eclipse is
Eclipse IDE for Eclipse Committers
Version: Neon.3 Release (4.6.3)
Build id: 20170314-1500
I'm running on MacOSX High Sierra.
It's probably something very simple.

I have a similar problem every time I upgrade my eclipse installation.
For me the problem can be solved by adjusting the Target platform (can be found in the settings - just search for it) to match the currently running one. For that in most cases I simply add a target platform with default configuration and set that one active.
After a rebuild (normally performed automatically) all those errors are gone.

Related

Eclipse Luna - "No projects are found to import"

I am using the following version of Eclipse IDE:
Eclipse SDK
Version: Luna SR2 (4.4.2)
Build id: M20150204-1700
I have checked out my code using SVN and when I do the following:
Import > general > Existing Projects into Workspace > click on project
I get the error:
"No projects are found to import"
How can I solve this?
In that release, the wizard expects to find .project files defining the projects. If they were not checked in, you can not use that wizard. You have more options under the current release, Oxygen.2, and unless you have a reason to be using a 3 year old version, I'd suggest updating and using the new "Open Projects from File System" wizard.

Unable to install egit plugin in eclipse galileo

I have an git URI and I want to import that project into Eclipse.
From this post I learned that we need to need to install the egit software in Eclipse.
But when I try to install this software I get the following error messages:
I am just thinking is the repository for egit moved to other place or are there any compatibility issues? I am totally not sure.
I am using Eclipse Galileo Platform Version: 3.5.2 Build id: M20100211-1343.
Is anybody there who encountered the same problem??
UPDATE -- This is the full error message
Cannot complete the install because one or more required items could not be found.
Software being installed: Eclipse Git Team Provider 4.2.0.201601211800-r (org.eclipse.egit.feature.group 4.2.0.201601211800-r)
Missing requirement: Eclipse Git Team Provider 4.2.0.201601211800-r (org.eclipse.egit.feature.group 4.2.0.201601211800-r) requires 'org.eclipse.core.runtime [3.7.0,4.0.0)' but it could not be found
The key part of the error is
requires 'org.eclipse.core.runtime [3.7.0,4.0.0)'.
This is saying that the org.eclipse.core.runtime plugin must be at least version 3.7.0 (and below 4.0.0).
The version of org.eclipse.core.runtime in Eclipse Galileo is 3.5.0 so this version of EGit cannot be installed on Galileo. Either move to a newer Eclipse or try and find an older EGit (I don't know if a suitable version exists).

Eclipse Plugin not working in Juno

I had developed an eclipse plugin in eclipse luna.
It is absolutely working fine as expected in eclipse luna.
But now when i am copying this plugin jar to the plugins folder of eclipse juno and restarting my eclipse it is not working.
It doesn't even display the plugin in the installed plugins list.
Also when i am starting the console (juno) in osgi view , and typing the command ss command my plugin is not listed there.
Is there any version compatibility issue among the eclipse versions ?
UPDATE :
As per Gilbert's suggestion I created the same plugin in eclipse JUNO , and I am able to run it successfully in the runtime workbench.
Now when I am exporting this jar file and manually copying it into my plugins directory it is not working. I ran the ss command where the plugin is listed and it is in the STARTING state.
Still I am not sure why on exporting the jar it is not working ??
Please help , how to fix this.

Eclipse - Importing an existing Maven project gives Unsupported IClasspathEntry kind=4 Error

I have an existing Maven project with correct pom.xml file. I am able to build the project from command line mvn install. However, when I import the project as existing Maven Project in eclipse, I get Unsupported IClasspathEntry kind=4 error in eclipse.
Further, some of the project's properties are not correctly reflected after the import - E.g. it is a web project, but I do not see Deployed Resources under the project structure. I can still see that little M on the project icon indicating that it is a maven project.
I tried updating the project with Alt+F5 and refreshed it with F5 as well. Still the same error.
I also tried the approach mentioned on this SO post
How to fix error "Updating Maven Project". Unsupported IClasspathEntry kind=4?
i.e. Disable maven nature, eclipse:clean, re-enable maven nature. Still the same error when I enable maven nature.
Eclipse also shows an error in my pom.xml, but mvn install works fine from cmd line.
Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.5:copy-resources (default-cli)
I am not sure if these 2 errors are related or not.
My setup:
Windows 7 Pro (64 bit)
JDK 1.6.0_31 (32 bit)
Eclipse Juno 4.2
Maven 3.0.5
m2e 1.4.0
I finally managed to resolve the reported errors. This is what I followed:
1) My eclipse was 64-bit version, but it was run using a 32-bit JVM. I changed eclipse.ini to use 64-bit JVM.
2) Deleted the project from my workspace.
3) Cleaned eclipse project files using mvn eclipse:clean. And created the project files again using mvn eclipse:eclipse
4) Imported the project as General > Existing project in eclipse
5) Built the project
This time, there were no errors reported for Unsupported IClasspathEntry kind=4. I hope, it helps others facing the same problem. Beware of Eclipse's 32-bit / 64-bit JVM. Prefer to use the same architecture as eclipse - i.e. use 64-bit JVM if your eclipse is 64-bit.
Right-click on your project,
select Maven -> Remove Maven Nature.
Open you terminal, go to your project folder and do “mvn eclipse:clean”
Right click on your Project and select “Configure -> Convert into Maven Project”
For me the best sollution was to clear up the directory from hidden files (I don't know how this structure looks like on Windows OS).
Remove all hidden files from your project structure
Be happy

Version 1.8 of project facet java does not exist

I'm trying to build a Dynamic Web Application in eclipse using Java 8 (and Wildfly appServer if that matters) but I'm unable to make Eclipse Luna M5 use Java 8 (I do have Java 8 BETA support installed and it works on JavaSE projects).
In my POM I set the level to Java 8:
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
But after I do maven -> update project I get the following error:
Could not update project ExampleApp configuration
Version 1.8 of project facet java does not exist.
And indeed there is no java 1.8 project facet under project->preferences->project facets->java
Can I manually create such facet and add It to to eclipse or I'll have to wait until java 8 is released and the eclipse guys decide to add it ?
There are additional patches available for Kepler SR2 officially.
In ecliplse, go to "Help" --> "Market Place" --> Search for java 8 kepler.
Then choose and install the following.
install Java 8 support eclipse kepler sr2,
Java 8 Facets for web tools eclipse kepler sr2
Java 8 support for m2e for Eclipse Kepler SR2 (if required)
Reference: http://www.eclipse.org/downloads/java8/
After this, my multi-module maven project with java 8 is building fine without any error in eclipse kepler SR2.
UPDATE: If you are using Spring Tool Suite (STS), then version 3.5.1 has included these features.
There is an official bug report/patch for Kepler SR2. It also works with Spring Tool Suite 3.5.0.RC4 (which is based on Kepler). It should work for Luna too.
Bug report : https://bugs.eclipse.org/bugs/show_bug.cgi?id=430637 (see comment #12)
Update site for the Java 8 facet : http://download.eclipse.org/webtools/patches/drops/R3.5.2/P-3.5.2-20140329045715/repository
While we await official Java 1.8 support, I've made a github fork that contains what I believe are the required changes - these require the Java 8 patches from here first: https://wiki.eclipse.org/JDT_Core/Java8
To install the 1.8 facet support (assuming that you're running 4.3.1 or 4.3.2, and have write access to the main .../eclipse/plugins dir):
git clone https://github.com/stevestorey/webtools.common.fproj
git checkout java8-support
Import the various projects in this feature set into your Eclipse IDE (can be on a new workspace). Specifically you need org.eclipse.wst.common.project.facet.core and org.eclipse.wst.common.project.facet.core
Right click on the org.eclipse.jst.common.project.facet.core project and choose "Export" and then "Plug-in development\Deployable plugins and fragments"
From the Export dialog, select only the org.eclipse.jst.common.project.facet.core plugin, and choose the bottom "Install into host" radio button, and choose a suitable path (I believe I went with the default, but I don't think it particularly matters)
Clicking Finish will build the plugin, and then kick off the installation into your Eclipse environment.
After restarting Eclipse, you should find that 1.8 is now selectable as a Java facet :) (and it also works with M2E enabled projects that specify source/target of 1.8).
Note the instruction from the standard 1.8 patch instructions that the installed JDK /must/ be called "JavaSE-1.8" within the Eclipse properties.
Also note that if/when you update Eclipse (e.g. to upgrade to 4.3.2), you will probably need to re-install the patched version again as the update will put the "official" version of the plugin back in.
I hit exactly the same problem a few days ago. Looks like this will be included into the next release of Eclipse Luna.
Java Version 1.8 of project facet java does not exist
Eclipse Luna M6 is scheduled for release on March 14th so hopefully it will be included then.
Recently Java updated to Java 8 so you need to update to the new Eclipse for it to work. I was running Eclipse 4.3 (Kepler) and I had to upgrade to Eclipse 4.4 (Luna)
Go to Your Project Property search for project facet and change java version

Categories

Resources