Warning: Outdated Content
This MP is from a previous version of CS 125. Click here to access the latest version.
CS 125 teaches the Java programming language. This guide will help you install the software that you need to develop Java applications.
Java. is a powerful and versatile programming language. You can build all kinds of things with it, from web servers to command line utilities to Android apps.
If you have a laptop or desktop that you plan to use for CS 125, you should install Java on it. Follow the instructions below that are appropriate for your machine. But keep in mind that installing new software can be challenging, so don’t be discouraged if you get stuck. We’re here to help! Come to office hours or post on the forum in the Installing Java category.
For Fall 2018 we are using Java 10.0.2, the latest available as of available as of August 2018. Java 9 and 10 have some cool new features that we may discuss in class compared with Java 8 which you might be more familiar with if you have used Java before. Please install this version of Java and continue using it throughout the semester. Minor upgrades will probably not be a problem, and we do not anticipate another major release of Java before the end of the semester.
1.2. Install on Mac and Windows
Download the appropriate software package for your machine from this web page. Run the installer and it will guide you through the rest of the process.
1.3. Install on Linux
If you are installing on Ubuntu Linux you may have more luck by using a packaged Java installer. This article documents that process.
1.4. Setting JAVA_HOME
You may need to set an environment variable to ensure that Gradle can find the correct version of Java. Try this if your local autograder refuses to run. Here are some instructions for Windows, and here is a tutorial for Mac. The screencast above shows how to complete the process on Windows machines. Note that the screencast shows how to do this for Java 9, so you will need to set the path correctly to point to the Java 10 version that you installed above.