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

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