Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » OM2M » Some error when clone om2m using eclipse
Some error when clone om2m using eclipse [message #1724303] Mon, 22 February 2016 23:13 Go to next message
kaidi wang is currently offline kaidi wangFriend
Messages: 1
Registered: February 2016
Junior Member
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 #1724326 is a reply to message #1724303] Tue, 23 February 2016 08:08 Go to previous messageGo to next message
Nejc Gašperin is currently offline Nejc GašperinFriend
Messages: 5
Registered: February 2016
Junior Member
For the first question, try to import httpclient-4.3-beta1.jar lib into your org.eclipse.om2m.binding.http project. You can find it at java2s.com (cant post link, cuz i have fewer then 5 messages)

Second question: try just typing "eclipse-plugin" into textfield.
Re: Some error when clone om2m using eclipse [message #1724662 is a reply to message #1724303] Thu, 25 February 2016 10:39 Go to previous message
Guillaume Garzone is currently offline Guillaume GarzoneFriend
Messages: 38
Registered: April 2015
Member
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 10:39]

Report message to a moderator

Previous Topic:Documentation for the new platform version
Next Topic:OM2M debugging - Eclipse
Goto Forum:
  


Current Time: Fri Nov 16 11:29:27 GMT 2018

Powered by FUDForum. Page generated in 0.02759 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top