[
https://issues.apache.org/jira/browse/NETBEANS-6345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17476678#comment-17476678
]
Arnaud Kleinveld commented on NETBEANS-6345:
--------------------------------------------
Hi Thomas, the issue has resurfaced again and I'm not exactly sure what has
caused this to happen.
Compiling 428 source files to <snip>-ejb/build/jar
warning: [options] bootstrap class path not set in conjunction with -source 8
<snip>/core/MailQueue.java:269: error: cannot access DataSource
Multipart mp = new MimeMultipart("alternative");
class file for javax.activation.DataSource not found
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
1 warning
BUILD FAILED (total time: 11 seconds)
What I know is that I was trying to resolve other errors related to classpath
and I switched to Glassfish from having no server configured at all, i.e.
according to the project properties UI, however when I removed Glassfish from
the Netbeans server configuration the project had a missing server and prompted
me to select another where I could choose Tomcat. if I open the
<project-dir>/nbproject/project.properties I also see j2ee.server.type=Tomcat.
which was also the original setting before I tried Glassfish confirmed by git
versioning.
Now I could go through the same steps again like previously which may resolve
this case again. Not entirely sure if I recollect the exact steps but it was
switching Netbeans default platform JDK 11 back to JDK 1.8 which is no longer
supported with latest version of Netbeans (12.6) I have been told in another
support ticket. Before I try to resolve it the same way I thought to report
this once more to you if you feel like looking into this. Can not reproduce
this problem with a new Ant EJB module project so it likely has something to do
with inherited project properties from an earlier Netbeans version.
> 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
> Assignee: Arnaud Kleinveld
> Priority: Minor
> Fix For: 12.6
>
> 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