
This location will likely be different on your own computer.Īn Eclipse "workspace" is a folder (or directory) that contains projects and settings. Notice that /cs/home/stu/ username is the location of your home directory on the CS lab machines. Change the name to CS159 (with no space between CS and 159), as shown in Figure 6. The default location is a directory named eclipse-workspace. When you run Eclipse, it will prompt you to select a workspace location. Figure 4 Figure 5 Step 3: Create Workspace The installation might take several minutes.

When asked, select the "Eclipse IDE for Java Developers" package (Figure 5). It's free and open source, and it's widely used by professionals around the world.ĭownload and run the installer for your operating system (Figure 4).

Skip this step if you're on a CS lab machine Eclipse is already installed.Įclipse is an integrated development environment (IDE) for building applications based on Java, C/C++, Python, and many other languages. Figure 1 Figure 2 Figure 3 Step 2: Install Eclipse Your version might be slightly newer than the images below. To verify the installation, open a Terminal and type java -version (Figure 3). Run the installer, and follow the instructions (Figure 2). Visit and download Temurin 17 for your operating system (Figure 1). Simply run the command: sudo apt install openjdk-17-jdk openjdk-17-source Windows and macOS: Either version should work for this class. Note: Java SE 17 is the current Long-Term Support (LTS) release, but Java SE 16 is the version installed on the CS lab machines. The JDK we recommend is OpenJDK, an open source implementation of Java SE (Standard Edition). In order to compile Java programs on your computer, you will first need to install the Java Development Kit (JDK). Skip this step if you're on a CS lab machine Java is already installed.

This page shows you how to install and configure Eclipse on your own computer. Throughout the course, we will use Eclipse as our primary development environment.
