Using Java Incubator features in NetBeans RCP Application

stephen cumminger <[email protected]> Wed, 22 Oct 2025 13:27:41 +0000
Newsgroups gmane.comp.java.ide.netbeans.user
Message-ID <YQBPR0101MB440162EC9B41C12E4D7DC57C83F3A@YQBPR0101MB4401.CANPRD01.PROD.OUTLOOK.COM>
Has anyone gotten Incubator features working in a NetBeans RCP app? I am using NB20 and getting compile errors that can't be resolved. Specifically I am trying to use jdk.incubator.vector to access faster SIMD instructions.

In the module where I am trying to use this, I have the following in its project.properties file:
javac.compilerargs=-Xlint -Xlint:-serial --enable-preview --add-modules jdk.incubator.vector

I also have in the project.properties file for the master project as

run.args.extra ... -J--enable-preview -J--add-modules=jdk.incubator.vector

I've gotten several suggestions via Google, but I think I am looking for a way to get NetBeans to fully compile and allow to run with these incubator features.

Any suggestions?