|
|
*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"
|
|
|
|
|
|
* 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".
|
|
|
|
|
|
* 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 backgound.
|
|
|
|
|
|
* 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.
|
|
|
|
|
|
Now every other project can use jCoAP core as a Maven dependency (like our examples do)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\ No newline at end of file |