How do I know what happened when the SBT says that "javac returned a nonzero exit code"?

I am trying to port our projects to Java 8. When I start compilation, I get the following:

[error] (MyProject/compile:compileIncremental) javac returned nonzero exit code 

This does not happen with Java 7. I suspect that this is due to us using Lombok.

Is there a way to get the actual output from javac? I tried "last" and "lastgrep", but I only see SBT logs.

I am using SBT 0.13.8

Thanks. Ashley

+7
sbt
source share
2 answers

I had SBT 0.13.9, RHEL, and OpenJDK1.8 installed, and it was getting the same error (without further stack tracing), and data exchange with Oracle JDK fixed it. There is probably a problem with the javac configuration, but it was not possible to quickly fix it using OpenJDK. This is probably not the best solution.

0
source share

The error message disappeared on my Mac when I deleted the JAVA_HOME variable in .bash_profile and then restarted the terminal.

0
source share

All Articles