I have a simple maven NB module; ON trying to run the module, I get the following error
Error occurred during initialization of boot layer java.lang.module.FindException: Module jdk.jshell not found (Full log attached - nb-mvn-error.txt) I cannot launch JShell from Tools | OPen Java Platform sheel. The error is VM initialization failed (Full log attached - nb-jshell-error.txt) Environment *Product Version:* Apache NetBeans IDE 12.3 *Java:* 11; OpenJDK 64-Bit Server VM 11+28 *Runtime:* OpenJDK Runtime Environment 11+28 *System:* Mac OS X version 10.16 running on x86_64; UTF-8; en_IN (nb) Things Checked. 1. <nb-install-location>/etc/netbeans.conf - the flag to add jdk.jshell is present 2. Checked Java Platform in NB - the jdk.jshell is present 3. Normal maven, Ant applications can be run without any problem 4. Ant NetBeans module can be run 5. Tried with clean userdir and cachedir 6. Maven NetBeans module does not work. 7. Same issue with Java 12, 13 too. Can you suggest what steps I can take to further diagnose or resolve the problem please? *Cheers* Mani/Naren/Iyer *The trick of walking on water is knowing where the stones are.*
cd <maven nb project>; JAVA_HOME=<userhome>/dev/jdk-11+28.jdk/Contents/Home <userhome>/dev/netbeans/java/maven/bin/mvn nbm:cluster nbm:run-ide Scanning for projects... Inspecting build with total of 1 modules... Installing Nexus Staging features: ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin ----------------< <poject-package>:<Project name >---------------- Building project --------------------------------[ nbm ]--------------------------------- --- nbm-maven-plugin:4.3:cluster (default-cli) @ NB-Certmgr --- Copying 3 files to <userhome>/<maven nb project>target/netbeans_clusters Created NetBeans module cluster(s) at <userhome>/<maven nb project>target/netbeans_clusters --- nbm-maven-plugin:4.3:run-ide (default-cli) @ NB-Certmgr --- Additional arguments=null --userdir <userhome>/<maven nb project>target/userdir -J-Dnetbeans.logger.console=true -J-ea Executing: /bin/sh -c '<userhome>/dev/netbeans/bin/netbeans' '--userdir' '<userhome>/<maven nb project>target/userdir' '-J-Dnetbeans.logger.console=true' '-J-ea' Error occurred during initialization of boot layer java.lang.module.FindException: Module jdk.jshell not found Error occurred during initialization of boot layer java.lang.module.FindException: Module jdk.jshell not found ------------------------------------------------------------------------ BUILD SUCCESS ------------------------------------------------------------------------ Total time: 3.242 s Finished at: 2021-07-01T14:23:35+05:30 ------------------------------------------------------------------------
| 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: <userhome>/dev/jdk-11+28.jdk/Contents/Home/bin/java -classpath <userhome>/dev/netbeans/java/modules/ext/nb-mod-jshell-probe.jar: -Xdebug -Xrunjdwp:transport=dt_socket,address=msivasub-macpro-01:54899,suspend=y org.netbeans.lib.jshell.agent.AgentWorker 54898 @ com.sun.jdi.CommandLineLaunch (defaults: home=<userhome>/dev/jdk-11+28.jdk/Contents/Home, options=, main=, suspend=true, quote=", vmexec=java) -- {home=home=<userhome>/dev/jdk-11+28.jdk/Contents/Home, options=options=-classpath <userhome>/dev/netbeans/java/modules/ext/nb-mod-jshell-probe.jar:, main=main=org.netbeans.lib.jshell.agent.AgentWorker 54898, 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: <userhome>/dev/jdk-11+28.jdk/Contents/Home/bin/java -classpath <userhome>/dev/netbeans/java/modules/ext/nb-mod-jshell-probe.jar: -Xdebug -Xrunjdwp:transport=dt_socket,address=msivasub-macpro-01:54899,suspend=y org.netbeans.lib.jshell.agent.AgentWorker 54898 @ com.sun.jdi.CommandLineLaunch (defaults: home=<userhome>/dev/jdk-11+28.jdk/Contents/Home, options=, main=, suspend=true, quote=", vmexec=java) -- {home=home=<userhome>/dev/jdk-11+28.jdk/Contents/Home, options=options=-classpath <userhome>/dev/netbeans/java/modules/ext/nb-mod-jshell-probe.jar:, main=main=org.netbeans.lib.jshell.agent.AgentWorker 54898, suspend=suspend=true, quote=quote=", vmexec=vmexec=java} | caused by: com.sun.jdi.connect.VMStartException: VM initialization failed for: <userhome>/dev/jdk-11+28.jdk/Contents/Home/bin/java -classpath <userhome>/dev/netbeans/java/modules/ext/nb-mod-jshell-probe.jar: -Xdebug -Xrunjdwp:transport=dt_socket,address=msivasub-macpro-01:54899,suspend=y org.netbeans.lib.jshell.agent.AgentWorker 54898 | caused by: VM initialization failed for: <userhome>/dev/jdk-11+28.jdk/Contents/Home/bin/java -classpath <userhome>/dev/netbeans/java/modules/ext/nb-mod-jshell-probe.jar: -Xdebug -Xrunjdwp:transport=dt_socket,address=msivasub-macpro-01:54899,suspend=y org.netbeans.lib.jshell.agent.AgentWorker 54898 ->
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists