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

naman tiwari
naman tiwari
773 Points

my program isn't running.

i followed the given instruction but couldn't able to run the program.need help

3 Answers

Jessica Delmoral
Jessica Delmoral
3,531 Points

Please verify the following points:

  1. Did you save the file before running? To save click the buttons: CTRL+S

  2. Did you type "javac Introductions.java" in the Console followed by typing "java Introductions"

If none of this works, can you post here what appears in the Console after you try to run it (with the intrictions in point 2.)?

Thank you, Jessica. Your Post helped me to solve my problem that was happening because I haven't saved the file before running.

you can post your code too see what is wrong

naman tiwari
naman tiwari
773 Points

thank you adbi ali, i have found where i had done wrong.

I had the same problem. Make sure to save the console.printf command in workspace, i.e. the text editor, before running javac in the console.

PS. I noticed that Introductions.class was not listed in the file tree in the workspace uploaded from the video link, instead choose the link beneath the course description, which did have it in the file tree.