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 trialcurchel smoot
Courses Plus Student 698 Pointswhy doesn't this code work in eclipse (or why doesn't it work in MY eclipse)?
I can't get the console.readLine or console.printf to work in my eclipse. I did the import of java.io.Console but it still doesn't work.
1 Answer
Ken Alger
Treehouse TeacherChurchel;
Both Eclipse and IntelliJ have, um, issues(?) with utilizing the console
commands as they do not seem to natively run a console. There are work arounds for that, for which I would suggest looking at stackoverflow.com or doing a Google search for your particular version of Eclipse and console command replacement.
The other option would be to utilize the Workspace feature here on Treehouse. You should be able to write your code there and test it using the console without issue. You could also compile and run your code outside of Eclipse.
At least that has been my experience with using console features and those two IDEs. Perhaps my development environment is just very wacky.
Ken