Jeffry Houser's Blog - IntelliJhttps://www.jeffryhouser.com/index.cfm
Jeffry Houser's Blogen-usMon, 19 Nov 2018 16:57:13 -0700Sat, 31 Mar 2018 21:25:00 -0700BlogCFChttp://blogs.law.harvard.edu/tech/rssjhblog@farcryfly.comjhblog@farcryfly.comJeffry Houserjhblog@farcryfly.comJeffry HouserJeffry Houser's Bloghttps://www.jeffryhouser.com/index.cfm
noRunning Unit Tests from IntelliJhttps://www.jeffryhouser.com/index.cfm/2018/3/31/Running-Unit-Tests-from-IntelliJ
I put together this screencast about running Unit Tests using IntelliJ.
<iframe width="560" height="315" src="https://www.youtube.com/embed/U50W3aFJySk" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
ProfessionalJasmineIntelliJKarmaSat, 31 Mar 2018 21:25:00 -0700https://www.jeffryhouser.com/index.cfm/2018/3/31/Running-Unit-Tests-from-IntelliJinfo@theflexshow.com (Jeffry Houser and John Wilker)Why can't IntelliJ find java.time with JDK 9?https://www.jeffryhouser.com/index.cfm/2018/2/1/Why-cant-IntelliJ-find-javatime-with-JDK-9
I've been working on a a few projects that use the JDK 9 with IntelliJ. My latest started getting an error like this:
<code>
java package java.time does not exists
java cannot find symbol
symbol: class LocalDate
</code>
The LocalDate class was added to the JDK 8, so this error makes sense if you are building using an earlier version of JDK. But, I should not be seeing it when using JDK 9.
Googling on similar errors seems to bring me back to the same thing I already knew. You're using the wrong version of the JDK, be sure to upgrade to JDK 8 or later.
But, I am already using JDK 9, so should not be having this problem.
I spent an hour pouring over IntelliJ settings before stumbling onto this screen:
<img src="https://www.jeffryhouser.com/images/JavaByteCodeVersionCompiler.png">
The Java Compiler target bytecode version of my project was set to 1.7 instead of 9. I already fixed that in the screenshot above. It made my errors go away immediately.
The most confusing thing is that I didn't have errors on any of the other projects.
ProfessionalIntelliJJavaThu, 01 Feb 2018 09:00:00 -0700https://www.jeffryhouser.com/index.cfm/2018/2/1/Why-cant-IntelliJ-find-javatime-with-JDK-9info@theflexshow.com (Jeffry Houser and John Wilker)