Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 270090 - JShell does not start: com.sun.jdi.connect.VMStartException: VM initialization failed
JShell does not start: com.sun.jdi.connect.VMStartException: VM initializatio...
Product: java
Classification: Unclassified
Component: JShell
PC Linux
: P1 (vote)
: Dev
Assigned To: Svata Dedic
Depends on:
  Show dependency treegraph
Reported: 2017-03-16 12:18 UTC by Martin Balin
Modified: 2017-03-18 02:57 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT

Jshell error output (6.43 KB, text/plain)
2017-03-16 12:20 UTC, Martin Balin

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Balin 2017-03-16 12:18:17 UTC
Attempt to start JavaShell for JDK9 project (JDK0 EA b160).
See attachment for full  stack trace
INFO []: Error in JSHell
com.sun.jdi.connect.VMStartException: VM initialization failed for: /home/martin/jdk-9-b160/bin/java -classpath /home/martin/netbeans/jet-main/nbbuild/netbeans/java/modules/ext/nb-mod-jshell-probe.jar:/home/martin/NetBeansProjects/JavaApplication4/build/classes --add-modules JavaApplication4,jdk.jshell --add-reads jdk.jshell=ALL-UNNAMED --add-exports JavaApplication4/javaapplication4=ALL-UNNAMED --module-path /home/martin/NetBeansProjects/JavaApplication4/build/classes -Xdebug -Xrunjdwp:transport=dt_socket,address=mbalin-ubuntu:44106,suspend=y org.netbeans.lib.jshell.agent.AgentWorker 34024
	at jdk.jdi/$Helper.launchAndAccept(
	at jdk.jdi/
	at jdk.jdi/
	at jdk.jshell/jdk.jshell.execution.JdiInitiator.lambda$launchTarget$0(
	at java.base/
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.base/java.util.concurrent.ThreadPoolExecutor$
	at java.base/
Comment 1 Martin Balin 2017-03-16 12:20:07 UTC
Created attachment 163861 [details]
Jshell error output
Comment 2 Svata Dedic 2017-03-16 14:26:44 UTC
Reproduced under the condition that the application has not been build (its JAR was not produced or was removed during clean)
Comment 3 Svata Dedic 2017-03-16 15:40:06 UTC
JShell starts build and executes jshell after the project successfully builds - so that the project artifacts are in place - implemnted in jet-main#c6e60de6786b
Comment 4 Quality Engineering 2017-03-18 02:57:49 UTC
Integrated into 'main-silver', will be available in build *201703180002* on (upload may still be in progress)

User: Svata Dedic <>
Log: #270090: JShell runs after build project successfully completes

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo