|
| |
Downloads
|
|
|
| |
Make
sure to review the X10 license.
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.
|
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.
- 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.
|
- First, you must install Polyglot, which
is used by the X10DT.
- From Eclipse, invoke "Help" =>
"Software Updates" => "Find and Install"
- In
the dialog that shows up, select "Search for new features to
install" and click "Next"
- Click
on the "New Remote Site" button on the upper-right hand of the
dialog.
- 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)
- Click
"Ok"
- Click "Finish"
- On the "Search Results" page, check the
"Polyglot" checkbox, and click "Next"
- Click "I accept the terms..." and Click
"Next"
- 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
- Click "Install All"
- 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:
- From Eclipse, invoke "Help" =>
"Software Updates" => "Find and Install"
- In
the dialog that shows up, select "Search for new features to
install" and click "Next"
- Click
on the "New Remote Site" button on the upper-right hand of the
dialog.
- 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)
- Click
"Ok"
- Click "Finish"
- On the "Search Results" page, check the
"X10DT" checkbox, and click "Next"
- Click "I accept the terms..." and Click
"Next"
- 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
- Click "Install All"
- 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. |
- From Eclipse, invoke "Help" =>
"Software Updates" => "Find and Install".
- In
the dialog that shows up, select "Search for new features to
install" and click "Next"
- Check
the items named "X10DT" and "Polyglot" in the update site list on
the left.
- Click
"Finish".
- It may take several moments for Eclipse
to contact the update sites and determine what updates are available.
- If you are already have the latest, you
will simply get a dialog saying something like "No updates for the
currently installed features found".
- 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".
- Click the checkboxes next to the new
versions of the features you want to update and click "Next".
- Accept the license agreement and
click "Finish"/"Next"
- Click "Install All"
- Click "Yes" when asked whether to
restart Eclipse
|
|
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.
|
|
|
 |
|
|
|