You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "matteodg (JIRA)" <ji...@apache.org> on 2018/08/02 13:33:00 UTC

[jira] [Updated] (NETBEANS-1105) Compiling using NB8.1 as platform does not work in NB9

     [ https://issues.apache.org/jira/browse/NETBEANS-1105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

matteodg updated NETBEANS-1105:
-------------------------------
    Description: 
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}
...
Compiling 2 source files to D:\code\test\application\module\build\classes
error: java.nio.file.NoSuchFileException: D:\code\test\application\module\build\classes\META-INF\services\module.SPI
1 error
...
{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?

  was:
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?


> 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
>            Priority: Major
>             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}
> ...
> Compiling 2 source files to D:\code\test\application\module\build\classes
> error: java.nio.file.NoSuchFileException: D:\code\test\application\module\build\classes\META-INF\services\module.SPI
> 1 error
> ...
> {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: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists