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