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

Thomas Schapitz edited comment on NETBEANS-6345 at 1/17/22, 11:59 AM:
----------------------------------------------------------------------

The line

{{   warning: [options] bootstrap class path not set in conjunction with 
-source nnn}}

is indeed a hint issued by the compiler, telling you that the JDK used for 
compiling is not JDK 1.8.

So what ever JDK you use for running Netbeans, if you want to build for JDK 8, 
it's easiest (if not best) to use JDK 8 to compile - which you would do as 
described above in the project properties.

If you are unsure, what is happening there, and familiar with ant, you may use

    . $HOME/.ant/ant.conf

or

    . "$HOME/.antrc"

to get some debugging information. These are callback scripts, that can be 
placed into your home directory. They will be called by the shell script, that 
wraps the jvm-call to of ant, and my be used to influence ants environment 
before the call.

If none of it exists, create one of it. Add the following line at the end of it:

     $ANT_OPTS="$ANT_OPTS -XshowSettings"

This would cause the java command within the ant start script to dump its 
initial settings to the console, so you may see, what is happening there. You 
may also add some thing like 

 echo "**** executing $0 *****"

in order to be sure, that it actually gets invoked.

Note, that this particular things has nothing to do with Netbeans, it is an Ant 
thing.


was (Author: taps):
The line

{{   warning: [options] bootstrap class path not set in conjunction with 
-source nnn}}

is indeed a hint issued by the compiler, telling you that the JDK used for 
compiling is not JDK 1.8.

So what ever JDK you use for running Netbeans, if you want to build for JDK 8, 
it's easiest (if not best) to use JDK 8 to compile - which you would do as 
described above in the project properties.

If you are unsure, what is happening there, and familiar with ant, you may use

    . $HOME/.ant/ant.conf

or

    . "$HOME/.antrc"

to get some debugging information. If none of it exists, create one of it. Add 
the line:

     $ANT_OPTS="$ANT_OPTS -XshowSettings" 

This would cause the java command within the ant start script to dump its 
initial settings to the console, so you may see, what is happening there.

> 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
>             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: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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

Reply via email to