When I try to run sbt commands like sbt clean, I get the following error:
java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
...
I have exported JAVA_HOME to point to JDK 8:
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home
When I try sudo sbt clean I get a different error:
java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
Does anyone know how to fix this issue and get sbt running successfully?