How to run the reference example in the Eclipse development environment:
- Download and install the Eclipse from here:
http://www.eclipse.org/
- Eclipse requires Java JRE 1.3 or higher. Download from here if
you don't have it already:
http://java.sun.com/j2se/1.4.2/download.html
- Download the example code and extract
somewhere, say in:
C:\network\project_example\
- Start the Eclipse. It will ask you to enter the workspace
location. Beware not to select your workspace in any parent directory
(folder) of the folder where you put the example code, say,
C:\network\. You could create a new directory parall
to the directory where the example code is located,
e.g., C:\network\my_workspace
- Import the reference example into the workspace.
In the
File menu, select Import... , and then select
Existing Project into Workspace. Here, select the root
directory to search for the project. For instance, following the
above examples, here you could select C:\netwok.
The
existing project, test, will be shown in the
Projects box.
Press the Finish button and all the
Java files will be loaded.
- Run the example.
In the
Run menu, select Run... .
Under the tab ¦ (x) = Arguments ¦, enter the number
of iterations (transmission rounds) to run the example, say,
100.
Finally, hit the Run button, and the console will show the
program reporting results.
Courtesy of Beizhong Chen
Last updated: Tue Sep 20 17:05:01 EDT 2005