Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Java Java Data Structures Getting There Packages

How to setup workspace correctly?

After running the command "clear && javac Example.java && java Example" it gives the error "javac: file not found: Example.java"

But every file i created is named exactly the same as in the video. Can someone tell me wha ti should do?

Linda de Haan
Linda de Haan
12,089 Points

Mine is running. Are you sure you didn't call your file example.java instead of Example.java ? It's case sensitive. Also check your folder structure. Are all folders and files the same as the teacher's. If you call the javac command from the wrong directory it won't find the file either.

thanks linda for helping out but unfortunately my workspace is still not working. luckily it is possible to do the cource without touching the workspace

1 Answer

The Example.java is not in the correkt folder it has to be on the same level as the "Java Data Structures - Packages"-Folder and not a child of the "com"-Folder you can move the file per drag&drop sligthly under the JDSP-Folder.