Creating Jython script files

You can create a new Jython script file, which you can then edit in the Jython editor.
The following instructions were written for the Resource perspective, but they will also work in any other perspectives.

To create a Jython script file, follow these instructions:

  1. If necessary, create a project to contain the Jython script file. You can define a Jython project to contain the Jython script file. See Creating a Jython Project.
  2. In the menu bar, select File > New > Other . The New wizard opens.
  3. Expand the Jython folder and select Jython Script File. Click Next.
  4. In the Parent folder field, specify the path of an existing project folder in the current workspace where you want to store the new Jython script file. For example, if you specify the path as /myProject, the Jython script file is created in the Navigator view under the project called: myProject. You must specify a project folder that already exists in the workspace.
  5. In the File name field, type a name for your new Jython script file. The file extension must be .py or .jy.
  6. Click Finish to create the Jython script file.
The Jython file appears in the Navigator view and, by default, automatically opens in the Jython editor.
Related tasks
Creating Jython Projects

Feedback