Creating your first X3 project

In this section, you will create a new X3 project.

Creating the project

  1. Inside Eclipse select the menu item File > New >

    Project.... to open the New Project wizard.

  2. Select X3 Project then click Next to start the New Project wizard:

    New Project wizard

    On this page select X3 project Then click Next.

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

    New X3 Project wizard

  4. Enter project specific dependencies and press Next:

    New X3 Project dependencies

  5. Enter the host uri of the server and press the TAB key:

    For X3 update 8 and greater use the http(s)://web-server:port form. You can copy/paste a full url from your web browser, only the relevant part will be kept.

    For previous version use the service connection by using the server:port form.

    New X3 Project host

    You will be prompted for the login and password. Enter the appropriate values depending on the type of connection used:

    1. login / password used for your usual web browser connection if you use HTTP
    2. x3login / password of the underlying X3 user for service connection

    New X3 Project credentials

  6. Select the dataset and the culture then press Finish:

    New X3 Project remaining

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

    New X3 Project Script Explorer

Creating and running a script

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

    New X3 File

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

    New X3 File script

    ...and run it using the Compile and Run command button [ Run current file ]


  4. The output of the script can now be seen in the message-box displayed.

    New Safe X3 Project wizard

That's it!