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 Strings and Variables

Christopher Sullivan
Christopher Sullivan
4,230 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,230 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,230 Points

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