Running Programs via Terminal Window

The Terminal Window is a lower-level way to run jythonMusic programs (Windows/Mac/Linux).

Use your favorite editor to edit your program.  Then,

Windows Instructions:

  1. Click on the Windows Start button.
  2. Type “cmd” (without the quotes) and hit Return.  This will open an MS-DOS window, as shown below.
  3. Change directory to your jythonMusic folder (e.g., type “cd DesktopjythonMusic” – or wherever your jythonMusic folder is stored).
  4. Type “jython -i filename.py“, where “filename.py” is the name of one of your programs. This will run the program and leave you inside the jython interpreter.
  5. To exit the jython interpreter, type “exit()“.
Using the CMD window (Windows 7) to run a program.

Using the CMD window (Windows 7) to run a program.

 

Mac Instructions:

  1. Click on the Spotlight search icon (top right).
  2. Type “Terminal” (without the quotes) and hit Return. This will open a Terminal window, as shown below.
  3. Change directory to your jythonMusic folder (e.g., type “cd Desktop/jythonMusic” – or wherever your jythonMusic folder is stored).
  4. Type “sh jython.sh -i filename.py“, where “filename.py” is the name of one of your programs. This will run the program and leave you inside the jython interpreter.
  5. To exit the jython interpreter, type “exit()“.
Using the Terminal window (Mac OSX) to run a program.

Using the Terminal window (Mac OSX) to run a program.

 

Linux Instructions:

  1. Open a shell window and follow the Mac steps 3, 4, and 5 above.