Skip to content

Set up

About an hourWeek 1Start here

Before you write a line of Java you need three things on your machine: the Java toolkit itself, somewhere to write code, and somewhere to keep it. This section installs all three and proves each one works.

Do them in this order. Most setup problems people bring to class are caused by installing the editor before Java, then wondering why nothing runs.

Three tools, one projectThree boxes along the top, labelled Java, Eclipse and Git, each joined by a line to a single box below them labelled your project. The three tools are separate installations that together produce one piece of work.JavaEclipseGitcompiles and runswhere you writewhere it is keptYour projectone repository, all semester

The three pieces

  • 1. Java


    The compiler, the runtime and the tools. This is the part that actually runs your code, and the part that breaks if you get it wrong.

    Install Java

  • 2. Eclipse


    Where you write, run and debug. It is a convenience layer over the tools you installed in step 1.

    Install Eclipse

  • 3. Git and GitHub


    Your work lives in a repository from week one, not in a folder on your laptop.

    Set up git

About the editor

The course uses Eclipse. Not because it is better than IntelliJ IDEA or VS Code, but because when everyone has the same screens, a problem takes two minutes to solve instead of twenty.

If you already work happily in another editor, use it. Every project in this course is plain Java and later plain Maven, so nothing here depends on Eclipse. You still need the exact Java version from step 1, and you still need git.

Do not keep your code in OneDrive or Dropbox

Sync clients rewrite files while the compiler is reading them. The result is not a clear error, it is intermittent nonsense: builds that fail and then succeed, files that revert, a git repository that corrupts itself. Put your work somewhere plain, like C:\dev\, and let git be your backup.

Where each piece goes

Piece Lands in You will use it
Temurin JDK 25 C:\Program Files\Eclipse Adoptium\ Every week
Eclipse C:\Users\<you>\eclipse\ Every week
Your workspace C:\dev\ Every week
Git C:\Program Files\Git\ Every week

Later in the course

Two more tools arrive when you need them, and their setup pages will appear here.

Maven in week 10, when you add JUnit and need a way to pull in a library.

JavaFX and Scene Builder in week 13, when your program gets a window.

Check yourself

You are set up when all three of these work

Open PowerShell and run each one. You should get a version number, not an error.

java -version
javac -version
git --version

If any of them says the command is not recognised, that piece is not installed or not on your PATH. Go back to its page.

Think about it

  1. You are installing three separate tools rather than one program that does everything. What does that separation buy you? Now suppose next year you want to try a different editor, or a different Java version for one project only.
  2. The course asks everyone to install the same versions. What is lost by that, and who is it really for? Imagine instead that your code runs on your machine but not on the machine of the person marking it.
  3. A tool you install today will have a newer version before the semester ends. What should make you update, and what should make you leave it alone until the course is over?