matteodg created NETBEANS-1105:
----------------------------------
Summary: Compiling using NB8.1 as platform does not work in NB9
Key: NETBEANS-1105
URL: https://issues.apache.org/jira/browse/NETBEANS-1105
Project: NetBeans
Issue Type: Bug
Components: apisupport - Harness
Affects Versions: 9.0
Reporter: matteodg
Fix For: 9.0
Attachments: application.zip
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:
{noformat}
...
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\com.streamsim.utilities.io.WindowsUtilities
...
{noformat}
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:
{noformat}
env.JAVA_HOME=C:\Program Files\Java\jdk1.8.0_181
java.home=C:\Program Files\Java\jdk-10.0.2
java.version=10.0.2
java.specification.version=10
java.runtime.version=10.0.2+13
java.vm.version=10.0.2+13
{noformat}
So we guess the problem is with Java or Ant?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists