CS61B Quick Environment Setup Tutorial

Last updated on October 9, 2025 pm

This article is currently an experimental machine translation and may contain errors. If anything is unclear, please refer to original Chinese version. I am continuously working to improve the translation.

Course Website

Main | CS 61B Spring 2021

Course Version

Spring 21, because it has a public Gradescope, which is an online assignment grading platform that makes it easy to evaluate code.

Environment Setup

This mainly references

【re: Starting from Zero: A Self-Taught CS Journey】CS61B Step-by-Step Environment Setup Tutorial

It is divided into two parts: Calendar->Lab->Setting Up Your Computer and Calendar->Lab->IntelliJ Setup

Here we assume the reader already has some basics, including but not limited to:

  • Using VSCode
  • Basic use of Git
  • Having a GitHub account
  • Basic use of the command line

In the instructions below, only the required steps are listed

Setting Up Your Computer

E. Install IntelliJ

Download IntelliJ IDEA Community from the JetBrains official website

You can also apply for student verification to use the Ultimate edition; there are many tutorials for this on Zhihu and Bilibili, so it won't be covered here.

Just follow the original webpage here

IntelliJ Setup

How to Get the Assignments

First, create a new repository on GitHub, make sure to set it to private

Create a new folder on your computer, for example named cs61b. You can write a readme first, then perform the following steps in order inside this folder:

git init
git remote add skeleton https://github.com/Berkeley-CS61B/skeleton-sp21.git
git pull skeleton master --allow-unrelated-histories
git branch -M main
git remote add origin 你自己的仓库地址或者是ssh
git commit -m "first commit"
git push -u origin main

Now you have all the assignment files

You must make sure that the first-level folder of your repository directly contains the various lab and proj folders; the skeleton must not be inside a second-level folder of the repository

Installing the JDK in IDEA

  1. Open IDEA
  2. The three bars in the top-right corner
  3. File
  4. Project Structure
  5. In the SDK section, click it
  6. Click Download JDK, then just follow the steps

How to Do the Assignments

Just follow the Calendar on the website. After finishing each assignment, in order to have it graded by Gradescope, you need to push to your GitHub repository.

How to Use GradeScope

Go to https://www.gradescope.com/

Register an account; in the sign-up form, enter MB7ZPY for the 6-digit invitation code, and UC Berkeley for the school. Fill in the rest of the information yourself.

After entering, select the CS61B course, click submit, then choose the GitHub method. This requires linking your account; just follow the instructions.

Once linked, select the corresponding repository and branch (generally one branch, main, is enough), and submit. The system will grade it.


CS61B Quick Environment Setup Tutorial
https://blog.wendain.ing/en/posts/cs61b-fast-setup/
Author
wendaining
Posted on
October 9, 2025
Updated on
October 9, 2025
Licensed under