CPSC 327 Data Structures and Algorithms Spring 2025

CPSC 327 Software Setup

Several assignments will involve programming in Java. The tools that you need (Java 17, Eclipse 2024-06) are available on the lab computers in Rosenberg 009 (reboot them to Linux) and Lansing 310 and via the Linux virtual desktop, or you can install them on your own computer.

It is recommended that you use the Linux VDI to access Linux remotely as that simplifies having to copy files across filesystems and means that your files are included in the regular system backups.

If you want to set up your own computer for programming in this course, you will need several things:

You can download Eclipse 2024-06 here — select the "Eclipse IDE for Java Developers" version (not the "Installer") partway down the page and choose the appropriate version for your computer (Mac, Windows, or Linux; choose the x86_64 version unless you have a newer M1 Apple device). While it is recommended that you use this version of Eclipse, things will likely still work fine with a slightly older or newer version.

Eclipse 2022-06 includes Java 17, so you no longer need to download that separately.

You will also need a way to transfer files between your computer and the department filesystem. Using a file transfer program is more convenient than emailing files to yourself, and doesn't require you to remember to transfer the files before leaving the lab. FileZilla is free and runs on all platforms. (You only need to download the client, not the server.) Be sure to check out the documentation (especially the usage instructions). Use csmath-terminal.hws.edu for the host and port 22 when establishing a connection.

Next, configure Eclipse to set certain formatting and coding conventions:

Note that Eclipse projects store some environment-specific configuration information and Eclipse does some management of the workspace directory on its own, so if you are working on both the CS computers and your own, your best bet for transferring projects is to copy the project folder somewhere other than into your workspace, create a new project within Eclipse on the current computer (if you don't already have one for the program you are working on), and then import the source files from the copied folder to the new project via Eclipse. It's a bit awkward but it gets the job done.

Stop by office hours if you need help with any aspect of getting your computer set up or sorting out the workflow of how you'd actually use all these pieces once they are installed and configured. (Bring your laptop.)