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.

Java Java Basics Getting Started with Java Strings and Variables

Christopher Sullivan
Christopher Sullivan
4,229 Points

Console question

Hello,

When putting my code into the console I am getting the following: Please not that the information from the Source Code is the same as the prompt.

"bash: java.Introductions: command not found
treehouse:~/workspace$ java Introductions
Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m
treehouse:~/workspace$ Introductions.java
bash: Introductions.java: command not found
treehouse:~/workspace$ Introductions java
bash: Introductions: command not found
"

Should I instead be changing the source code?

Christopher Sullivan
Christopher Sullivan
4,229 Points

I am still on the Hello, world portion of the tutorials. I am trying to output "Hello, my name is craig"

4 Answers

Amulya Arora
Amulya Arora
6,133 Points

you need to type: javac Introductions.java and then java Introductions

Moderator Edit: Moved response from Comments section to Answers!

Amulya Arora
Amulya Arora
6,133 Points

then you should report is as a bug

Amulya Arora
Amulya Arora
6,133 Points

ps. Best answer me , please

Christopher Sullivan
Christopher Sullivan
4,229 Points

When I put javac Introductions.java then java Introductions, I am still receiving the same output.