lein-jlink
lein-jlink copied to clipboard
Java compiler not found; Be sure to use java from a JDK rather than a JRE
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.
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?