Compile as library option is currently not working properly with Java 11. It will be fixed for the next update.
Note that it is better to create libraries with Java 8 or 9 anyway as libraries compiled with Java 11 are not compatible with Java 8.
Note that it is better to create libraries with Java 8 or 9 anyway as libraries compiled with Java 11 are not compatible with Java 8.