Running the Server/Daemon

Server: Running the Server/Daemon

Server: Installation

  • If you downloaded the full version of the CppPlugin, then make sure that the following directories exist in your plugins directory.

    /home/user/eclipse/plugins/org.eclipse.cdt.dstore.extra.server
    /home/user/eclipse/plugins/org.eclipse.cdt.dstore.core
    /home/user/eclipse/plugins/org.eclipse.cdt.dstore.miners
    /home/user/eclipse/plugins/org.eclipse.cdt.cpp.miners
    /home/user/eclipse/plugins/org.eclipse.cdt.cpp.miners.parser
    /home/user/eclipse/plugins/com.ibm.debug
    /home/user/eclipse/plugins/org.eclipse.cdt.debug.gdbPicl

  • If you only downloaded the server version then:
    1. choose a directory on your server machine to install the DataStore server
      /home/user/dstore/
    2. copy the zip file to the server machine in the chosen location
    3. After you unzip the server package, you should have the following directories:
      /home/user/dstore/org.eclipse.cdt.dstore.extra.server
      /home/user/dstore/org.eclipse.cdt.dstore.core
      /home/user/dstore/org.eclipse.cdt.dstore.miners
      /home/user/dstore/org.eclipse.cdt.cpp.miners
      /home/user/dstore/org.eclipse.cdt.cpp.miners.parser
      /home/user/dstore/com.ibm.debug
      /home/user/dstore/org.eclipse.cdt.debug.gdbPicl

Running a DSTORE SERVER

  • You need to run the script "server.linux" which is located in the directory org.eclipse.cdt.dstore.core. So, if you have the full version of the CppPlugin:
    	cd /home/user/eclipse/plugins/org.eclipse.cdt.dstore.core
    	./server.linux
    	
  • If you only have the server version then:
    	 cd /home/user/dstore/org.eclipse.cdt.dstore.core
    	 ./server.linux
    	 

Running a DSTORE DAEMON

  • Make sure that you are running as root. If the daemon is not run under root, it will be unable to authenticate connecting users.


  • You need to run the script "daemon.linux" which is located in the directory org.eclipse.cdt.dstore.core. So, if you have the full version the CppPlugin:
    	cd /home/user/eclipse/plugins/org.eclipse.cdt.dstore.core
    	./daemon.linux
    	
  • If you only have the server version then:
    	 cd /home/user/dstore/org.eclipse.cdt.dstore.core
    	 ./daemon.linux
    	 

Server: Installing/Running the Server/Daemon MANUALLY

If for some reason the scripts above failed to run the server/daemon, then try runnning the server/daemon manually.
The following assumes you downloaded the full CppPlugin. If you instead downloaded only the server version, then replace all references to /home/user/eclipse/plugins/ with /home/user/dstore/

Server: Installation

  1. Make sure that the following directories exist in your plugins directory.
    /home/user/eclipse/plugins/org.eclipse.cdt.dstore.extra.server
    /home/user/eclipse/plugins/org.eclipse.cdt.dstore.core
    /home/user/eclipse/plugins/org.eclipse.cdt.dstore.miners
    /home/user/eclipse/plugins/org.eclipse.cdt.cpp.miners /home/user/eclipse/plugins/org.eclipse.cdt.cpp.miners.parser
    /home/user/eclipse/plugins/com.ibm.debug
    /home/user/eclipse/plugins/org.eclipse.cdt.debug.gdbPicl


  2. Define the environment variable A_PLUGIN_PATH as follows:
    export A_PLUGIN_PATH=/home/user/eclipse/plugins
  3. Set your CLASSPATH as follows:
    export CLASSPATH=/home/user/eclipse/plugins/org.eclipse.cdt.dstore.extra.server/
    extra_server.jar:/home/user/eclipse/plugins/org.eclipse.cdt.dstore.core/dstore_c
    ore.jar:/home/user/eclipse/plugins/org.eclipse.cdt.dstore.miners/dstore_miners.j
    ar:/home/user/eclipse/plugins/org.eclipse.cdt.cpp.miners/cpp_miners.jar:/home/us
    er/eclipse/plugins/org.eclipse.cdt.cpp.miners.parser/miners_parser.jar:$CLASSPATH
            

Running a DStore Server

  1. Change directory to
    /home/user/eclipse/plugins/org.eclipse.cdt.dstore.core
  2. Type the following to start a DStore Server:
    java -DA_PLUGIN_PATH=$A_PLUGIN_PATH org.eclipse.cdt.dstore.core.server.Server [port]

    NOTE: By default the port is 4033.

Running a DStore Daemon

  1. Make sure that you are running as root. If the daemon is not run under root, it will be unable to authenticate connecting users.


  2. Type the following to start a DStore Daemon:
    java -DA_PLUGIN_PATH=$A_PLUGIN_PATH org.eclipse.cdt.dstore.core.server.ServerLauncher

Contact Us