This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Attempt to start JavaShell for JDK9 project (JDK0 EA b160). See attachment for full stack trace INFO [org.netbeans.modules.jshell.support.ShellSession]: 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/com.sun.tools.jdi.AbstractLauncher$Helper.launchAndAccept(AbstractLauncher.java:193) at jdk.jdi/com.sun.tools.jdi.AbstractLauncher.launch(AbstractLauncher.java:132) at jdk.jdi/com.sun.tools.jdi.SunCommandLineLauncher.launch(SunCommandLineLauncher.java:225) at jdk.jshell/jdk.jshell.execution.JdiInitiator.lambda$launchTarget$0(JdiInitiator.java:135) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1161) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:844)
Created attachment 163861 [details] Jshell error output
Reproduced under the condition that the application has not been build (its JAR was not produced or was removed during clean)
JShell starts build and executes jshell after the project successfully builds - so that the project artifacts are in place - implemnted in jet-main#c6e60de6786b
Integrated into 'main-silver', will be available in build *201703180002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/c6e60de6786b User: Svata Dedic <sdedic@netbeans.org> Log: #270090: JShell runs after build project successfully completes