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 Introduction to Your Tools

I followed the instructions and its still not running the command, the questions section did not solve my problem.

as soon as i can uplaod a snapshot i will so everyone can see.

import java.io.Console;

public class Introductions {

public static void main(String[] args) {
    Console console = System.console();
    // Welcome to the Introductions program!  Your code goes below here

console.printf("Hello my name is Artemus");
} }

Im on the first java basics video. Strings and variables if im not mistaken.

https://w.trhou.se/tf3etvl5v7 ok so i strated the video over and getting the same error. hopfully you can see the snapshot

2 Answers

I have the same issue. It is really demotivating. I tried more than 100 times but still have the sam e issue can anyone please help

Steven Parker
Steven Parker
212,140 Points

This code seems OK (though without formatting there could be unseen issues). How do you build and test it?

If you still have trouble, make a snapshot of your workspace and post the link to it here, then we can more easily (and accurately) replicate the issue.

Steven Parker
Steven Parker
212,140 Points

You might want to add a newline, but otherwise it seems to work OK for me:

treehouse:~/workspace$ javac Introductions.java:point_left: builds without errors
Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m
treehouse:~/workspace$ java Introductions
Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m
Hello, my name is Artemus‍treehouse:~/workspace$
runs and outputs the message