Creating your first Tcl/XOTcl project

In this section, you will create a new Tcl project and run a "Hello world!" script.

Creating the project

  1. Inside Eclipse select the menu item File > New > Project.... to open the New Project wizard.
  2. Select Tcl Project then click Next to start the New Project wizard:

    New Project wizard

    On this page select Tcl project Then click Next.

  3. Enter a project name in the edit box and press Finish:

    New Tcl Project wizard

    The project is now created! You may see it in the Script explorer view:

    New Tcl Project wizard

Creating and running a script

  1. To create a new script select menu item File > New > Tcl file.
  2. Enter a file name and press Finish:

    New Tcl Project wizard

  3. Now let's type a simple script in the editor...

    New Tcl Project wizard

    ...and run it using Run command button:

    New Tcl Project wizard

  4. The output of the script can now be seen in the Console view:

    New Tcl Project wizard

That's it!