warning: [options] bootstrap class path not set in conjunction with -source 8

My JDK8 NetBeans project has the following warning. warning: [options] bootstrap class path not set in conjunction with -source 8 However, my code is building successfully! Can someone help with why this issue is happening?

1

1 Answer

also note Ant javac task now supports this option.

"release Specify the value for the --release switch. When set and running on JDK 9+ the source and target attributes as well as the bootclasspath will be ignored. Since Ant 1.9.8. Required? No, ignored when running on JDK 8 or earlier"

For example, can replace source="1.8" and target="1.8" entries with a single release="8" entry. Note that release attribute has different values (no prefix "1." used).

Note also that this will fail if Ant 1.9 (or better) isn't available.

This can't be used in IDE-provided build files in the nbproject subdirectory, where build files have an explicit warning not to be edited.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like