While using the software for this course, your computer’s keyboard language must be set to English. If needed, please follow these instructions to change your keyboard language.
Preliminary notes:
If you already have a version VS Code on your current laptop and you have used it to write Java code, you don’t need to reinstall it. Instead, you should return to Lab 0 and complete the final task.
If you run into any issues with the following method of installing VS Code, see below for an alternative method.
You are also welcome to use a different IDE for Java if you prefer.
Here are the steps:
If you already have a version of VS Code on your laptop but you have not yet used it for Java, begin by uninstalling your current installation of VS Code along with any versions of Java that may be on your machine.
Click on the following link to download the installer: https://aka.ms/vscode-java-installer-mac
If you receive an error message that says you are downloading from an unsafe or unknown site, you’ll need to change your security preferences, at least temporarily, by taking the steps outlined in the Lowering security settings section below.
Go to your Downloads folder and find the downloaded file.
Its name should begin with JavaCodingPack and end with .zip
.
Double-click on the .zip
file, which should produce a file
named Coding Pack for Java.
Double-click on Coding Pack for Java to start the installer. If prompted to do so, click Run.
You should be able to use all of the default settings that the installer gives you. Wait for it to complete the installation and then click Finish. You can now delete the installer program.
To launch the program, use the Spotlight tool to search for and and run Visual Studio Code.
If you already have a version of VS Code on your laptop but you have not yet used it for Java, begin by uninstalling your current installation of VS Code along with any versions of Java that may be on your machine.
Follow steps similar to the ones given above to download and install just VSCode (without Java support): https://code.visualstudio.com/sha/download?build=stable&os=darwin-universal
Then, once VSCode is fully installed, install the Extension Pack for Java by clicking here.
Once the Extension Pack is installed, exit VS Code and restart it before you attempt to use it for coding in Java.
OS X may stop you from downloading or running applications downloaded from the Web (as opposed to through the Mac App Store) unless you lower your security settings. Here’s how to adjust them so that you may install and run applications from anywhere:
Last updated on September 15, 2024.