Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

PTP/rdt-setup

< PTP
Revision as of 14:53, 5 September 2008 by Tibbitts.us.ibm.com (Talk | contribs) (How to build and run RDT (Remote Development Tools))

How to build and run RDT (Remote Development Tools)

RDT allows the use of CDT on remote projects and files. In this discussion, the local machine is the one running eclipse, the remote machine is the one to connect to for running, debugging, file locations, etc.

Here is how to set it up and run.

  1. Get Eclipse 3.4 (Ganymede) and CDT 5.0.1
  2. Get RSE Server
    • From RSE download page at http://download.eclipse.org/dsdp/tm/downloads/ - click on version 3.0
    • on the "TM Release Build:3.0" page, scroll down to "DStore Server Runtime" section and get rseserver-3.0-<platform> file, zip or tar, for your remote machine's platform.
    • Untar it on the remote machine, for example in a directory named 'rseserver'
  3. Go to org.eclipse.ptp.rdt.core.remotejars project and use the .jardesc files to build all the jars
    • In CVS Repository exploring perspective, connect to dev.eclipse.org:/cvsroot/tools
    • Under HEAD, expand org.eclipse.ptp project, and expand 'rdt' folder
    • Check out all the rdt projects if you like - for this step you need the remotejars project - you don't need projects ending in 'test' or 'tests' however.
    • Expand the or.eclipse.ptp.rdt.core.remotejars project
    • Rightmouse on one of the *.jardesc files, and select "Open JAR Packager" - in here, select the export destination - where it will write the jar file.
    • Click 'Finish' and it will generate the jar file. It will also prompt you to save/overwrite the .jardesc file.
    • After setting this up, later you can rightmouse on the .jardesc file and just select "Create JAR" if you don't need to change anything.
  4. Deploy those jars to remote machine, e.g. in the 'rseserver' directory as in the example above
  5. Copy the eclipse jars for org.eclipse.equinox.common, org.eclipse.core.runtime, and org.eclipse.core.filesystem to remote machine, again into the 'rseserver' directory
    • They should be in your <eclipse-install>/plugins directory (on either local machine, or if eclipse SDK is on remote machine, can copy them from there. They are not platform-specific.)
    • for example
      • cp eclipse/plugins/org.eclipse.equinox.common_*.jar ~/rseserver
      • cp eclipse/plugins/org.eclipse.core.runtime_*.jar ~/rseserver
      • cp eclipse/plugins/org.eclipse.core.filesystem_*.jar ~/rseserver
  6. Add a line to minerFile.dat that has org.eclipse.ptp.internal.rdt.core.miners.CDTMiner in it
  7. Edit server.sh so that the CLASSPATH line looks something like:
    • CLASSPATH=.:dstore_extra_server.jar:dstore_core.jar:dstore_miners.jar:clientserver.jar:cdtminer.jar:cdtmodel.jar:cdtparser.jar:org.eclipse.core.runtime_3.4.0.v20080421-1805.jar:org.eclipse.equinox.common_3.4.0.v20080421-2006.jar:org.eclipse.core.filesystem_1.2.0.v20080421-1805.jar:stubs.jar:$CLASSPATH;
    • where the qualifier in the names of the eclipse jars matches what you copied in step 5

Back to the top