[ https://issues.apache.org/jira/browse/NETBEANS-2443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17413907#comment-17413907 ]
Bernard commented on NETBEANS-2443: ----------------------------------- With IDE 12.4 on Windows, if I extract and run it in a directory without spaces, then with bundled Maven I get a different error "The syntax of the command is incorrect.". But then at least I can get around this error by using the older Maven version 3.3.9. So we have TWO issues. At least one is a Maven issue. I also remember this vaguely from about a year ago because I used this workaround then with IDE 12.3 I think. From my notes then (sorry I am getting tired, have to go back to sleep): https://issues.maven.apache.narkive.com/u1YebYNI/jira-created-mng-6385-windows-mvn-cmd-fail-with-incorrect-command-syntax [https://stackoverflow.com/questions/13756224/splitting-the-parameter-in-a-batch-file-multiple-times/13779820#13779820] This is the sort of thing that happens if one lets things slip for too long. Total meltdown. I would suggest to create a blocking dependency such as NOT to ship a Windows installer until it is verified that the profiler works WITH THE BUNDLED MAVEN VERSION. In other words this has to be escalated and cannot be dealt with purely by looking at the profiler alone. > Can't start profiler > -------------------- > > Key: NETBEANS-2443 > URL: https://issues.apache.org/jira/browse/NETBEANS-2443 > Project: NetBeans > Issue Type: Bug > Components: profiler - Attach, profiler - Base, profiler - Engine, > profiler - IDE > Affects Versions: 11.0, 12.3, 12.4 > Environment: Windows 10 > NetBeans 11 using Java 12 (tried with 8 also) > Reporter: HenryDL > Priority: Blocker > Labels: pull-request-available > Attachments: image-2020-07-06-19-01-34-316.png, > image-2021-07-21-02-56-43-096.png, image-2021-07-21-02-57-38-437.png, > image-2021-07-21-02-58-15-148.png, image-2021-07-21-02-59-19-737.png, > image-2021-07-21-02-59-42-180.png, image-2021-07-21-03-01-40-283.png, > image-2021-07-21-03-02-51-206.png, image-2021-07-21-03-03-15-783.png, > image-2021-07-21-03-04-15-005.png, image-2021-07-21-03-05-35-690.png > > Time Spent: 4h 10m > Remaining Estimate: 0h > > I'm not able to start the NetBeans Profiler for Maven projects. > *Recreate:* > # Create a new Maven Java Application using the IDE. > # Using the IDE add a new JFrame file (it contains a main method that simply > opens the a new JFrame). > # Right-click the new project and select _Profile_. > # This opens a Profiler tab. Do the calibration, then press the Profile > button at the top of the tab. A _Progress_ popup appears thatgets stuck on > the message "Connecting to the target VM...". The _Output_ tab shows a > message: "The syntax of the command is incorrect.". > *Error (in Output tab):* > {noformat} > cd C:\_Code\TEMP_CODE\mavenproject1; "JAVA_HOME=C:\\Program > Files\\Java\\jdk-12" M2_HOME=C:\\_Code\\_TOOLS\\apache-maven-3.6.0 cmd /c > "\"\"C:\\_Code\\_TOOLS\\apache-maven-3.6.0\\bin\\mvn.cmd\" > -Dexec.args=\"-agentpath:\\\"C:/_Code/_TOOLS/netbeans > 11.0/profiler/lib/deployed/jdk16/windows-amd64/profilerinterface.dll\\\"=\\\"C:\\_Code\\_TOOLS\\netbeans > 11.0\\profiler\\lib\\\",5140,10 -XX:+HeapDumpOnOutOfMemoryError > -XX:HeapDumpPath=C:\\Users\\Henry\\AppData\\Local\\NetBeans\\Cache\\11.0\\mavencachedirs\\645799279\\org-netbeans-modules-profiler > -classpath %classpath com.mycompany.mavenproject1.NewJFrame\" > -Dexec.executable=\"C:\\Program Files\\Java\\jdk-12\\bin\\java.exe\" > -Dmaven.ext.class.path=\"C:\\_Code\\_TOOLS\\netbeans > 11.0\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 > process-classes org.codehaus.mojo:exec-maven-plugin:1.5.0:exec\"" > The syntax of the command is incorrect. > {noformat} -- 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