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 Local Development Environments Advanced Tooling Code Generation

Volodymyr Rozdolsky
Volodymyr Rozdolsky
3,732 Points

Wouldn't let me create class in model folder

Can someone help me I can't continue with course. When I right click to create new class in a model folder there is no option to create a new class.

Teacher Russell
Teacher Russell
16,873 Points

I just saw your question from so long ago. Hope you figured it out:) Using IDEs can be tricky at first, and a little overwhelming, but it gets easier. I also recommend to everyone, using the terminal to work with files. It's faster and easier. I keep mine open on the right side of the screen and slide it over whenever I need files, folders, or to move or delete any of them.

1 Answer

Bryan Martinez
Bryan Martinez
2,227 Points

If anyone runs to this issue this is the fix.

Right click the com folder in IntelliJ and select Mark Directory as...Source root. Then you should be able to create a class file. Not sure why the project files aren't like the one in the video but that should be fixed. It can be frustrating not being able to advance because of issues like these.