Code cleanup of client controller and service provider in C++ and JNI.
[platform/upstream/iotivity.git] / service / simulator / java / eclipse-plugin / ServiceProviderPlugin / README.txt
1 Service Provider eclipse plug-in
2
3 Pre-requisites
4 --------------
5     1.Build the IoTivity project for linux:
6         Run the "scons" command in iotivity home directory.
7         It generates the libraries in ~/iotivity/out/linux/<arch>/release directory.
8     2.Copy the libraries mentioned below into the libs folder of the plug-in project.
9         Required libraries: libSimulatorManager.so, liboc.so, liboctbstack.so, and liboc_logger.so
10     3.Import the Simulator Java SDK project from ~/iotivity/service/simulator/java/sdk/ into Eclipse IDE as given below.
11         File -> Import -> Select 'Existing projects into Workspace' under General category -> click next -> Browse to the above mentioned location ->
12         click Finish.
13       Export the sdk project as JAR file.
14         Right click the project -> Export -> select 'JAR file' option under Java -> Next -> Finish.
15       Copy the JAR file into the libs folder of the plug-in project.
16
17 Steps to run the plug-in
18 ------------------------
19     1.Import the plug-in project from ~/iotivity/service/simulator/java/eclipse-plugin/ into Eclipse IDE as given below.
20         File -> Import -> Select 'Existing projects into Workspace' under General category -> click next -> Browse to the above mentioned location ->
21         click Finish.
22     2.Set the LD_LIBRARY_PATH environment variable
23         Right click the project -> Properties -> Run/Debug Settings -> Edit -> select 'Environment' tab -> click on 'Select' -> check LD_LIBRARY_PATH option -> Ok.
24         Edit the LD_LIBRARY_PATH and add the complete path to the libs folder of the plug-in project -> Apply -> OK.
25         Then Apply -> OK to close the properties window.
26     3.Right click the project -> Run As Eclipse Application.