[jira] [Commented] (NETBEANS-1131) "Execute Java Shell" fails when in a non-modular project

2018-08-12 Thread M. Eric DeFazio (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16577615#comment-16577615
 ] 

M. Eric DeFazio commented on NETBEANS-1131:
---

What I am doing now, that DOES work:

!working_mod_jshell.png!

If I have a Java Modular Project (draft-mod) with a single module and some 
libraries on the module-path

(I can right click/run "Execute Java Shell" fine in this)

I have another Java Modular project (draft_user) that has a dependency on 
(draft-mod) and the libraries

!Module_path.png!

(I can right click/run  "Execute Java Shell" fine with this)

So, in short, *_perhaps right clicking on a (non-modular project) and 
"Executing Java Shell" is not intended to work_* (although I would have thought 
it would just take the jars and put them on the classpath like I did manually 
in the console)  

If everything is using the full Module Path, that seems to carry over into the 
JShell Console and it works

but right clicking and running from a non modular project (maven project, Java 
Application) doesnt seem to work
JShell console fails on startup 

 

> "Execute Java Shell" fails when in a non-modular project
> 
>
> Key: NETBEANS-1131
> URL: https://issues.apache.org/jira/browse/NETBEANS-1131
> Project: NetBeans
>  Issue Type: Bug
>  Components: apisupport - Project
>Affects Versions: 9.0
> Environment: Product Version: Apache NetBeans IDE 9.0 (Build 
> incubator-netbeans-release-334-on-20180708)
> Java: 10.0.2; Java HotSpot(TM) 64-Bit Server VM 10.0.2+13
> Runtime: Java(TM) SE Runtime Environment 10.0.2+13
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
> User directory: C:\Users\Eric\AppData\Roaming\NetBeans\9.0
> Cache directory: C:\Users\Eric\AppData\Local\NetBeans\Cache\9.0
>Reporter: M. Eric DeFazio
>Priority: Major
> Attachments: JShellConsole.png, MavenJShellProjError.png, 
> Maven_JShell_Netbeans.png, Module_path.png, NetbeansShellError.png, 
> working_mod_jshell.png
>
>
> I can use the "Execute Java Shell" option when right clicking on a Module 
> Project
> BUT, when I have another project that depends on the Modular project, if I 
> try the "Execute Java Shell" option I get the following failure:
> {{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-10.0.2\bin\java -classpath 
> C:\Users\Eric\Downloads\incubating-netbeans-java-9.0-bin\netbeans\java\modules\ext\nb-mod-jshell-probe.jar;C:\Users\Eric\Documents\NetBeansProjects\ModProj\dist\M.jar;C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes
>  --add-modules M,jdk.jshell --add-reads jdk.jshell=ALL-UNNAMED --module-path 
> C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes -Xdebug 
> -Xrunjdwp:transport=dt_shmem,address=javadebug2032,suspend=y 
> org.netbeans.lib.jshell.agent.AgentWorker 63903 @ 
> com.sun.jdi.CommandLineLaunch (defaults: home=C:\Program 
> Files\Java\jdk-10.0.2, options=, main=, suspend=true, quote=", vmexec=java) 
> -- \{home=home=C:\Program Files\Java\jdk-10.0.2, options=options=-classpath 
> C:\Users\Eric\Downloads\incubating-netbeans-java-9.0-bin\netbeans\java\modules\ext\nb-mod-jshell-probe.jar;C:\Users\Eric\Documents\NetBeansProjects\ModProj\dist\M.jar;C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes
>  --add-modules M,jdk.jshell --add-reads jdk.jshell=ALL-UNNAMED --module-path 
> C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes, 
> main=main=org.netbeans.lib.jshell.agent.AgentWorker 63903, 
> 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-10.0.2\bin\java -classpath 
> C:\Users\Eric\Downloads\incubating-netbeans-java-9.0-bin\netbeans\java\modules\ext\nb-mod-jshell-probe.jar;C:\Users\Eric\Documents\NetBeansProjects\ModProj\dist\M.jar;C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes
>  --add-modules M,jdk.jshell --add-reads jdk.jshell=ALL-UNNAMED --module-path 
> C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes -Xdebug 
> -Xrunjdwp:transport=dt_shmem,address=javadebug2032,suspend=y 
> org.netbeans.lib.jshell.agent.AgentWorker 63903 @ 
> com.sun.jdi.CommandLineLaunch (defaults: home=C:\Program 
> Files\Java\jdk-10.0.2, options=, main=, suspend=true, quote=", vmexec=java) 
> -- \{home=home=C:\Program Files\Java\jdk-10.0.2, options=options=-classpath 
> C:\Users\Eric\Downloads\incubating-netbeans-java-9.0-bin\netbeans\java\modules\ext\nb-mod-jshell-probe.jar;C:\Us

[jira] [Commented] (NETBEANS-1131) "Execute Java Shell" fails when in a non-modular project

2018-08-11 Thread M. Eric DeFazio (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16577374#comment-16577374
 ] 

M. Eric DeFazio commented on NETBEANS-1131:
---

OK, just so you don't think I'm crazy

!JShellConsole.png!

this works fine here I've:
1) tested that JShell starts fine by compiling/adding to it's -c classpath
2) imported/ran a script using a class 

Here I created a netbeans project, (this time a maven project), added the same 
jar (from maven)
!Maven_JShell_Netbeans.png!

...can't start Jshell if I try to execute commands it blows up (cannot 
execute)

!MavenJShellProjError.png!

to reproduce:

1)create a Maven Project (mavenDraft)

2) add this to the POM

 
 
 com.github.javaparser
 javaparser-core
 3.6.12
  
 

3) ...build project

4) right click on the project "Execute Java Shell"

(get exception as mentioned in the original bug report)

 

> "Execute Java Shell" fails when in a non-modular project
> 
>
> Key: NETBEANS-1131
> URL: https://issues.apache.org/jira/browse/NETBEANS-1131
> Project: NetBeans
>  Issue Type: Bug
>  Components: apisupport - Project
>Affects Versions: 9.0
> Environment: Product Version: Apache NetBeans IDE 9.0 (Build 
> incubator-netbeans-release-334-on-20180708)
> Java: 10.0.2; Java HotSpot(TM) 64-Bit Server VM 10.0.2+13
> Runtime: Java(TM) SE Runtime Environment 10.0.2+13
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
> User directory: C:\Users\Eric\AppData\Roaming\NetBeans\9.0
> Cache directory: C:\Users\Eric\AppData\Local\NetBeans\Cache\9.0
>Reporter: M. Eric DeFazio
>Priority: Major
> Attachments: JShellConsole.png, MavenJShellProjError.png, 
> Maven_JShell_Netbeans.png, NetbeansShellError.png
>
>
> I can use the "Execute Java Shell" option when right clicking on a Module 
> Project
> BUT, when I have another project that depends on the Modular project, if I 
> try the "Execute Java Shell" option I get the following failure:
> {{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-10.0.2\bin\java -classpath 
> C:\Users\Eric\Downloads\incubating-netbeans-java-9.0-bin\netbeans\java\modules\ext\nb-mod-jshell-probe.jar;C:\Users\Eric\Documents\NetBeansProjects\ModProj\dist\M.jar;C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes
>  --add-modules M,jdk.jshell --add-reads jdk.jshell=ALL-UNNAMED --module-path 
> C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes -Xdebug 
> -Xrunjdwp:transport=dt_shmem,address=javadebug2032,suspend=y 
> org.netbeans.lib.jshell.agent.AgentWorker 63903 @ 
> com.sun.jdi.CommandLineLaunch (defaults: home=C:\Program 
> Files\Java\jdk-10.0.2, options=, main=, suspend=true, quote=", vmexec=java) 
> -- \{home=home=C:\Program Files\Java\jdk-10.0.2, options=options=-classpath 
> C:\Users\Eric\Downloads\incubating-netbeans-java-9.0-bin\netbeans\java\modules\ext\nb-mod-jshell-probe.jar;C:\Users\Eric\Documents\NetBeansProjects\ModProj\dist\M.jar;C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes
>  --add-modules M,jdk.jshell --add-reads jdk.jshell=ALL-UNNAMED --module-path 
> C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes, 
> main=main=org.netbeans.lib.jshell.agent.AgentWorker 63903, 
> 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-10.0.2\bin\java -classpath 
> C:\Users\Eric\Downloads\incubating-netbeans-java-9.0-bin\netbeans\java\modules\ext\nb-mod-jshell-probe.jar;C:\Users\Eric\Documents\NetBeansProjects\ModProj\dist\M.jar;C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes
>  --add-modules M,jdk.jshell --add-reads jdk.jshell=ALL-UNNAMED --module-path 
> C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes -Xdebug 
> -Xrunjdwp:transport=dt_shmem,address=javadebug2032,suspend=y 
> org.netbeans.lib.jshell.agent.AgentWorker 63903 @ 
> com.sun.jdi.CommandLineLaunch (defaults: home=C:\Program 
> Files\Java\jdk-10.0.2, options=, main=, suspend=true, quote=", vmexec=java) 
> -- \{home=home=C:\Program Files\Java\jdk-10.0.2, options=options=-classpath 
> C:\Users\Eric\Downloads\incubating-netbeans-java-9.0-bin\netbeans\java\modules\ext\nb-mod-jshell-probe.jar;C:\Users\Eric\Documents\NetBeansProjects\ModProj\dist\M.jar;C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes
>  --add-modules M,jdk.jshell --add-reads jdk.jshell=ALL-UNNAMED --module-path 
> C:\Users\Eric\Documents\NetBeansProjects\Java10App\

[jira] [Commented] (NETBEANS-1131) "Execute Java Shell" fails when in a non-modular project

2018-08-11 Thread Geertjan Wielenga (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16577305#comment-16577305
 ] 

Geertjan Wielenga commented on NETBEANS-1131:
-

A Java Modular Project is a very different thing to a Java Module Project. In 
NetBeans, any Java SE project is a Java Module Project if it contains a 
module-info.java source file. I suggest you close NetBeans for the moment. Then 
create the files and code you need as a simple hello world scenario and see if 
that works with the JDKs you want to use. After that open those projects or 
reconstruct them in NetBeans. 

> "Execute Java Shell" fails when in a non-modular project
> 
>
> Key: NETBEANS-1131
> URL: https://issues.apache.org/jira/browse/NETBEANS-1131
> Project: NetBeans
>  Issue Type: Bug
>  Components: apisupport - Project
>Affects Versions: 9.0
> Environment: Product Version: Apache NetBeans IDE 9.0 (Build 
> incubator-netbeans-release-334-on-20180708)
> Java: 10.0.2; Java HotSpot(TM) 64-Bit Server VM 10.0.2+13
> Runtime: Java(TM) SE Runtime Environment 10.0.2+13
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
> User directory: C:\Users\Eric\AppData\Roaming\NetBeans\9.0
> Cache directory: C:\Users\Eric\AppData\Local\NetBeans\Cache\9.0
>Reporter: M. Eric DeFazio
>Priority: Major
> Attachments: NetbeansShellError.png
>
>
> I can use the "Execute Java Shell" option when right clicking on a Module 
> Project
> BUT, when I have another project that depends on the Modular project, if I 
> try the "Execute Java Shell" option I get the following failure:
> {{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-10.0.2\bin\java -classpath 
> C:\Users\Eric\Downloads\incubating-netbeans-java-9.0-bin\netbeans\java\modules\ext\nb-mod-jshell-probe.jar;C:\Users\Eric\Documents\NetBeansProjects\ModProj\dist\M.jar;C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes
>  --add-modules M,jdk.jshell --add-reads jdk.jshell=ALL-UNNAMED --module-path 
> C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes -Xdebug 
> -Xrunjdwp:transport=dt_shmem,address=javadebug2032,suspend=y 
> org.netbeans.lib.jshell.agent.AgentWorker 63903 @ 
> com.sun.jdi.CommandLineLaunch (defaults: home=C:\Program 
> Files\Java\jdk-10.0.2, options=, main=, suspend=true, quote=", vmexec=java) 
> -- \{home=home=C:\Program Files\Java\jdk-10.0.2, options=options=-classpath 
> C:\Users\Eric\Downloads\incubating-netbeans-java-9.0-bin\netbeans\java\modules\ext\nb-mod-jshell-probe.jar;C:\Users\Eric\Documents\NetBeansProjects\ModProj\dist\M.jar;C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes
>  --add-modules M,jdk.jshell --add-reads jdk.jshell=ALL-UNNAMED --module-path 
> C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes, 
> main=main=org.netbeans.lib.jshell.agent.AgentWorker 63903, 
> 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-10.0.2\bin\java -classpath 
> C:\Users\Eric\Downloads\incubating-netbeans-java-9.0-bin\netbeans\java\modules\ext\nb-mod-jshell-probe.jar;C:\Users\Eric\Documents\NetBeansProjects\ModProj\dist\M.jar;C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes
>  --add-modules M,jdk.jshell --add-reads jdk.jshell=ALL-UNNAMED --module-path 
> C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes -Xdebug 
> -Xrunjdwp:transport=dt_shmem,address=javadebug2032,suspend=y 
> org.netbeans.lib.jshell.agent.AgentWorker 63903 @ 
> com.sun.jdi.CommandLineLaunch (defaults: home=C:\Program 
> Files\Java\jdk-10.0.2, options=, main=, suspend=true, quote=", vmexec=java) 
> -- \{home=home=C:\Program Files\Java\jdk-10.0.2, options=options=-classpath 
> C:\Users\Eric\Downloads\incubating-netbeans-java-9.0-bin\netbeans\java\modules\ext\nb-mod-jshell-probe.jar;C:\Users\Eric\Documents\NetBeansProjects\ModProj\dist\M.jar;C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes
>  --add-modules M,jdk.jshell --add-reads jdk.jshell=ALL-UNNAMED --module-path 
> C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes, 
> main=main=org.netbeans.lib.jshell.agent.AgentWorker 63903, 
> suspend=suspend=true, quote=quote=", vmexec=vmexec=java}}}
> {{| caused by: com.sun.jdi.connect.VMStartException: VM initialization failed 
> for: C:\Program Files\Java\jdk-10.0.2\bin\java -classpath 
> C:\Users\Eric\Downloads\incubating-netbeans-java-9.0-bin\netbeans\java\modules\ext

[jira] [Commented] (NETBEANS-1131) "Execute Java Shell" fails when in a non-modular project

2018-08-11 Thread M. Eric DeFazio (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16577288#comment-16577288
 ] 

M. Eric DeFazio commented on NETBEANS-1131:
---

First thing: Netbeans is a great tool, so please dont think Im just being a 
pain, (I'm more frustrated with the compatibility of the JPMS than netbeans, 
and the fact I was able to use JShell at all through the editor is a great 
addition and I enjoy using it) so thank you guys.



.. when I change the project (Java10App) and put the dependency on the 
ModulePath, and not the classpath, then the local class J10App doesnt compile.

FWIW I'm creating a library that I want to work in Java 8 or 9+ jar (And I also 
want the library to be usable in JShell) (modular or non-modular)

as it turns out I converted from IntelliJ to netbeans because (when I 
originally converted to Modules) I got Jshell to work the first time, and the 
"Execute Java Shell" option is super convenient

Anyways, thanks for being understanding, I think this is more an issue with the 
way the JPMS deals with libraries

Personally I wanted to avoid MAVEN because ... tooling bloat... but it sounds 
like (in order to get my library to work seemlessly in Java8 or 9+) I might 
have to do the OSGI hack as mentioned in Stephen Colebornes  blog 

http://blog.joda.org/2017/05/java-se-9-jpms-automatic-modules.html

(so that Java8 doesn't choke on parsing module-info)

 

> "Execute Java Shell" fails when in a non-modular project
> 
>
> Key: NETBEANS-1131
> URL: https://issues.apache.org/jira/browse/NETBEANS-1131
> Project: NetBeans
>  Issue Type: Bug
>  Components: apisupport - Project
>Affects Versions: 9.0
> Environment: Product Version: Apache NetBeans IDE 9.0 (Build 
> incubator-netbeans-release-334-on-20180708)
> Java: 10.0.2; Java HotSpot(TM) 64-Bit Server VM 10.0.2+13
> Runtime: Java(TM) SE Runtime Environment 10.0.2+13
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
> User directory: C:\Users\Eric\AppData\Roaming\NetBeans\9.0
> Cache directory: C:\Users\Eric\AppData\Local\NetBeans\Cache\9.0
>Reporter: M. Eric DeFazio
>Priority: Major
> Attachments: NetbeansShellError.png
>
>
> I can use the "Execute Java Shell" option when right clicking on a Module 
> Project
> BUT, when I have another project that depends on the Modular project, if I 
> try the "Execute Java Shell" option I get the following failure:
> {{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-10.0.2\bin\java -classpath 
> C:\Users\Eric\Downloads\incubating-netbeans-java-9.0-bin\netbeans\java\modules\ext\nb-mod-jshell-probe.jar;C:\Users\Eric\Documents\NetBeansProjects\ModProj\dist\M.jar;C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes
>  --add-modules M,jdk.jshell --add-reads jdk.jshell=ALL-UNNAMED --module-path 
> C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes -Xdebug 
> -Xrunjdwp:transport=dt_shmem,address=javadebug2032,suspend=y 
> org.netbeans.lib.jshell.agent.AgentWorker 63903 @ 
> com.sun.jdi.CommandLineLaunch (defaults: home=C:\Program 
> Files\Java\jdk-10.0.2, options=, main=, suspend=true, quote=", vmexec=java) 
> -- \{home=home=C:\Program Files\Java\jdk-10.0.2, options=options=-classpath 
> C:\Users\Eric\Downloads\incubating-netbeans-java-9.0-bin\netbeans\java\modules\ext\nb-mod-jshell-probe.jar;C:\Users\Eric\Documents\NetBeansProjects\ModProj\dist\M.jar;C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes
>  --add-modules M,jdk.jshell --add-reads jdk.jshell=ALL-UNNAMED --module-path 
> C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes, 
> main=main=org.netbeans.lib.jshell.agent.AgentWorker 63903, 
> 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-10.0.2\bin\java -classpath 
> C:\Users\Eric\Downloads\incubating-netbeans-java-9.0-bin\netbeans\java\modules\ext\nb-mod-jshell-probe.jar;C:\Users\Eric\Documents\NetBeansProjects\ModProj\dist\M.jar;C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes
>  --add-modules M,jdk.jshell --add-reads jdk.jshell=ALL-UNNAMED --module-path 
> C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes -Xdebug 
> -Xrunjdwp:transport=dt_shmem,address=javadebug2032,suspend=y 
> org.netbeans.lib.jshell.agent.AgentWorker 63903 @ 
> com.sun.jdi.CommandLineLaunch (defaults: home=C:\Program 
> Files\Java\jdk-10.0.2, options=, main=, suspend=true, quote=",

[jira] [Commented] (NETBEANS-1131) "Execute Java Shell" fails when in a non-modular project

2018-08-11 Thread Geertjan Wielenga (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16577278#comment-16577278
 ] 

Geertjan Wielenga commented on NETBEANS-1131:
-

Not sure if it makes sense to create a Java application that uses the classpath 
(i.e., that's what you have in step 8) and then depend on a Java Modular 
Project.

> "Execute Java Shell" fails when in a non-modular project
> 
>
> Key: NETBEANS-1131
> URL: https://issues.apache.org/jira/browse/NETBEANS-1131
> Project: NetBeans
>  Issue Type: Bug
>  Components: apisupport - Project
>Affects Versions: 9.0
> Environment: Product Version: Apache NetBeans IDE 9.0 (Build 
> incubator-netbeans-release-334-on-20180708)
> Java: 10.0.2; Java HotSpot(TM) 64-Bit Server VM 10.0.2+13
> Runtime: Java(TM) SE Runtime Environment 10.0.2+13
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
> User directory: C:\Users\Eric\AppData\Roaming\NetBeans\9.0
> Cache directory: C:\Users\Eric\AppData\Local\NetBeans\Cache\9.0
>Reporter: M. Eric DeFazio
>Priority: Major
> Attachments: NetbeansShellError.png
>
>
> I can use the "Execute Java Shell" option when right clicking on a Module 
> Project
> BUT, when I have another project that depends on the Modular project, if I 
> try the "Execute Java Shell" option I get the following failure:
> {{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-10.0.2\bin\java -classpath 
> C:\Users\Eric\Downloads\incubating-netbeans-java-9.0-bin\netbeans\java\modules\ext\nb-mod-jshell-probe.jar;C:\Users\Eric\Documents\NetBeansProjects\ModProj\dist\M.jar;C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes
>  --add-modules M,jdk.jshell --add-reads jdk.jshell=ALL-UNNAMED --module-path 
> C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes -Xdebug 
> -Xrunjdwp:transport=dt_shmem,address=javadebug2032,suspend=y 
> org.netbeans.lib.jshell.agent.AgentWorker 63903 @ 
> com.sun.jdi.CommandLineLaunch (defaults: home=C:\Program 
> Files\Java\jdk-10.0.2, options=, main=, suspend=true, quote=", vmexec=java) 
> -- \{home=home=C:\Program Files\Java\jdk-10.0.2, options=options=-classpath 
> C:\Users\Eric\Downloads\incubating-netbeans-java-9.0-bin\netbeans\java\modules\ext\nb-mod-jshell-probe.jar;C:\Users\Eric\Documents\NetBeansProjects\ModProj\dist\M.jar;C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes
>  --add-modules M,jdk.jshell --add-reads jdk.jshell=ALL-UNNAMED --module-path 
> C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes, 
> main=main=org.netbeans.lib.jshell.agent.AgentWorker 63903, 
> 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-10.0.2\bin\java -classpath 
> C:\Users\Eric\Downloads\incubating-netbeans-java-9.0-bin\netbeans\java\modules\ext\nb-mod-jshell-probe.jar;C:\Users\Eric\Documents\NetBeansProjects\ModProj\dist\M.jar;C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes
>  --add-modules M,jdk.jshell --add-reads jdk.jshell=ALL-UNNAMED --module-path 
> C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes -Xdebug 
> -Xrunjdwp:transport=dt_shmem,address=javadebug2032,suspend=y 
> org.netbeans.lib.jshell.agent.AgentWorker 63903 @ 
> com.sun.jdi.CommandLineLaunch (defaults: home=C:\Program 
> Files\Java\jdk-10.0.2, options=, main=, suspend=true, quote=", vmexec=java) 
> -- \{home=home=C:\Program Files\Java\jdk-10.0.2, options=options=-classpath 
> C:\Users\Eric\Downloads\incubating-netbeans-java-9.0-bin\netbeans\java\modules\ext\nb-mod-jshell-probe.jar;C:\Users\Eric\Documents\NetBeansProjects\ModProj\dist\M.jar;C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes
>  --add-modules M,jdk.jshell --add-reads jdk.jshell=ALL-UNNAMED --module-path 
> C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes, 
> main=main=org.netbeans.lib.jshell.agent.AgentWorker 63903, 
> suspend=suspend=true, quote=quote=", vmexec=vmexec=java}}}
> {{| caused by: com.sun.jdi.connect.VMStartException: VM initialization failed 
> for: C:\Program Files\Java\jdk-10.0.2\bin\java -classpath 
> C:\Users\Eric\Downloads\incubating-netbeans-java-9.0-bin\netbeans\java\modules\ext\nb-mod-jshell-probe.jar;C:\Users\Eric\Documents\NetBeansProjects\ModProj\dist\M.jar;C:\Users\Eric\Documents\NetBeansProjects\Java10App\build\classes
>  --add-modules M,jdk.jshell --add-reads jdk.jshell=ALL-UNNAMED --module-path 
> C:\Users\Eric\Documents\N