Some error when clone om2m using eclipse [message #1724303] |
Mon, 22 February 2016 18:13  |
Eclipse User |
|
|
|
Hello,
I am a fresher in the Java and om2m, and I am now plan to do a project with platform of om2m, but some unexpected error occurred when I cloned the om2m using eclipse. I hope get the solution from here.
I followed the instruction on the OM2M web page to downloaded some required software, and conducted following the step.
Quesiton 1:
After cloning and importing, there is some errors in package, the web page said "If some errors appears on the project, try to update it: Select the package "org.eclipse.om2m" -> right click -> maven -> update Project.",
but after updataing, the package of "org.eclipse.om2m.binding.http" still existed error in stack:
CloseableHttpClient cannot be resolved to a type RestHttpClient.java
HttpClients cannot be resolved RestHttpClient.java
The import org.apache.http.impl.client.CloseableHttpClient cannot be resolved
The import org.apache.http.impl.client.HttpClients cannot be resolved
error resource : RestHttpClient.java
I think it is due to the download of rest client. I did it a simple rest client on google, but I am not clear how it is to do with the error. please forgive maybe is a simple quetion for you guys.
Quesiton 2:
The second question existed in add my plugin in project. when I did the convert to maven project operation, I was supposed to shoose packaging type as eclipse-plugin, BUT this type dosen't exist in my eclipse which is download using the given link on host web page.
I hope you can help me solve this problem. Thank you...
|
|
|
|
Re: Some error when clone om2m using eclipse [message #1724662 is a reply to message #1724303] |
Thu, 25 February 2016 05:39  |
Eclipse User |
|
|
|
Hello,
For the first point, the problem comes from a bad version of the plugin in your IDE. (If you try to execute a maven install in command line, it should work.) You can try what Nejc indicated or you can try to add new software directly in Eclipse and add the latest version of the org.apache.httpcomponents core and client plugins. Go in help > install new software
use this url: http://download.eclipse.org/tools/orbit/downloads/drops/R20151221205849/repository
And you will find the two plugins. Add them to you IDE and it should solve the issue.
For the second point, eclipse IDE does not recognizes the eclipse-plugin type. So yes just type it manually and it should work.
[Updated on: Thu, 25 February 2016 05:39] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04558 seconds