[ 
https://issues.apache.org/jira/browse/NETBEANS-6345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17467589#comment-17467589
 ] 

Arnaud Kleinveld commented on NETBEANS-6345:
--------------------------------------------

Thank you Thomas for taking the time to respond extensively.

Indeed I explored the options of command line parameter and netbeans.conf 
setting of jdkhome. However project level selection is preferred.

Also indeed as your screenshots I have selected the 1.8 platform for this 
particular project.

"{_}Also note, that Netbeans will take care of selecting the proper JDK when 
executing the build only{_}" - This is where it goes wrong. It does select the 
1.8 compiler but does not include the 1.8 libraries int the classpath for the 
build. That while the classes are listed under the project libraries node in 
the navigator.

!image-2022-01-02-17-31-29-854.png!

!image-2022-01-02-17-32-37-672.png!

The editor inline compiler is using this correctly and the specific line has 
not been badged.

!image-2022-01-02-17-34-04-610.png!

Here comes the cracker. Now that I want to include a screenshot of a failing 
built after hitting F11, this time around the build completes successfully. 
It's magic!

Happy new year and all the best for you and your loved ones.

> 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
>         Attachments: image-2021-12-31-22-09-29-276.png, 
> image-2021-12-31-22-16-08-793.png, image-2022-01-02-17-31-29-854.png, 
> image-2022-01-02-17-32-37-672.png, image-2022-01-02-17-34-04-610.png
>
>
> 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

Reply via email to