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

João Ignácio Brito
João Ignácio Brito
1,201 Points

You should fix this compiler problem, it makes me wanna cancel my subscribe...

It makes no sense to use the workspace if it doesn't really show that our program is working... It's not educational at all and it descourages us...

Hello

If you share the error that you are seeing, someone will help.

Like you, I did not like workspaces initially, but now I tend to appreciate them. they provide a good way to test something on the fly.

Thanks

6 Answers

Hello

this part

treehouse:~/workspace$ javac Introductions.java Picked up JAVA_TOOL_OPTIONS: -Xmx128m Picked up JAVA_OPTIONS: -Xmx128m Introductions.java:8: error: ';' expected console.printf("Hello, My name is Craig") ^ 1 error

is telling you that you made an error. The ";" is missing

it should be console.printf("Hello, My name is Craig");

note the ";" at the end of the line

if this answers your question, please mark the question as answered.

Thank you

João Ignácio Brito
João Ignácio Brito
1,201 Points

Thanks for the reply! I write the code just like him and I get this:

treehouse:~/workspace$ javac Introductions.java
Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m
Introductions.java:8: error: ';' expected
console.printf("Hello, My name is Craig")
^
1 error
reehouse:~/workspace$ java Introductions
Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m
Error: Could not find or load main class Introductions
treehouse:~/workspace$

guys I'm facing the same issue how can i solve it please help me

I'm having the same issue, my code is identical to his, except the name change of course:

treehouse:~/workspace$ javac Introductions.java
Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m
treehouse:~/workspace$

Rachelle

I don't see any error in you posting?

did you look in the folder to see if Introductions.class (the compiled code) already exists?

João Ignácio Brito
João Ignácio Brito
1,201 Points

Rachelle did u run it after compiling?

java Introductions

João Ignácio Brito
João Ignácio Brito
1,201 Points

Ohhh, thanks a lot. It worked, such a simple thing and I couldn't notice.... Thank you.

hello i'm on free trail and i want to continue the course. but before i pay a some kind of fee, i wanna make sure that, if i get stuck, or cant solve any problem on my on, that i can depend on your help, sometimes. anyway this my problem: in java: Console.printf("hello my name is Luka"); in console: javac Introductions.java and this error pops up: Introductions.java:8: error: non-static method printf(String,Object...) cannot be referenced from a static context
Console.printf("hello my name is Luka");
^
1 error

please help, your help will be greatly appreciated

Hi

the error message is trying to help you

Console.printf("hello my name is Luka"); ^

you are using capital C instead of console

hm, such a small detail, it works now, thank you.

Hi, when i write on the console the whole javac Introductions.java ..... it shows this error:

treehouse:~/workspace$ javac Intrductions.java
Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m
javac: file not found: Intrductions.java
Usage: javac <options> <source files>
use -help for a list of possible options
treehouse:~/workspace$ ls
Introductions.java

Can anyone help.

TIA

nevermind, i had forgotten to save it first.