Okay, so I wanted to mess around with BlueJ, you know, that Java IDE thingy that’s supposed to be good for learning. I’d heard about it, but never really gave it a shot. Figured it was time to change that.
First, I had to get it. I went to the BlueJ website and grabbed the installer for my operating system. It’s Pretty straight forward. Just run that installer.
Getting Started
Once installed, launching it was a snap. The interface? Honestly, it’s kinda… basic. But I guess that’s the point, right? No distractions, just the core stuff.
My First Project
I decided to do something simple: create a basic “Hello, World!” program. Figured it was a good way to get a feel for things.
I clicked on “Project” and then “New Project”.
Gave my project a name (“HelloWorld” – super original, I know).
Chose a location to save it.
Hit “Create”.
Boom, there’s my project. Now, time to add a class.
Creating the Class
I clicked the “New Class” button. Another window popped up.
Named the class “Main”. No spaces, just “Main”.
Left the class type as “Class”. Seemed right.
Clicked “OK”.
A little orange box appeared in the project view with the name “Main”. Double-clicked that bad boy, and the code editor opened up.
Coding Time
BlueJ gives you some starter code. I deleted most of it and put in the standard “Hello, World!” stuff:
I typed in the classic:
public class Main {
public static void main(String[] args) {
*("Hello, World!");
Running It
I clicked the “Compile” button at the top. No errors. Feeling good.
Then, I went back to the project view, right-clicked the “Main” class, and chose “void main(String[] args)”. A little window popped up; I just hit “OK”.
And there it was, in a separate terminal window: “Hello, World!” Success!
It is so easy to get some code up and run quickly!