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 Data Structures - Retired Getting There Packages

Cuitlahuac Maldonado
Cuitlahuac Maldonado
857 Points

javac: file not found

Hi I'm not sure what is happening here

import com.treehouse.Treet;

public class Example {
  public static void main(String[] args) {
    Treet treet = new Treet();
    System.out.printf("This is a new treet:  %s\n",treet);
  }
}

And console says:

javac: file not found: Example.java
Usage: javac <options> <source files>
use -help for a list of possible options

1 Answer

Zeljko Porobija
Zeljko Porobija
11,491 Points

I had the same issue and found out that I made a typo in Treet.java. Just check it again. And the Example.java should be placed in JavaDataStructure directory.