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

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
229,732 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
229,732 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$
  :point_up:
  runs and outputs the message