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 Refactoring

Nikhil Rai
Nikhil Rai
15,391 Points

Help needed... I am confused on this challenge!! Refractoring

Hey all, in this question, we need to refractor mSongQueue to mSongRequestQueue.. okay.. I did that in my program. However, I have been practicing locally since the first day. I have two questions:

  1. When I opened my files from the folder where I saved em, they are not running in IDEA. Whenever i am trying to run it, it asks me to configure. I dont know what to do.

  2. ABOUT QUESTION: it says refractor .. I did that but then why is it looking for the package names and other things. I mean, most of my variables and classes have different name including the package name.

What should I do here ?

Thanks.

1 Answer

Gavin Ralston
Gavin Ralston
28,770 Points

Try posting a screenshot or typing in the exact details of the messages you're getting when it isn't running or complaining about configuration.

Is it possible you haven't set up the JRE for the project?

As for the second question about refactoring:

If the challenge is going to check method and package names, this is a great time to get comfortable with the Refactor > Rename ability. It'll make most changes pretty trivial unless you use the same names for different things and rely on ghosting a lot. Even then it's got a pretty good sense of context. :)