Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Basics Getting Started with Java Introduction to Your Tools

Trung Bui Duc
Trung Bui Duc
1,580 Points

Terminal does not return result of Introductions.java

Hello,

I am a new techdegree student. I tried to print out a message written in Java program called Introductions. However no message was displayed, only Xmx128m was printed out. Could you please explain me how to use this terminal?

Best regards, Trung

2 Answers

you only compiled it. You have to type "javac file.java" and then once your done with that you type "java file" without the .java to run it. I hope this helps

Trung Bui Duc
Trung Bui Duc
1,580 Points

Hey, Thanks for explanation. I managed to make it work after entering java file few times.

Hi, I am having the same problem. I have compiled it and then I typed "java file". However, it doesn't return a result. I tried using a new workspace but the problem still persists. I am not sure why.

Make sure your program writes out to the console or nothing will really happen.