netbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "matteodg (JIRA)" <>
Subject [jira] [Created] (NETBEANS-1105) Compiling using NB8.1 as platform does not work in NB9
Date Thu, 02 Aug 2018 13:32:00 GMT
matteodg created NETBEANS-1105:

             Summary: Compiling using NB8.1 as platform does not work in NB9
                 Key: NETBEANS-1105
             Project: NetBeans
          Issue Type: Bug
          Components: apisupport - Harness
    Affects Versions: 9.0
            Reporter: matteodg
             Fix For: 9.0

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:

warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.openide.util.ServiceProviderProcessor'
less than -source '8'
error: java.nio.file.NoSuchFileException: D:\code\studioSL\trunk\commons\utilities\build\classes\META-INF\services\

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:

env.JAVA_HOME=C:\Program Files\Java\jdk1.8.0_181
java.home=C:\Program Files\Java\jdk-10.0.2
So we guess the problem is with Java or Ant?

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

For further information about the NetBeans mailing lists, visit:

View raw message