[ https://issues.apache.org/jira/browse/NETBEANS-4102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17184068#comment-17184068 ]
dennis lucero commented on NETBEANS-4102: ----------------------------------------- If the workaround is known, it is relatively easy. Otherwise it can be very confusing. I was working on code depending on -Djavax.net.ssl.trustStore. For testing, I created a new main class. I could not get it to work until I confused the shortcuts of "Run file" and "Run project". Just by chance this was in a project which had not set a main class yet, otherwise I would have not selected my new class as the project’s main class. When running the class as the project’s main class, my code was running successfully. The next day, after installing updates which required a reboot, the new class was not set as the project’s main class anymore (as I told NetBeans to not store that setting permanently). I then used the "Run file" action again and everything was broken again. As the code was interacting with remote servers and I had not changed my code, I thought the servers’ configuration changed in the meantime. This led to very time-consuming debugging until I finally figured out the cause. > VM Options not passed to Maven exec.args > ---------------------------------------- > > Key: NETBEANS-4102 > URL: https://issues.apache.org/jira/browse/NETBEANS-4102 > Project: NetBeans > Issue Type: Bug > Affects Versions: 11.3 > Reporter: Vedran > Priority: Minor > > VM options are not passed to Maven exec.args when trying to run application > by clicking on a single file(contains main method to run the whole project) > in a Project explorer and then clicking file run when not in Favourties > window. > This also does not work if trying to run application by clicking file run > when on file opened in editor. > Only clicking run on the project level in Project explorer works ok. > I noticed this when i was trying to run app which contained preview features > and --enable-preview flag was not passed to Maven exec.args. > Detailed info can be found under NETBEANS-4034 issue. > -- 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