Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

General Discussion

Mary Hodges
Mary Hodges
208 Points

I am doing the Java track- is the console the compiler?

I am very new and I have never done anything like this. I am making it through the track okay. I just feel like I am imitating and maybe not understanding it all fully. I enter the code into the workspace and then when I "test" it in the "console" is that the compiler?

2 Answers

Hi Mary,

We use the console to issue commands to compile and execute our code. This is very similar to how you might do it on your own computer, if you weren't using an IDE (Integrated Development Environment) like Netbeans or Eclipse - which, are able to compile and run the program for you without needing to use the console.

What's likely going on behind the scenes is when you use the console to compile and run Java - in your Treehouse workspace - those commands are being sent out to a server which is doing the actual compiling and execution, and then returning the results back to you.

Mary Hodges
Mary Hodges
208 Points

Thank you! I was trying to talk to a friend about what I am doing on here.. but didn't really know what to tell them or how to describe it.

Also- when I am running the program we are doing in the console.. how do I make it stop?

I don't remember exactly, but it's either CTRL + C or Z. Or if you're on a Mac, I imagine it's similarly CMD + C or Z. If this doesn't work, I suggest creating a new question on the forum, since it may be 12+ hours before I can look into it.