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

invalid source 12??

Hey! I have the project open and finally configured to run. I run it and get an invalid source code 12 error. My googlefu returns nothing... I'm at a loss. I've spent hours just learning configuring intellij to get this project to run where I have the option to run it. And now... I run it and boom. I haven't changed any code. I have tried restarting intellij, reopening the project, redownloading and unzipping a second time. Any clues?

1 Answer

i beleive the source code you are wrote is not compatible with the jdk you are using . you should goto project settings in intelij and check what JDK you are using and if the source code you are using is right .

for example you can't be using jdk 7 while you write code which uses stuff that was only introduced starting from jdk 8 such as "lambda expressions"

" invalid source code 12 erro" this propably means you write code for jdk 12 so make sure you have it installed and configured in intellij