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 trialViola Tian
386 PointsI did the exact same thing, but it keeps saying error.
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 Viola");
}
}
This is my code and I don't know where has gone wrong, could you please help me out? Thank you guys!
3 Answers
Jason Anders
Treehouse Moderator 145,860 PointsHi there.
You posted code is correct, so I'm not sure as to why you are receiving an error.
If you are working in Workspaces, it may have just been a glitch. (There is currently an ongoing issue regarding the functionality of Workspaces, that should soon be resolved.)
I guess, we should check the obvious thought:
After saving your work (make sure the red dot is not visible in the tab of the workspace... this means the changes have not been saved).
Run javac Introductions.java
Run java Introductions
If this does not solve the error, you may need to send an email to the Treehouse Support Team
I hope everything works out. :)
Harshit Halwan
Courses Plus Student 481 PointsMake sure your class name which is "Introductions" in your case is same as your file name in which you are writing your code.
Derek Markman
16,291 Points.
A X
12,842 PointsA X
12,842 PointsI am also getting a bash error when trying to run the program in the console. To explain further, I at first ran Introductions with the .java at the end, which gave the bash error, but now it won't stop giving the bash error when I input the run correctly, java Introductions. I still get the bash error....and I don't even know what bash means!