FAQ: Hello World: Java - Compilation: Catching Errors

Welcome to the forums!

The terminal is the right-most panel.


On another note, this community encourages users to solve problems and complete the lessons themselves, rather than simply using the Get Solution option. That should be a last resort.

IM here to help
your screen should be divided in 3 areas
the left side is the learning section
the middle section is where the code goes
the right section is the terminal
type ( javac. Compiling.java) into the empty terminal space

1 Like

also push enter when you type javac compiling.java

I’ve done everything you said and it’s still not working for me.

Welcome to the forums! Can you post the exact commands you used?

thanks so much for replying but I got it now.

1 Like

This worked! Thanks itch_aitch.

Something that helped me is check the code read through it. In my case there was no errors in the starting code which didnt let me get the terminal error in order to procceed . If your code looks correct remove the semicolon from the 3rd println command and compile , terminal will return an error , then click Check Work . Hope this helps :smile:

hello there i think the problem with all of you is the coding panel is a correct code and the terminal cant get a problem so the terminal to find an error go to the coding space and delete one semicolon

i had the same issue, what worked for me , i entered to solution they have and i just replace their answer by mine … and it worked i was stuck there for long time

youre putting the code wrong, you have to type in “java Compiling;” you added a C on the end of the first java.

I didn’t understand why we put ls in the terminal for checking errors?

Welcome to the forums!

In this exercise, we don’t use ls to check for errors. Step 2 simply uses ls to demonstrate that, when there’s a compile-time error, the program does not compile successfully and does not generate a .class file.

On the first exercise, I type the command exactly as it says (javac Compiling.java) and hit enter. It tells me about the error with the semicolon as it should. However, when I click ‘Check Work’ afterward, it says ‘Did you run javac Compiling.java in the terminal?’

I have also tried copying and pasting the command from the lesson into the terminal and running that.

Welcome to the forums! You might consider resetting the exercise (there’s a button to do this at the bottom of the middle pane). If that doesn’t work, a workaround would be to click Get Unstuck, then Get Solution to pass.