Downloads


   
  Make sure to review the X10 license.

Downloads
Installation Instructions

Downloads

X10 version v1.0.47
Prerequisites:
Additional prerequisites for X10 developers: Optional Packages:
All X10 releases
Back to top

Installation instructions

The X10 distribution is an archive of the java source files. Unpack them in your destination directory, and ensure any prerequisites are installed. To build the command line version, cd into each top level directory and type "ant".

X10DT is available as a zip file found within the X10 distribution package. Unpack this file on top of your existing Eclipse installation directory. Alternatively, it can be installed directly from within Eclipse itself (the preferred method) from the X10DT Eclipse Update Site.

Command line setup

After unpacking the X10 distribution and ensuring Java and Cygwin (or equivalent) tools are available:

  • set the JAVA_HOME environment variable such that it points to the Java installation that you want to use to translate and run x10 programs. The 'java' and 'javac' command shall be found at $JAVA_HOME/bin/ (Unix style).
  • set the X10_PLATFORM environment variable according to your platform. Currently this corresponds to the subdirectory under examples/lib where native libraries are kept. For 32-bit Windows on x86 hardware, the string is win32_x86. For AIX on PowerPC it is aix_ppc. The naming convention is <OperatingSystem>"_"<Hardware>, consistent with Eclipses ${system:OS} and ${system:ARCH} variables.
  • run bin/setupX10 in the root directory of the x10 installation. This should install the required JAR files
  • add the bin directory of the x10 installation to your system's search path
See the FAQ page.
Eclipse X10 Development Toolkit (X10DT) setup
X10DT Prerequisites
  • X10DT runs on Eclipse 3.2.2; it might still run on some earlier releases such as 3.1. It will almost certainly not   run on 3.3.
  • X10DT requires that you run Eclipse using a Java 5 VM.
  • You need to have installed the Polyglot and LPG features from their respective update sites. The  URL for Polyglot is: http://www.cs.cornell.edu/Projects/polyglot/eclipseUpdates/. The URL for lpg is:  http://lpg.sourceforge.net/updates/. You can  install these features
Once you've satisfied the above prerequisites, the X10DT can be installed using the Eclipse Update Manager.
To install, if you've never installed the X10DT before:
  1. First, you must install Polyglot, which is used by the X10DT.
  2. From Eclipse, invoke "Help" => "Software Updates" => "Find and Install"
  3. In the dialog that shows up, select "Search for new features to install" and click "Next"
  4. Click on the "New Remote Site" button on the upper-right hand of the dialog.
  5. In the "Name" field type "Polyglot" (this can be anything you want, really). In the "URL" field type "http://www.cs.cornell.edu/Projects/polyglot/eclipseUpdates/" (note the trailing '/' character; it's significant)
  6. Click "Ok"
  7. Click "Finish"
  8. On the "Search Results" page, check the "Polyglot" checkbox, and click "Next"
  9. Click "I accept the terms..." and Click "Next"
  10. Click "Finish"; the dialog will disappear, and the status bar will show progress as the Update Manager queries the update server for all available updates
  11. Click "Install All"
  12. Click "No" when asked whether to restart Eclipse.
Now proceed with installing LPG by repeating steps 1-12 above and substituting the proper URL for LPG (http://lpg.sourceforge.net/updates/) in step 5.

Now proceed with installing the X10DT:
  1. From Eclipse, invoke "Help" => "Software Updates" => "Find and Install"
  2. In the dialog that shows up, select "Search for new features to install" and click "Next"
  3. Click on the "New Remote Site" button on the upper-right hand of the dialog.
  4. In the "Name" field type "X10DT" (this can be anything you want, really). In the "URL" field type "http://x10.sourceforge.net/updates/" (note the trailing '/' character; it's significant)
  5. Click "Ok"
  6. Click "Finish"
  7. On the "Search Results" page, check the "X10DT" checkbox, and click "Next"
  8. Click "I accept the terms..." and Click "Next"
  9. Click "Finish"; the dialog will disappear, and the status bar will show progress as the Update Manager queries the update server for all available updates
  10. Click "Install All"
  11. Click "Yes" when asked whether to restart Eclipse.
You should now be able to see syntax highlighting and an outline view when editing .x10 source files.
To update (if you've installed a previous version of the X10DT):
  1. From Eclipse, invoke "Help" => "Software Updates" => "Find and Install".
  2. In the dialog that shows up, select "Search for new features to install" and click "Next"
  3. Check the items named "X10DT" and "Polyglot" in the update site list on the left.
  4. Click "Finish".
  5. It may take several moments for Eclipse to contact the update sites and determine what updates are available.
  6. If you are already have the latest, you will simply get a dialog saying something like "No updates for the currently installed features found".
  7. If there are any updates beyond what you already have, you should get a dialog showing "X10 Tools", with children named "SAFARI Runtime" and "X10DT", and "Polyglot", with child "polyglot".
  8. Click the checkboxes next to the new versions of the features you want to update and click "Next".
    1. Accept the license agreement and click "Finish"/"Next"
    2. Click "Install All"
    3. Click "Yes" when asked whether to restart Eclipse
Where to go from here:

You may wish to browse through the X10DT cheat sheet to get a quick overview of what you can do. Invoke "Help" => "Cheat Sheets..." and select the "Using the X10DT" from the "X10" cheat sheet category.

Troubleshooting:
Back to top