From Kurator
Jump to: navigation, search

Microsoft Windows Command Line Setup


To open a Windows command window, left click on the Start button in the lower left corner of the screen. A search box with text "Search programs and files" should appear at the bottom of a popup menu. In it, type the text "CMD" (without quotes) and left click on the item labeled CMD in the resulting popup. A command window should open looking somewhat like shown at the right. In the example, "demo" is the Windows user's login name, and C:\Users\demo is referred to as demo's home directory. In what follows, you'll need to substitute your login name for "demo." In what follows "directory" and "folder" mean the same thing; command line documentation tends to use the former, Microsoft GUI documentation the latter.

Depending on how much of User_Documentation you go through, you will download 3-7 or more files and normally they all should be in your home directory. Alas, when you download files, they go by default into a folder named Downloads that is a subfolder of your home directory. Whenever you download files needed for the Kurator examples, your easiest path forward is to use the Windows file explorer (not the Internet Explorer) to copy or move the downloads into your home directory [1]

Running Java

Identifying installed locations of Java through the control panel on Windows 7

You'll need to find where Java is installed on your system. This will probably be in C:\Program Files\Java\jre{version}. In the command window type dir "C:\Program Files\Java\" to find what version you have installed. You can also look in the Control Panel, find Java, click on it to launch the Java Control Panel, then click on the java tab and the view button to find the path to an installed Java versions.

To run java from the command line without specifying this full path each time, you can add the java bin directory to your path:

set path=%path%;C:\Program Files\Java\jre1.8.0_45\bin

Once you've done this you can run java -version or java -jar {jarfile.jar} without having to type ..."C:\Program Files\Java\jre1.8.0_45\bin\java" -version.

Macintosh Command Line Setup




  1. If you are Windows savvy, you might make a subdirectory C:\Users\demo\kurator and download everything there. Then in the cmd window do "cd kurator". and follow the workflow samples in that directory. But keep in mind that Windows generally remembers your previous work, and it's likely that all your subsequent downloads will go to this purpose-built directory, accumulating a lot of clutter. You need to force downloads back to the default Downloads directory by an explicit "Save As" when you first download something unrelated to the Kurator exercises