Scala Compile Server Exception

Does anyone know what this is about?

Is this because I am trying to compile under JDK18?

Cheers, Eric

12:34 p.m. Scala Compile Server
Exception in thread “NGServer(localhost/, 3200,3ff8e4d5-d9af-45ae-bd26-34e5ca253b16)” java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
at java.base/java.lang.System.setSecurityManager(
at java.base/

Thos was deprecated in JDK 17 but maybe JDK 18 which is only available as Early access has gone further. The Scala dev team are not likely to be prioritising work on bleeding edge JDKs.

This appears to be a Nailgun issue rather than a Scala issue per se.

For context,

1 Like

Thanks, @SethTisue, that clearly explains things.

Note that in Scala Plugin 2021.3 we added a cosmetic workaround:
We ignore this warning output and do not show this output as a notification to the user.

(IJ Scala Plugin Compile Server uses Nailgun under the hood)