Eclipse Tutorial

Installing Java 13 and Eclipse (2019_12) (USB Mac)

For Macs

You can install Eclipse and Java on a USB drive, and run Eclipse from a Mac with a USB port. Keep in mind that it can be slow to access Eclipse following this approach. You need around 1GB just for Eclipse and Java, therefore a USB drive of at least 2GB is recommended.

Make sure you format the USB drive for Mac rather than FAT32 or NTFS otherwise an error could occur when launching Eclipse. Use "Get Info" to find information about the drive.

  1. Copy the JDK by copying a folder similar to:

    /Library/Java/JavaVirtualMachines/adoptopenjdk-13.jdk/Contents/Home

    to the USB drive. To locate the above folder, you might need to update the Finder preferences. Under Finder preferences select the General tab and check the Hard disks option under "Show these items on the desktop:". You should find the Library folder mentioned above by clicking on Macintosh HD in a Finder window.
  2. Copy the Eclipse application (found under the Applications folder) to the USB drive.
  3. Define the workspace on the USB drive as follows:

    1. Launch Eclipse.
    2. In the “Select a directory as workspace” dialog, use the “Browse...” option to select the USB drive.
    3. Complete the workspace name name and click on the Launch button. You may see an error similar to "Task List Indexed"; ignore it.
  4. In Eclipse define the JRE present on the drive as the one to use for projects as follows:

    Select Eclipse → Preferences → Java → Installed JREs → Add... → Standard VM → Next> → Directory..., and select the HOME folder associated with the JDK. Make sure you select this JDK as the default in the "Installed JREs" section (where you see "Name, Location"). To select it as default, check the box next to the JRE and click on the Apply and Close button. When you create a Java Project, make sure you select the "Use default JRE ..." option so the USB JRE is used. Once a project has been created you can also change the particular JRE to use. Just right-click on the "JRE System Library", select Properties → Alternate JRE: → Installed JREs", and the appropriate JRE.

  5. Add to Eclipse the CS Course Management and CVS plugins if they are not already part of the Eclipse distribution you copied above.
  6. You may want to check the Miscellaneous section at this point.
Web Accessibility