Closed CrackedPoly closed 4 months ago
Oh, I found a similar issue #380. My problem comes from the default Java version of the coursier, which is only available to coursier. When nvim-metals install metals by 'coursier bootstrap', the Java 8 is used.
So the solution is to change the default Java version of coursier, you can check coursier's docs.
I've enabled nvim-metals in LazyVim, but every time I open a scala project, I encounter this.
In the log file, logs resides:
As a newbie to Java, I get the point that the metals executable is compiled by version 55 (Java 11), but locally I am using version 52 (Java 8). However, I can prove that my global Java version is 17 by typing "echo $JAVA_HOME".
So I am wondering which part of settings can correct the Java version and how?
PS: I've tried setting 'javaHome' manually, not working.
screen shot of MetalsInfo: