[ https://issues.apache.org/jira/browse/NETBEANS-4034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17073602#comment-17073602 ]
Vedran commented on NETBEANS-4034: ---------------------------------- I investigated a little bit more: this is the command NetBeans outputs on run file: JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-14.jdk/Contents/Home M2_HOME=/usr/local/Cellar/maven/3.6.3_1 /usr/local/Cellar/maven/3.6.3_1/bin/mvn "-Dexec.args=-classpath %classpath hr.vs.mavenproject7.A" -Dexec.executable=/Library/Java/JavaVirtualMachines/jdk-14.jdk/Contents/Home/bin/java -Dexec.classpathScope=runtime --update-snapshots -U process-classes org.codehaus.mojo:exec-maven-plugin:1.5.0:exec It is visible that exec.args is missing --enable-preview option. nbaction.xml config contains that option: <?xml version="1.0" encoding="UTF-8"?> <actions> <action> <actionName>run</actionName> <packagings> <packaging>jar</packaging> </packagings> <goals> <goal>process-classes</goal> <goal>org.codehaus.mojo:exec-maven-plugin:1.5.0:exec</goal> </goals> <properties> <exec.args>--enable-preview -classpath %classpath ${packageClassName}</exec.args> <exec.executable>java</exec.executable> </properties> </action> <action> <actionName>debug</actionName> <packagings> <packaging>jar</packaging> </packagings> <goals> <goal>process-classes</goal> <goal>org.codehaus.mojo:exec-maven-plugin:1.5.0:exec</goal> </goals> <properties> <exec.args>--enable-preview -agentlib:jdwp=transport=dt_socket,server=n,address=${jpda.address} -classpath %classpath ${packageClassName}</exec.args> <exec.executable>java</exec.executable> <jpda.listen>true</jpda.listen> </properties> </action> <action> <actionName>profile</actionName> <packagings> <packaging>jar</packaging> </packagings> <goals> <goal>process-classes</goal> <goal>org.codehaus.mojo:exec-maven-plugin:1.5.0:exec</goal> </goals> <properties> <exec.args>--enable-preview -classpath %classpath ${packageClassName}</exec.args> <exec.executable>java</exec.executable> </properties> </action> </actions> > --enable-preview + VM Options problem on MacOS > ---------------------------------------------- > > Key: NETBEANS-4034 > URL: https://issues.apache.org/jira/browse/NETBEANS-4034 > Project: NetBeans > Issue Type: Bug > Components: java - Compiler, java - Editor > Affects Versions: 11.3 > Environment: Product Version: Apache NetBeans IDE 11.3 > Java: 14; OpenJDK 64-Bit Server VM 14+36-1461 > Runtime: OpenJDK Runtime Environment 14+36-1461 > System: Mac OS X version 10.15.3 running on x86_64; UTF-8; en_GB (nb) > Reporter: Vedran > Priority: Blocker > > Whatever i do i can't enable preview features in NetBeans. I also see hint > 'Text block may not be supported'. I uninstalled nb-javac and i am running > NetBeans on JDK 14. I also cleared cache. I can see that --enable-preview > flag is set in pom.xml and in VM Options. > In terminal, java --enable-preview --source 14 A.java executes as expected. > What i also noticed in previous versions of NetBeans is that VM Options > configured under Run are not passed to Maven. > What am i missing? -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- 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