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

Scott Sanders
PLUS
Scott Sanders
Courses Plus Student 1,826 Points

javac 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
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Your 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
PLUS
Scott Sanders
Courses Plus Student 1,826 Points

ahhh silly me thanks maybe i should grab that coffee after all