Java Java Basics Getting Started with Java Introduction to Your Tools

Artemus Twillie
Artemus Twillie
145 Points

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.

Artemus Twillie
Artemus Twillie
145 Points

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");
} }

Artemus Twillie
Artemus Twillie
145 Points

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

Artemus Twillie
Artemus Twillie
145 Points

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

1 Answer

Steven Parker
Steven Parker
201,999 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
201,999 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