CSC403: Tools

Contents [0/5]

Tools [1/5]
Install Graphviz [2/5]
Install IntelliJ IDEA Community Edition. [3/5]
Install the code for this class [4/5]
Set up your IntelliJ IDEA Project [5/5]

(Click here for one slide per page)


Tools [1/5]

Follow these steps, in order. Try to follow the instructions exactly to minimize any installation issues.

If you run into problems, please email me or send me a message on Discord. You can also come to my office hours.

If you spend more than 30 minutes trying to figure out a problem with any of these steps, don't waste your time. I will be happy to help.

Install Graphviz [2/5]

This step is necessary to draw the pictures, which is useful for debugging. Install the latest version.

On Windows or Linux, download and install Graphviz from here: Graphviz
graphviz-windows

If you run into problems, have a look at New simplified installation procedure on Windows.

On a mac, you need to install Homebrew
install-graphviz-mac

Once you have homebrew, just enter the following commands on the Terminal:

brew update
brew install graphviz

Install IntelliJ IDEA Community Edition. [3/5]

Please install IntelliJ IDEA Community Edition. It has all the features we need for this class, and there's no need to buy a license to use IntelliJ IDEA Ultimate.

NB: DePaul students apparently have access to the Ultimate version, so you can install that if you want. I don't use it.

Use the Standalone installation instructions for your platform:

download-idea

If you already have IntelliJ IDEA on your machine, you should update it by going through the menus. You can access the menus from the Hamburger menu at the top left.

Install the code for this class [4/5]

Set up your IntelliJ IDEA Project [5/5]

Start up IntelliJ IDEA. Click the Open tile.

open-project-1

Navigate to the algs4 directory where you unzipped the course code archive and Click OK. The directory you select should be the one that contains the src directory and the pom.xml file.

open-project-2

When the project opens, navigate to src/main/java/algs11 in the Project pane on the left. Open up Hello. There should be a message just under the filename in the center of the editing pane saying the Project SDK is not defined. Click Setup SDK on the right.

setup-1

Click Download JDK.

setup-2

Select JDK Version 21 and Vendor Amazon Coretto 21.0.6. Click Download. The JDK will install. Note: The picture is slightly old; choose version 21.0.6.

setup-3

Right-click the Hello class in the main editing window. Click Run Hello.main() in the context menu. You should see the Hello, world! output in the console window on the lower pane. If you get this far, you have successfully setup your programming environment.

run

One final step: In IntelliJ IDEA go to the Hamburger menu on the top left and choose File -> Settings (on Windows/Linux) or IntelliJ IDEA -> Settings (on a Mac) and change your tab settings as follows. This will help with code formatting when I look at your code. Pro tip: Most programmers I hang out with can't stand tabs! It's a pretty standard practice to use the tab key and have your editor replace tabs with spaces.

idea-tabs

If you have problems, send a message in the #general channel in the Discord server. Your classmates or I will help you.