Cassandra error while starting application


When I try to start my lagom services with: mvn lagom:runAll, I get following error:

11/04 11:19:33 ERROR[NonPeriodicTasks:1] o.a.c.d.l.LogTransaction - Unable to delete D:\projects\lagom\java-based\lagom-test\target\embedded-cassandra\data\system\local-7ad54392bcdd35a684174e047860b377\mc-6
java.nio.file.AccessDeniedException: D:\projects\lagom\java-based\lagom-test\target\embedded-cassandra\data\system\local-7ad54392bcdd35a684174e047860b377\mc-6-big-Data.db
at java.base/sun.nio.fs.WindowsException.translateToIOException( ~[na:na]
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException( ~[na:na]
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException( ~[na:na]

Moreover, I also don’t see any target folder at mentioned location.
And it used to work till recently.

What can be the cause?

@mghildiy AccessDeniedException is indicating file system access denial.
You should check access rights in D:\projects\lagom\java-based\lagom-test\target\ folder and subfolders. Match it with a running user.
Also try sbt clean that will delete all target subfolders.

It turned out to be Java version issue.
Mine was 10, while 8 is needed.

Hope it helps others facing similar issue.