COMP2247 - Algorithms and Data Structures

Syllabus Software Installation Assignments Tests
Lectures and Labs
Review COMP2243 Materials ArrayList OOP - Aggregation OOP - Inheritance OOP - Polymorphism OOP - Abstract Method/Class Interface Exception Handling Recursion Sorting and Searching Algorithms Algorithm Analysis Generics Java Collections Linked Lists Stacks Queues Binary Search Trees Heaps and Priority Queues



Software Installation

In order to write and run Java programs, you need to set up the development environment with your computer.

There are two options, desktop-based environment or web-based environment.

For this course, we use the Desktop-Based Environment to write and run Java programs.

So you need to install software on your computer.


1. Download and Install JDK

JDK stands for Java Development Kit. It is developed and freely distributed by Oracle company.

Use google to search for "jdk", then go to Java Downloads | Oracle

Please download the installer version, not the compressed archive.

The installer will install JDK and set PATH and CLASSPATH accordingly.

However, for the compressed archive, you may need to manually set PATH and CLASSPATH.

After downloading the JDK, you can install it by following the on-screen instructions.


2. Download and Install jGrasp

jGrasp is a lightweight IDE (Integrated Development Environment) to write and run Java program.

You can download and install the latest version for free.

Use google to search for "jGrasp", and go to jGrasp download site.

After downloading the jGrasp, you can install it by following the on-screen instructions.


3. Download and Install Eclipse

Eclipse is a heavyweight IDE.

You can download and install the latest version for free.

Use google to search for “Eclipse”, and go to Eclipse download site.

After downloading the Eclipse, you can install it by following the on-screen instructions.


Optional

4. Download and Install NetBeans

NetBeans is a heavyweight IDE.

You can download and install the latest version for free.

Use google to search for “NetBeans”, and go to NetBeans download site.

After downloading the NetBeans, you can install it by following the on-screen instructions.


5. Download and Install IntelliJ

Intellij is a heavyweight IDE.

There are three versions: Ultimate, Community, and Edu.

You can download and install the latest Edu version for free.

Use google to search “IntelliJ”, and go to IntelliJ download site.

After downloading the IntelliJ, you can install it by following the on-screen instructions.


Web-Based Environment

Also known as online IDE or cloud-based IDE.

You don't need to install JDK or IDE on your computer.

You only need the Internet connection and the web browser.

Basically, you can access the IDE from the web browser, then write and run Java program online, and save the program on the Cloud or download the program to your computer.

You may experience poor performance due to slow Internet service.

Some free online IDEs may not include all the features as the desktop IDEs.

Examples of online IDEs:

www.jdoodle.com

www.codiva.io

Repl.it

www.eclipse.org/che/

codeanywhere.com/

aws.amazon.com/cloud9/