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 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,413 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.