You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Rangi Keen (Jira)" <ji...@apache.org> on 2019/11/14 14:03:00 UTC

[jira] [Created] (NETBEANS-3390) Presence of java.lang.Module causes build path errors in Eclipse

Rangi Keen created NETBEANS-3390:
------------------------------------

             Summary: Presence of java.lang.Module causes build path errors in Eclipse
                 Key: NETBEANS-3390
                 URL: https://issues.apache.org/jira/browse/NETBEANS-3390
             Project: NetBeans
          Issue Type: Bug
          Components: platform - Launchers&amp;CLI
    Affects Versions: 11.1, 11.0, 10.0, 11.2
            Reporter: Rangi Keen


To reproduce:
* Create a Java project in Eclipse 2019-09 (and probably also 2019-06)
* Add a dependency on {{org.netbeans.modules:org-netbeans-bootstrap}}
* Build the project in Eclipse

You'll see the following in the problems window:

bq. The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project

In the Eclipse log file, there are many errors similar to the following:

bq. MESSAGE Compile error during code evaluation: The package java.lang is accessible from more than one module: <unnamed>, java.base

This appears to be due to the addition of {{java.lang.Module}} in {{o.n.bootstrap}} as part of [JDK 9 instrumentation support|https://github.com/apache/netbeans/commit/4325e6ca3600c7234072df38ce50ff8c69172343].

Removing this file and building/running with JDK 11 resolves the issue.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
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