This page has links to useful resources for the course.

Java and IntelliJ

All of the software we are using is open source (free). I encourage you to download it to install on your own computer.

Initial Setup

Once you have installed the Java JDK and IntelliJ, start IntelliJ which should open a welcome window

IntelliJ Welcome Window

Select New Project which will open the new project dialog

IntelliJ New Project Window

Select Empty Project from the list on the left and click Next. Change the Project name: to CS201-Fall2021 and select the Project location: to be the location where you want to keep all your CS201 projects, e.g. C:/Documents or ~/Documents/CS201, and click Finish.

IntelliJ Directory Window

Simply click Ok in the Project Structure dialog. This will create the root directory for all our CS201 projects.

Setting up a Terminal application

All labs, assignments, and exams will be submitted to the Marmoset submission server through the IntelliJ IDEA Terminal. This may require some additional installations depending on your operating system.

Windows 10

We will be using Cygwin as our terminal program.

Make sure you have first installed IntelliJ and set up your CS201-Fall2021 project as described above. If you already installed Cygwin for CS101, skip to step 2.

  1. Install Cygwin and the various packages as described in the CS101 Cygwin installation guide.

  2. Open IntelliJ and the CS201-Fall2021 project, then select File -> Settings from the menubar.

    IntelliJ Select Settings Window

  3. In the Settings dialog, select the Tools->Terminal option, then replace what is in the Shell path: setting with

     "C:\cygwin64\bin\sh" -lic 'cd "${OLDPWD-.}"; bash'
     

    IntelliJ Tools Settings Window

  4. If everything is configured correctly, when you select the Terminal tab in the lower left corner of IntelliJ, it should open up a terminal pane that displays a Cygwin prompt in the CS201-Fall2021 project directory.

    IntelliJ Cygwin Window

Mac OSX

  1. From the Mac App store, download and install XCode. Run the application which will complete the installation process. Note: If you have a new M1-based Mac, you will also need to install Rosetta as part of installing XCode.

  2. Open the Terminal application from the launchpad (it may be in the Other folder) and install the command line tools using

     $ sudo xcode-select --install
    

Submitting to Marmoset

All labs, assignments, and exams will be submitted to the Marmoset submission server through the IntelliJ IDEA Terminal. To open the Terminal, at the bottom of the IntelliJ window click the Terminal menu item which should open the Terminal in the lower IDE pane. Navigate into the proper folder and type

$ make submit

then enter your Marmoset username and password and verify that the submission was successful.

Terminal commands

A few useful terminal commands are