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

Solomon Alexandru
Solomon Alexandru
3,633 Points

Problem running the TreeStory project

Hello, I have a problem with running the application (TreeStory). I imported it, can view and edit it but I'm not able to run it.

Here are some screenshots of my problem: http://postimg.org/image/varsxcbj5/ http://postimg.org/image/ovss0o4td/

It asks for a configuration, and I have no idea how to do it. Could you please help me? I want to keep learning Java. Thank you.

Grigorij Schleifer
Grigorij Schleifer
10,363 Points

Hi Solomon,

did you found a solution for your problem?

Solomon Alexandru
Solomon Alexandru
3,633 Points

Yes, i had to select the main application from the run window

2 Answers

Peng Liu
PLUS
Peng Liu
Courses Plus Student 14,273 Points

Hi, Soloman:

Choose Edit configuration, on the following window called Run/Debug configurations, Among Configuration, Code coverage, and Logs tab, choose Configuration tab. in the Main class, fill in "com.teamtreehouse.Main", in the Working directory, fill in your file directory where you project is stored, it includes the name of the project, TreeStory, at end of it(all of this should be there already, you don't need to fill in actually). in Use classpath of module, it should have "TreeStory2" as the module name filled in there. in Java Runtime Environment(JRE), it should have "Default (1.x -SDK of "TreeStory2" module) filled in there. Before you do all of these make sure you have Application (with Main under it) besides Defaults on the left pane of Run/Debug configuration windows; if not, click on Defaults, choose Application, and you will need to fill in the information mentioned above. My experience with intelliJ editor is sometimes it saves a config file and settings for each different project, next time when you start a new project, it still uses the old config and settings, as a result, sometimes, you have to manually set up some settings again. if you work for a company with IT department, their IT administrator and technicians will do these kinds of settings for you, so the programmers or at least programmers-wanna-be can focus on programming and be more productive. sadly, we are the new comers to the language and development environment, you have to be both IT and programmer at the same time for yourself, same thing will happen if you are going to work for a small company with limited resources and tech support. Hope one day some programming IDEs will have key mechanism or some sort of big "Reset" button to reset everything to normal in case we messed up settings while exploring the IDEs and struggling on learning the language.