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

Gerald Aguirre
Gerald Aguirre
333 Points

When I clicked on preview it takes me to a web page with words "index of /"

There is no files or folder on my workspace, and when I tried to write code it takes to a web page with words "index of /"

Have you tried deleting your workspace and relaunching it from the link with the video?

1 Answer

Steven Parker
Steven Parker
229,732 Points

Some servers, including the one launched by the preview, will display the server folder contents when there is no "landing page" present (usually named "index.html"). Since you have no files, what you are seeing is just the empty listing of the folder contents.

You'll need to create some content for the preview to display anything else. Are you at a point in a particular course where the instructions led you to expect something else? If so, please provide a link to the course video (and an approximate time index).