[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 11:04:22 -0400

I think it was a year ago we switched over to requiring JDK12 for, I think,
CXv0.7+.

For the short term using a JDK between 11 and 15 would avoid the compile
problem. At least until we get something into the Maven files to
accommodate building with JDK16.

On Mon, Jun 7, 2021 at 9:47 AM Jonathan Fine <dmarc-noreply@xxxxxxxxxxxxx>
wrote:

Sure, although I may be slow with my responses this week.  (Having
orthopedic surgery on my hands this afternoon.)

I could switch to JDK 12 as well :). For some reason I thought JDK15+ was
required.

On Mon, Jun 7, 2021 at 9:19 AM Darryl L. Pierce <mcpierce@xxxxxxxxx>
wrote:

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



-- 
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: