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
Tinashe Nyaruwanga
525 PointsProblem with Launch workspace
Not sure if its me or my workspace but I am getting the following error message. I am doing everything correctly as shown in the tutorial but somehow the program is failing to execute when I compile.
The erro message reads:
javac: file not found: Treestory.java
Usage: javac <options> <source files>
use -help for a list of possible options
treehouse:~/workspace$
My code is as follows:
String name = console.readLine(Enter a name: "); String adjective = console.readLine(Enter an adjective: "); String adverb = console.readLine(Enter a noun: ");
console.printf("Your Treestory:n-------------\n"); console.printf("%s is a %s %s. " name, adjective, noun);
I then run the Console
1 Answer
ISAIAH S
1,409 PointsTry an uppercase "S" in the "Treestory.java".
Hope it helps, ISAIAH S
Lisa Steendam
6,825 PointsLisa Steendam
6,825 PointsIn the console.readLine() you posted here you only had the end ". You should add one at the start too: String name = console.readLine("Enter a name: "); String adjective = console.readLine("Enter an adjective: "); String adverb = console.readLine("Enter a noun: ");
Was this your error or a typo?