[
https://issues.apache.org/jira/browse/NETBEANS-6345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17467138#comment-17467138
]
Arnaud Kleinveld commented on NETBEANS-6345:
--------------------------------------------
For this particular project I am using Ant and there is also a section under
Tools/Options for Ant but that would be a global setting which I am trying to
avoid. When I was working with one java platform version I did not have this
problem and currently I work around the problem running Netbeans on the same
version as the project, using command line alternatives. Works for me, yet I
thought to report this issue because I understand that Netbeans was designed to
accept project level platform selection and that the build tool would include
the selected platform libraries in the compiler classpath. The inline compiler
is doing this as expected because there is no error badge. However once I hit
the build button and the Ant compile target runs it reports an error for a
missing class. Note that I can expand the libraries node from the project tree
and further expand into JDK 1.8 and rt.jar where the missing class is listed.
> Project platform libraries missing from project compiler classpath
> ------------------------------------------------------------------
>
> Key: NETBEANS-6345
> URL: https://issues.apache.org/jira/browse/NETBEANS-6345
> Project: NetBeans
> Issue Type: Bug
> Components: java - Compiler
> Affects Versions: 12.6
> Reporter: Arnaud Kleinveld
> Priority: Minor
>
> Configuration of Fedora 34 with java 11 and 1.8 from repo and used
> alternatives set to java 11 as the default. When Netbeans is launched on
> selected version and project platform is specified to be 1.8, the project
> libraries node expands with JDK 1.8 and inline compiler is using this
> correctly, however when the project is built 1.8 specific libraries seem to
> be missing from classpath, e.g. javax.activation.DataSource.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
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