Running via Sublime Editor

To run JythonMusic programs with the Sublime editor, follow these steps:

1. Download Sublime here.

2. In Sublime, go to Tools > Build System > New Build System, and paste the following:

Mac:
{
"cmd": ["sh", "jython.sh", "$file"],

"working_dir": "${project_path:${folder}}",

"selector": "source.python", 
}
Windows:
{
"cmd": ["jython.bat", "$file"],

"working_dir": "${project_path:${folder}}",

"selector": "source.python", 
}

3. Save it under a meaningful name (e.g., JythonMusic). Important: Make sure you preserve the .sublime-build file name extension when saving it (otherwise it will not show up in the Build System menu below).

4. Select the new build system from Tools > Build System.

5. Cmd + B (Mac) / Ctrl + B (Windows) to run the program.

  • You only need to select the build system once, after that you can just run the program with the shortcut.

Note: Make sure your program is saved in the same directory as the jython.sh/jython.bat files!!