Skip to main content

The following sections outline the instructions for setting up the development environment needed for success in CSC 326. You need to complete the phases of set up in order to avoid unexpected results in later phases.

Phase 1: Java Setup

Installation

Java Version

INSTALL JAVA 21!

Java 21 is the most recent “long term support” release of Java. Long term support, means that Java 21 will be maintained until the late 2020s/early 2030s [Wikipedia’s Java Version History].

The Java Development Kit (JDK) provides the Java libraries in addition to the javac and java commands for compiling and executing Java programs. The Java Runtime Environment (JRE) provides the Java libraries and the java command for running Java programs.

Java also comes in several editions: standard edition (SE), enterprise edition (EE), and micro edition (ME). EE is used for enterprise level development, typically at large corporations, while ME is used for mobile and embedded development. SE provides enough functionality for most medium to large development activities. If there’s an option, you want to download a Java SE.

The JDK can be downloaded from:

Download the executable (JDK SE from Eclipse Temurin or Oracle or use yum/atp-get for Linux) for your operating system and follow the installation instructions. If you don’t like the provided directory, you can select another directory.

Remember which directory you installed the JDK in.

Setup

Ensure that your Java setup also works on command line tools.

Testing Your Java Setup

After you have installed Java, you should test the javac and java commands in a terminal (command line) window. Most installations will add the new version of Java to your system’s path; this step checks.

  • Windows: Click the Start button and search for Command Prompt.
  • Mac: Open the Terminal application. If the Terminal application is not in your dock, you can open it from Application folder > Utilities folder > Terminal app (and add it to your dock).
  • Linux: Open the Terminal as appropriate for you Linux install.

In the terminal window, run the commands javac -version and java -version. Check that the most recently installed version of Java prints. An example of what the commands and output might look like are below. Your output should match on the major version (e.g., 21), but may not match on the minor version (e.g., 0), and release (e.g., 12) since you are likely downloading your version of Java 21 after this install tutorial was published.

Your output may look at little different depending on where you downloaed Java from. The important thing is that the major version (the first number) is 21. The output below is for Eclipse Temurin.

$ javac -version
javac 21.0.12

$ java -version
openjdk 21.0.12 2026-07-21 LTS
OpenJDK Runtime Environment Temurin-21.0.12+8 (build 21.0.12+8-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.12+8 (build 21.0.12+8-LTS, mixed mode, sharing)

If you installed Oracle Java, your output will look similar to what’s listed below (remember a new release may mean a different release number).

$ javac -version
javac 21.0.7

$ java -version
java version "21.0.7" 2025-04-15 LTS
Java(TM) SE Runtime Environment (build 21.0.7+8-LTS-245)
Java HotSpot(TM) 64-Bit Server VM (build 21.0.7+8-LTS-245, mixed mode, sharing)

If the top level Java version is incorrect (i.e., not Java 21), then follow the steps for the Java Command Line Setup.

Java Command Line Setup

The instructions for updating your system’s path variables to support compilation and execution of Java from the command line vary by operating system as described below. You only need to do this if you see the incorrect version of Java as described above.

Windows

Open your Control Panel, and select System.

  • On Windows 11, click the Start button, search for System and select the link to Edit the system environment variables. Select the Environment Variables button.
  • On Windows Vista, select the Advanced System Settings task. In the resulting window, select the Environment Variables button.
  • On Windows XP, select the Advanced tab.

On the Environment Variables window under System variables section, select the Path variable and select Edit.

  • If you are updating to a new version of Java JDK, your Path probably already includes an entry for a bin directory for a previous JDK version. Update the existing entry to display the location of the bin directory of your new JDK version.
  • If you do not already have a Java JDK installed, your Path does not already contain an entry for the bin directory of a JDK installation.
    • For Windows 8 and earlier, move your cursor to the end of the text field for entering the value. Add a semi-colon (;) and add the full path to the bin directory of your Java installation. Select OK.
    • For Windows 10 and 11, add a row to the provided table. Select OK.

Select the CLASSPATH variable and select Edit. Move your cursor to the end of the text field for entering the value. Add a semi-colon (;) and put a period (.). Select OK. The period represents your current working directory, and means that all files in your current working directory will be on the classpath when compiling and running Java applications. If you do not have a CLASSPATH variable, select the New button, and create one. The name of the variable should be CLASSPATH, in all capital letters.

Test that the versions are correct in the terminal. You will need to open a new terminal to test the version. Any changes made to the path are not updated in any open terminals.

Mac

If you have an older version of Java on your Mac, you should download newer version JDK from Oracle rather than using the Java Control Panel. The Java Control Panel will not update the Java version for the terminal.

Test that the versions are correct in the terminal. You will need to open a new terminal to test the version. Any changes made to the path are not updated in any open terminals.

Phase 2: IntelliJ IDEA Setup

We are using IntelliJ IDEA for CSC 326 this semester. We recommend that you Apply for a Student Pack, which includes IntelliJ IDEA and other tools that you may find useful.

Download and install IntelliJ IDEA Ultimate.

Phase 3: MySQL

The applications developed for CSC 326 will store data in a database, which is an application optimized to store and retrieve information. MySQL Community Edition is an open-source database provided by Oracle.

3.1 Install MySQL

During MySQL installation, you will be requested to select a password for the root user of the database. Choose a strong password and remember what the password is! You’ll need it later to configure the systems you’re developing!

Windows

  1. Go to the MySQL installer site
  2. Select the 32-bit msi file. The label is confusing since 32-bit installer can be used to install the 32-bit and 64-bit versions. The smaller MSI file requires an internet connection during the entire installation. If you will be performing the install in a setting where the internet connection is limited or sporadic, download the larger file.
  3. Note that you do not need to obtain a username for download. On the next screen There’s a link to “No thanks, just start my download.” underneath the larger buttons
  4. Double-click the downloaded installer and click through the UAC warnings and accept any manditory upgrades, if prompted
  5. Under “Choosing a Setup Type” select “Custom” and click “Next”
  6. Under “Available Products” you will select both a server and the Workbench. a. Select “MySQL Servers” > “MySQL Server” > “MySQL Server 8.0” > MySQL Server 8.0.X - X64” (where X is the largest version number). Click the green arrow to move to the right box. b. Select “Applications” > “MySQL Workbench” > “MySQL Workbench 8.0” > MySQL Workbench 8.0.X - X64” (where X is the largest version number). Click the green arrow to move to the right box. c. Click “Next”.
  7. [Optional] On the “Download” screen click “Execute”. Once the download is complete, click “Next”.
  8. On the “Installation” screen click “Execute” If the products do not successfully download and execute on the first attempt, you may need to retry. If the installation fails with the error “This application requires Visual Studio 2013 Redistributable. Please install the Redistributable then run this installer again.”, install the 32-bit version of the Visual C++ Redistributable (regardless if your operating system is 32-bit or 64-bit). If the installation does not progress after several consecutive attempts, please contact the teaching staff for assistance. Click “Next” when complete.
  9. On the Product Configuration screen, click “Next”. This will start the configuration process.
  10. On the “Type and Networking” screen, you may leave the default values. Click “Next”.
  11. On the “Authentication” screen, select “Use Strong Password Encryption for Authentication” if it is not already selected.
  12. On the “Accounts and Roles” screen, enter a password you will remember. We will remove it later. Click “Next”.
  13. On the “Windows Service” screen you may leave the default values. Click “Next”
  14. On the “Server File Permissions” screen you may leave the default values. Click “Next”
  15. On the “Apply Server Configuration” screen, click “Execute”. When all steps on the “Apply Server Configuration” screen have successfully executed, click “Finish. You will be returned to the “Product Configuration” screen.
  16. On the “Product Configuration” screen, click “Next”
  17. On the “Installation Complete” screen, click “Finish”

Mac

  1. Go to the MySQL installer site
  2. From the list, select the OS X DMG Archive download
  3. On the next screen, click the link to “No thanks, just start my download.” in smaller print underneath the two larger buttons (you do not have to sign in)
  4. Go to the MySQL Workbench download site.
  5. From the list, select the OS X DMG Archive download
  6. Once all DMG files have been downloaded, double-click the MySQL installer and follow the wizard. Make sure to write down the root password provided during the installation process.
  7. Double-click and mount the MySQL Workbench DMG file. Drag the “MySQLWorkbench.app” to the “Applications” folder.

Linux

  1. Follow the instructions for installing MySQL and the add-ons from Oracle.

3.2 Configure MySQL

Update root Password

During the MySQL install, you either specified or were provided with either a temporary or non-temporary password. There are separate instruction sets for temporary passwords and non-temporary passwords. You only need to update the root password using ONE of the instruction sets below. Instruction Set 1 pertains to temporary passwords, Instruction Set 2 pertains to non-temporary passwords. If you are not sure whether your password is a temporary password, review the instructions for the temporary password, paying attention to the final note.

Instruction Set 1: Update Temporary Password

  1. In Finder, go to Applications and click on MySQLWorkbench
  2. Click on the Local Instance 3306. A popup will display requesting your username (root) and the password (provided during the install). Note: If you do NOT see the Local Instance 3306, try restarting MySQL. Instructions for restarting MySQL are in section 3.3
  3. Once you submit the initial password you will be prompted to enter a new password. Enter a new password and submit.
  4. Note: If you are NOT prompted to change your password immediately, change your password using the steps below for All Other Password Updates in the next instruction set - Update Non-Temporary Password starting at step 2

Instruction Set 2: Update Non-Temporary Password

  1. Go to MySQL Workbench and connect to your local database using the password you previously specified.
  2. Under MANAGEMENT, select Users and Privileges
  3. Select root from host localhost and set the passwords to blank. Click Apply. (The workbench may fill in * characters in the password fields, but look for the “No password is set for this account.” notice at the bottom of the screen.”
  4. Select root (there should only be one root user, which will either be at host 127.0.0.1 or localhost) and set the passwords. Click Apply.

3.3 Starting MySQL

Windows

  1. Click Start -> Run -> type services.msc and click OK or type services.msc into the search bar in the Start Menu and hit Enter.
  2. From the list, find MySQL or MySQL80 and click the the Start link
  3. The default installation will set the startup type for the MySQL service to automatic. If you would prefer to have MySQL require a manual start (recommended to minimize open ports on your computer), then right click on the service, select “Properties” and set the “Startup type” to “Manual”.

Mac

  1. Open the System Preferences and click on MySQL at the bottom of the left sidebar.
  2. A popup will display with the status of the service. If the service is stopped, click “Start MySQL Server” to start MySQL.

Note: If MySQL is not displayed in your System Preferences AND Local Instance 3306 is not displayed in MySQL Workbench, quit the application and manually start the server in your terminal:

sudo /usr/local/mysql/support-files/mysql.server start

A “SUCCESS” message should display, and Local Instance 3306 should appear in your MySQL Workbench

Linux

Run the following from a bash shell:

shell> sudo /usr/local/mysql/bin/mysqld_safe
(Enter your password, if necessary)
(Press Control-Z)
shell> bg
(Press Control-D or enter "exit" to exit the shell)

Phase 4: Install Postman

Postman is an application that we can use to test REST APIs. You do NOT need to create an account to use Postman. We can accomplish everything we need with the free version.

  1. Download Postman app for your OS
  2. Install Postman following the installation instructions.

Note: You do not need to set up an account for Postman. You can if you would like.

Phase 5: Install NodeJS

  1. Download the NodeJS appropriate for your OS and architecture. For Windows, we recommend downloading and installing the prebuilt NodeJS MSI.
  2. Install NodeJS. The default options should be fine. You’re welcome to install some of the optional things (e.g., Chocolatey as a package manager tool for Windows).

Phase 6 [Optional]: Install VS Code

VS Code is another IDE that you may be interested in exploring. There are some nice features for front end development. This is optional; you can develop the full application in IntelliJ.

  1. Download VS Code for your OS
  2. Install following the installation instructions. The default options are fine.