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 trialScott Sanders
Courses Plus Student 1,826 Pointsjavac not working for me
followed along and did everything like in the video buy i get a error and i did save my work and even restarted workspace
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 Scott");
} }
javac: file not found: introductions.java
Usage: javac <options> <source files>
use -help for a list of possible options
treehouse:~/workspace$ ^C
treehouse:~/workspace$ javac introductions.java
javac: file not found: introductions.java
Usage: javac <options> <source files>
use -help for a list of possible options
treehouse:~/workspace$ ls
Introductions.java
treehouse:~/workspace$ java introductions
Error: Could not find or load main class introductio
ns
treehouse:~/workspace$ 0^C
treehouse:~/workspace$ ^C
2 Answers
Jennifer Nordell
Treehouse TeacherYour file is named Introductions.java as denoted in the returned text from the ls command. You're trying to run javac introductions.java. Note the capitalization. These are case sensitive.
Scott Sanders
Courses Plus Student 1,826 Pointsahhh silly me thanks maybe i should grab that coffee after all
Jennifer Nordell
Treehouse TeacherOoooo... grab me one too! :)