[comixed-dev] Re: Error compiling comixed on Mac w/ OpenJDK 16

  • From: "Darryl L. Pierce" <mcpierce@xxxxxxxxx>
  • To: comixed-dev@xxxxxxxxxxxxx
  • Date: Mon, 7 Jun 2021 09:19:04 -0400

You shouldn't have to use Oracle's JDK, no. I do my primary development on
two Macs, both with Oracle JDK12, without issue. That said, I just put
Oracle JDK16 on my mini and am seeing the same error. I tested the fix on a
Fedora machine with JDK 14 (the main reason I ended up looking into fixing
this issue) and it worked. I also tested it with JetBrains' JDK16 bundle
and it worked. So I'm guessing there's a setting that's needed in the Maven
file to force OpenJDK 16 to target JDK 11 output.

I'll look into it. Would you be willing to try out any fixes I put up as
PRs to verify they work?

On Sun, Jun 6, 2021 at 10:58 PM Jonathan Fine <dmarc-noreply@xxxxxxxxxxxxx>
wrote:

Hello, I tried compiling the develop branch of ComiXed on a Mac w/ OpenJDK
16 and I'm getting this error from Lombok:

"Fatal error compiling: java.lang.IllegalAccessError: class
lombok.javac.apt.LombokProcessor (in unnamed module @0x3a6409ec) cannot
access class com.sun.tools.javac.processing.JavacProcessingEnvironment
(in module jdk.compiler) because module jdk.compiler does not export
com.sun.tools.javac.processing to unnamed module @0x3a6409ec"

Do I need to use Oracle's JDK for this?  Below is a screenshot of my mvn
compile followed by my java --version:

[image: Screen Shot 2021-06-06 at 22.45.10 PM.png]




-- 
Darryl L. Pierce <mcpierce@xxxxxxxxx>
"Le centre du monde est partout." - Blaise Pascal
"Let's try and find some point of transcendence and leap together." - Gord
Downie

PNG image

Other related posts: