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 trialJoão Ignácio Brito
1,201 PointsYou 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...
6 Answers
markmneimneh
14,132 PointsHello
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
1,201 PointsThanks 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$
sohib yhya
80 Pointsguys I'm facing the same issue how can i solve it please help me
Rachelle Williams
3,656 PointsI'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$
markmneimneh
14,132 PointsRachelle
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
1,201 PointsRachelle did u run it after compiling?
java Introductions
João Ignácio Brito
1,201 PointsOhhh, thanks a lot. It worked, such a simple thing and I couldn't notice.... Thank you.
Luka Basilaia
1,176 Pointshello 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
markmneimneh
14,132 PointsHi
the error message is trying to help you
Console.printf("hello my name is Luka"); ^
you are using capital C instead of console
Luka Basilaia
1,176 Pointshm, such a small detail, it works now, thank you.
sofia malchiodi-albedi
745 PointsHi, 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
sofia malchiodi-albedi
745 Pointsnevermind, i had forgotten to save it first.
markmneimneh
14,132 Pointsmarkmneimneh
14,132 PointsHello
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