error: option -Xbootclasspath/p: not allowed with target 12 (Netbeans 11.0)

Solution 1:

To compile the project on JDK12, simply set empty value to endorsed.classpath= at project.properties file.

Solution 2:

-Xbootclasspath and -Xbootclasspath/p: (prepend) were removed in JDK9. You can still use -Xbootclasspath/a: to append stuff to the bootstrap class path.

Solution 3:

I changed the

-Xbootclasspath/p   

to

-J-Xbootclasspath/a

It's working for me.