lein-jlink icon indicating copy to clipboard operation
lein-jlink copied to clipboard

Java compiler not found; Be sure to use java from a JDK rather than a JRE

Open penland365 opened this issue 4 years ago • 0 comments

Howdy!

In attempting to set this up for one of our projects, we are getting stonewalled on the following error:

$ lein link assemble
. . . 
Java compiler not found; Be sure to use java from a JDK
rather than a JRE by modifying PATH or setting JAVA_CMD.

The project we trying to build has a grpc service it has to build. As part of the lein build script, we do the following:

$ lein grpc

which translates into generating the Java files as defined by the protoc file. However, these still need to be compiled into class files as part of the normal build script. We have a

:prep-tasks [["javac"] ["compile"]]

Which has worked fine in the past, but no longer works as javac is not included in the image. Screen Shot 2020-06-24 at 1 47 56 PM We have tried this with javas 11 / 13 / 14 with no success. Current version for lein-jlink is 0.3.0.

Anything we are doing wrong w/ the initial setup?

penland365 avatar Jun 24 '20 18:06 penland365