|
|
*How to set up jCoAP in Eclipse*
|
|
|
|
|
|
|
|
|
* First make sure Maven (a build system) is part of your Eclipse installation.
|
|
|
=> "Help"->"About Eclipse"->"Installation Details"
|
|
|
First make sure Maven (a build system) is part of your Eclipse installation.
|
|
|
* => "Help"->"About Eclipse"->"Installation Details"
|
|
|
|
|
|
* If the list of installed software does not contain the "m2e" Maven plugin you should install that first.
|
|
|
=> "Help"->"Install Software"; Work with "all available Sites" and search for "maven".
|
|
|
If the list of installed software does not contain the "m2e" Maven plugin you should install that first.
|
|
|
* => "Help"->"Install Software"; Work with "all available Sites" and search for "maven".
|
|
|
|
|
|
* After installing and restarting Eclipse you should be able to import Maven projects.
|
|
|
=> "File"->"Import" and search for "maven".
|
|
|
After installing and restarting Eclipse you should be able to import Maven projects.
|
|
|
* => "File"->"Import" and search for "maven".
|
|
|
|
|
|
* You can now import jCoAP:core; jCoAP:examples and/or jCoAP:proxy projects. jCoAP:core is always required for the other two projects.
|
|
|
You can now import jCoAP:core; jCoAP:examples and/or jCoAP:proxy projects. jCoAP:core is always required for the other two projects.
|
|
|
|
|
|
* Eclipse will now import the projects. Additionally Maven will download all dependencies of jCoAP in the background.
|
|
|
Eclipse will now import the projects. Additionally Maven will download all dependencies of jCoAP in the background.
|
|
|
|
|
|
* In order to make jCoAP projects compile, the compiler need to be set to Java 1.6 or higher.
|
|
|
=> Right click on the project -> "Properties" -> "Java Compiler"
|
|
|
In order to make jCoAP projects compile, the compiler need to be set to Java 1.6 or higher.
|
|
|
* => Right click on the project -> "Properties" -> "Java Compiler"
|
|
|
|
|
|
* Before you can run any example or the jCoAP proxy you need to build/install the jCoAP core first.
|
|
|
=> Select jCoAP project; right click -> "Runs as .." -> "Maven install".
|
|
|
* This will build the jCoAP core and makes it available in your local maven repository.
|
|
|
Before you can run any example or the jCoAP proxy you need to build/install the jCoAP core first.
|
|
|
* => Select jCoAP project; right click -> "Runs as .." -> "Maven install".
|
|
|
This will build the jCoAP core and makes it available in your local maven repository.
|
|
|
|
|
|
* Now every other project can use jCoAP core as a Maven dependency (like our examples do).
|
|
|
Now every other project can use jCoAP core as a Maven dependency (like our examples do).
|
|
|
|
|
|
* If you want to use jCoAP:core for your own project without Maven you can just put the jCoAP project as a dependency.
|
|
|
=> Select your project; right click -> "Project Properties" -> "Java Build Path" -> "Projects" -> "Add" and select jCoAP core
|
|
|
If you want to use jCoAP:core for your own project without Maven you can just put the jCoAP project as a dependency.
|
|
|
* => Select your project; right click -> "Project Properties" -> "Java Build Path" -> "Projects" -> "Add" and select jCoAP core
|
|
|
|
|
|
Known issues:
|
|
|
* Old versions of the m2e plugin (and the respectively, older versions of Eclipse [3.8.1 and lower]) cannot deal with the Maven plugins "copy-dependency" and "unpack". We recommend using a more recent version of Eclipse and m2e.
|
... | ... | |