We are going to move to NB9 as our IDE, so we tried to compile our application based on Java8 and NB8.1 in NB9 IDE.
Successfully set the Java platform to be Java 8 and NB platform+harness to be NB8.1, but when we compile a module containing a @ServiceProvider annotation to inject in the global lookup an implementation of an SPI we get this error:
Attached a simple NB rich client application with a single module.
The problem arises only by using Java8+NB8.1 as platform, whereas using Java10+NB9 as platform it works fine. We also tried to force NB to use Ant from NB8.1 (extide/ant), but nothing changes.
Something strange is that launching Ant and outputting the environment variables we have this even though we set the JAVA_HOME environment variable to point to Java8:
So we guess the problem is with Java or Ant?