Getting started
BlueJ at Home: Practise Java from Class Without Installing
Published on October 22, 20265 min read
In your computer science class, BlueJ is already set up, the projects are on the school network and everything just works. Then at home you're sitting in front of the family laptop or a tablet and don't know where to start. Here you'll learn how to install BlueJ at home, what works on which device and how to practise the material without installing anything at all.
Why BlueJ at home is different
At school, someone else has already done the work. The school computers are set up, Java is installed, and your teacher gives you ready-made projects with classes. At home, several things are missing at once:
- the BlueJ program itself,
- the projects from class, which are often only on the school network,
- sometimes permission to install anything on the family laptop,
- and there's no BlueJ for tablets at all.
Let's go through them one by one.
Installing BlueJ on a laptop
BlueJ is free and comes from the official site, bluej.org. It has installers for Windows, macOS and Linux. According to the site, these are the requirements:
- Windows: a 64-bit edition of Windows 8 or later.
- macOS: macOS 11 or later. There's a separate version for Macs with an Intel processor.
- Linux: a 64-bit Intel processor with Debian 11 or Ubuntu 20.04 or later.
You usually don't need to install Java first. According to the BlueJ FAQ, most installers already come with the right JDK.
Here's how to go about it:
- Ask your teacher which BlueJ version runs at school. The easiest choice is the same version or a newer one at home.
- Download the installer for your system from bluej.org.
- Install BlueJ. On Windows, the system usually asks for admin rights. On a family laptop, that often means asking a parent.
- Get the projects from class, for example on a USB stick, through your school's learning platform or a shared cloud folder. A BlueJ project is a whole folder. Always copy the complete folder, not just single
.javafiles.
For Windows, bluej.org also offers a standalone version as a ZIP file, meant for USB sticks. Whether it starts on a particular computer depends on how that computer is set up. On school computers it's usually blocked. More on locked-down computers is in Java without admin rights.
Tablets and Chromebooks: what works and what doesn't
On bluej.org you won't find a version for iPad or Android tablets. So there's no official way to work on a BlueJ project on a tablet. There's no separate Chromebook installer on the site either.
That doesn't mean you can't practise on a tablet. You just need a tool that runs in the browser. That can be an online compiler that runs your code, or a learning site with tasks. For longer code, a keyboard is almost a must. Curly braces and semicolons are a pain on an on-screen keyboard.
What BlueJ does for you and what you need for the test
BlueJ has one special feature: you can right-click a class to create an object and then click its methods. You don't need a main method for that. That's great for understanding objects. But in a test on paper you have to write exactly what BlueJ does for you in the background.
Say you worked with this class in a lesson:
class Dog { private String name; private int age;
Dog(String name, int age) { this.name = name; this.age = age; }
void haveBirthday() { age++; }
String describe() { return name + " is " + age + " years old."; }}
In BlueJ you click "new Dog(...)", enter a name and an age, and then call haveBirthday(). As Java code it looks like this:
public class Main { public static void main(String[] args) { Dog rex = new Dog("Rex", 3); rex.haveBirthday(); System.out.println(rex.describe()); }}
OutputRex is 4 years old.
Once you've mastered this translation, you can solve any BlueJ task as a normal Java program. How constructors, fields and this fit together is explained in the article Classes and objects in Java. For methods with parameters and return values, Methods and recursion helps.
How to practise with Jario without installing anything
Jario only needs a browser. You install nothing, neither BlueJ nor Java, because the code runs on our server. It works on the family laptop, on a Mac and even on a locked-down school computer without admin rights. Whether typing on your tablet is comfortable enough is best tried with the first two tasks. They work without an account.
What helps when you practise for your computer science tests:
- Tests show you right away whether your solution is correct. With "Check" you see, for example, "3 of 4 tests passed". You don't have to wait for the next lesson.
- Error messages explained. The "What does this mean?" hint explains common compiler errors in plain language. With "Explain the error", the AI tutor explains the error in your own code.
- Hints instead of the solution. The tutor knows the task, your code and the test result. It guides you towards the solution in small steps, but deliberately doesn't give it away.
- Turn off autocomplete. In the test you write on paper. When you switch autocomplete off, you quickly notice which bits of syntax you still don't know by heart.
- Output tasks. "What does the program print?" comes up in many tests. In Jario you predict the output first and then compare.
If your next test covers arrays and methods, for example, practise exactly those chapters. With a free account you get all tasks of the first two chapters, no payment details needed. Pro costs €9 a month and you can cancel it monthly. Whether it's worth it is best decided together as a family. What parents can look out for in learning apps is in Learning apps for computer science: a checklist for parents.
In short
- BlueJ is free on bluej.org for Windows, macOS and Linux. Most installers include Java.
- Always copy projects from class as a whole folder.
- There's no BlueJ for iPad or Android tablets. There you practise in the browser.
- For the test you have to write
newand method calls yourself, which BlueJ does for you with a click.
How to write code without a computer is covered in Java exams on paper. And how the "What does the program print?" question works is explained in Output questions in tests and exams.
Related articles to learn
- Classes and objectsJava classes and objects explained simply: fields, constructors, getters, static and records with examples. Plus common mistakes like shadowed fields.Read article
- Methods and recursionJava methods explained simply: parameters, return, overloading, varargs and recursion with examples. Plus common mistakes like a missing return.Read article
- ArraysJava arrays explained simply: create them, loop through them, use two-dimensional arrays. With examples and common mistakes like the wrong index.Read article
More posts
- Getting startedEclipse on a MacEclipse won't open on your Mac or can't find a JDK? The most common causes on Apple silicon and Intel Macs, solved, plus how to practise Java today anyway.Read more
- Getting startedjavac is not recognized'javac' is not recognized? Find the cause in two minutes and set the PATH correctly on Windows and macOS. Plus the fastest way to start practising today.Read more
- Getting startedJava without admin rightsJava without admin rights on a work laptop or school computer: which options are allowed, what works technically and how to practise every day anyway.Read more