Sohila5 opened a new issue, #6692:
URL: https://github.com/apache/netbeans/issues/6692

   ### Apache NetBeans version
   
   Apache NetBeans 19
   
   ### What happened
   
   i was trying to run the j shell for a project that I works on  and the 
project is workers perfectly fine and  I was trying to use j shell  and this 
error keeps showing up and its very annoying I tried clean and built for the 
project and checked for any ide update and restarted the app many times and 
nothing worked   and this is the error message 
   
![image](https://github.com/apache/netbeans/assets/114446710/2e401f93-d349-4d1c-acae-dc657cd14871)
    
    : 
    Could not initialize JShell: Launching JShell execution engine threw: 
Failed remote launch: java.util.concurrent.ExecutionException: 
com.sun.jdi.connect.VMStartException: VM initialization failed for: C:\Program 
Files\Java\jdk-17.0.1\bin\java -classpath C:\Program 
Files\NetBeans-19\netbeans\java\modules\ext\nb-mod-jshell-probe.jar;D:\javaj\mavenproject1\target\classes
 --add-modules jdk.jshell,mavenproject1 --add-reads jdk.jshell=ALL-UNNAMED 
--add-exports mavenproject1/com.mycompany.mavenproject1=ALL-UNNAMED -Xdebug 
-Xrunjdwp:transport=dt_shmem,address=javadebug14027,suspend=y 
org.netbeans.lib.jshell.agent.AgentWorker 57728 @ com.sun.jdi.CommandLineLaunch 
(defaults: home=C:\Program Files\Java\jdk-17.0.1, options=, main=, 
suspend=true, quote=", vmexec=java) -- {home=home=C:\Program 
Files\Java\jdk-17.0.1, options=options=-classpath "C:\Program 
Files\NetBeans-19\netbeans\java\modules\ext\nb-mod-jshell-probe.jar;D:\javaj\mavenproject1\target\classes"
 --add-modules jdk.jshell,mavenproj
 ect1 --add-reads jdk.jshell=ALL-UNNAMED --add-exports 
mavenproject1/com.mycompany.mavenproject1=ALL-UNNAMED, 
main=main=org.netbeans.lib.jshell.agent.AgentWorker 57728, 
suspend=suspend=true, quote=quote=", vmexec=vmexec=java}
   |    caused by: Failed remote launch: 
java.util.concurrent.ExecutionException: com.sun.jdi.connect.VMStartException: 
VM initialization failed for: C:\Program Files\Java\jdk-17.0.1\bin\java 
-classpath C:\Program 
Files\NetBeans-19\netbeans\java\modules\ext\nb-mod-jshell-probe.jar;D:\javaj\mavenproject1\target\classes
 --add-modules jdk.jshell,mavenproject1 --add-reads jdk.jshell=ALL-UNNAMED 
--add-exports mavenproject1/com.mycompany.mavenproject1=ALL-UNNAMED -Xdebug 
-Xrunjdwp:transport=dt_shmem,address=javadebug14027,suspend=y 
org.netbeans.lib.jshell.agent.AgentWorker 57728 @ com.sun.jdi.CommandLineLaunch 
(defaults: home=C:\Program Files\Java\jdk-17.0.1, options=, main=, 
suspend=true, quote=", vmexec=java) -- {home=home=C:\Program 
Files\Java\jdk-17.0.1, options=options=-classpath "C:\Program 
Files\NetBeans-19\netbeans\java\modules\ext\nb-mod-jshell-probe.jar;D:\javaj\mavenproject1\target\classes"
 --add-modules jdk.jshell,mavenproject1 --add-reads jdk.jshell=ALL-UNNAMED 
--add-exports ma
 venproject1/com.mycompany.mavenproject1=ALL-UNNAMED, 
main=main=org.netbeans.lib.jshell.agent.AgentWorker 57728, 
suspend=suspend=true, quote=quote=", vmexec=vmexec=java}
   |    caused by: com.sun.jdi.connect.VMStartException: VM initialization 
failed for: C:\Program Files\Java\jdk-17.0.1\bin\java -classpath C:\Program 
Files\NetBeans-19\netbeans\java\modules\ext\nb-mod-jshell-probe.jar;D:\javaj\mavenproject1\target\classes
 --add-modules jdk.jshell,mavenproject1 --add-reads jdk.jshell=ALL-UNNAMED 
--add-exports mavenproject1/com.mycompany.mavenproject1=ALL-UNNAMED -Xdebug 
-Xrunjdwp:transport=dt_shmem,address=javadebug14027,suspend=y 
org.netbeans.lib.jshell.agent.AgentWorker 57728
   |    caused by: VM initialization failed for: C:\Program 
Files\Java\jdk-17.0.1\bin\java -classpath C:\Program 
Files\NetBeans-19\netbeans\java\modules\ext\nb-mod-jshell-probe.jar;D:\javaj\mavenproject1\target\classes
 --add-modules jdk.jshell,mavenproject1 --add-reads jdk.jshell=ALL-UNNAMED 
--add-exports mavenproject1/com.mycompany.mavenproject1=ALL-UNNAMED -Xdebug 
-Xrunjdwp:transport=dt_shmem,address=javadebug14027,suspend=y 
org.netbeans.lib.jshell.agent.AgentWorker 57728
   
   
   
   ### How to reproduce
   
   _No response_
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   widows 11 pro  developer insider preview build 23580
   
   ### JDK
   
   jdk 17.0.1
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to